6 lines
360 B
TypeScript
6 lines
360 B
TypeScript
export declare function isAsyncLike<T>(obj: any): obj is Promise<T>;
|
|
export declare function isAsync<T>(obj: any): obj is Promise<T>;
|
|
export type AsyncBoolean = boolean | Promise<boolean>;
|
|
export declare function toAsyncBoolean(...inputs: (any | any[])[]): AsyncBoolean;
|
|
export declare function toDeferredBoolean(...inputs: (any | any[])[]): Promise<boolean>;
|