UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

6 lines (5 loc) 258 B
export type CancelablePromise<T> = { cancel: () => void; promise: Promise<T>; }; export declare function setCancelablePromise<T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): CancelablePromise<T>;