@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering
6 lines (5 loc) • 360 B
TypeScript
export type AsyncBoolean = boolean | Promise<boolean>;
export declare function isAsyncLike<T>(obj: any): obj is Promise<T>;
export declare function isAsync<T>(obj: any): obj is Promise<T>;
export declare function toAsyncBoolean(...inputs: (any | any[])[]): AsyncBoolean;
export declare function toDeferredBoolean(...inputs: (any | any[])[]): Promise<boolean>;