UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering.

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