SourceTermAnalysisSystem_vue/node_modules/@antv/x6-common/lib/function/async.d.ts
2026-05-15 10:22:44 +08:00

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>;