Commit iniziale
This commit is contained in:
16
node_modules/tarn/dist/PromiseInspection.d.ts
generated
vendored
Normal file
16
node_modules/tarn/dist/PromiseInspection.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user