UNPKG

506 BTypeScriptView Raw
1/**
2 * Ambidextrously execute the method with the passed arguments.
3 * If method.length > args.length, then ambi provides the method with a completion callback as the last expected argument.
4 * @param method A method, that can either resolve synchronously, via a promise, or via a callback.
5 * @param args The arguments to provide the function.
6 * @returns The determined result.
7 */
8export default function ambi<Result>(method: Function, ...args: any): Promise<Result>;
9//# sourceMappingURL=index.d.ts.map
\No newline at end of file