UNPKG

@slashid/react

Version:

React SDK for the /id platform

9 lines 288 B
export type Cancellable<T> = { promise: Promise<T>; cancel: () => void; }; /** * Wraps a promise in a cancellable object. Promise is executed immediately. */ export declare function createCancellable<T>(promise: Promise<T>): Cancellable<T>; //# sourceMappingURL=promise.d.ts.map