backTemplate/node_modules/tarn/dist/PromiseInspection.d.ts
2025-05-11 14:48:27 +05:00

17 lines
389 B
TypeScript

export declare type PromiseInspectionArgs<T> = {
value: T;
error?: Error;
} | {
value?: T;
error: Error;
};
export declare class PromiseInspection<T> {
_value: T | void;
_error: Error | void;
constructor(args: PromiseInspectionArgs<T>);
value(): void | T;
reason(): void | Error;
isRejected(): boolean;
isFulfilled(): boolean;
}