1 2 3 4 5 6 7
export enum PromiseState { Pending = 0, Fulfilled = 1, Rejected = 2, } export type PromiseDetails<T> = [PromiseState, T | undefined];