UNPKG

806 BTypeScriptView Raw
1import { Slot } from "./slot";
2export { Slot };
3export declare const bind: <TArgs extends any[], TResult, TThis = any>(callback: (this: TThis, ...args: TArgs) => TResult) => (this: TThis, ...args: TArgs) => TResult, noContext: <TResult, TArgs extends any[], TThis = any>(callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined) => TResult;
4export { setTimeoutWithContext as setTimeout };
5declare function setTimeoutWithContext(callback: () => any, delay: number): any;
6export declare function asyncFromGen<TArgs extends any[], TYield = any, TReturn = any, TNext = any>(genFn: (...args: TArgs) => Generator<TYield, TReturn, TNext>): (...args: TArgs) => Promise<any>;
7export declare function wrapYieldingFiberMethods<F extends Function>(Fiber: F): F;