UNPKG

async-chaining

Version:

The async-chaining library provides a toolkit for creating asynchronous chains of method and property calls. With its help, you can effectively manage asynchronous operations, increasing the efficiency and convenience of development.

11 lines (10 loc) 343 B
import { Options } from './types'; /** * Function for creating an asynchronous chain * * @param obj Promise or any data (will be wrapped in a promise) * @param options Options for enabling debug and strict mode * @returns new Proxy object */ declare function async<T>(obj?: T | Promise<T>, options?: Options): any; export default async;