UNPKG

716 BTypeScriptView Raw
1declare const SUSPENSE_PROMISE: unique symbol;
2export declare type SuspensePromise = Promise<void> & {
3 [SUSPENSE_PROMISE]: {
4 o: Promise<void>;
5 c: (() => void) | null;
6 };
7};
8export declare const isSuspensePromise: (promise: Promise<void>) => promise is SuspensePromise;
9export declare const isSuspensePromiseAlreadyCancelled: (suspensePromise: SuspensePromise) => boolean;
10export declare const cancelSuspensePromise: (suspensePromise: SuspensePromise) => void;
11export declare const isEqualSuspensePromise: (oldSuspensePromise: SuspensePromise, newSuspensePromise: SuspensePromise) => boolean;
12export declare const createSuspensePromise: (promise: Promise<void>) => SuspensePromise;
13export {};