UNPKG

@nesvet/n

Version:
15 lines 531 B
type Value<T> = PromiseLike<T> | T; type Resolve<T> = (value: Value<T>) => void; type Reject = (reason?: any) => void; export declare class StatefulPromise<T> extends Promise<T> { constructor(executor?: (resolve: Resolve<T>, reject: Reject) => void); isPending: boolean; isFulfilled: boolean; isRejected: boolean; state: "fulfilled" | "pending" | "rejected"; result?: any; resolve: (value: Value<T>) => void; reject: (reason?: any) => void; } export {}; //# sourceMappingURL=StatefulPromise.d.ts.map