UNPKG

459 BTypeScriptView Raw
1/**
2 * @module Core
3 */
4import { IResolver, ICallback } from '../Contracts';
5/**
6 * Calls a function and tracks it's completion in multiple ways. If original function
7 * relies on `done`, then it will wait for `done` to be called. Also if timeout is
8 * defined, the function will fail if doesn't return before the timeout.
9 */
10export declare function Callable<T extends any[]>(resolveFn: IResolver<T>, callback: ICallback<T>, timeout: number): Promise<void>;