| 23 | } |
| 24 | |
| 25 | interface PromiseStateBase<T = {}> { |
| 26 | readonly pending: boolean; |
| 27 | readonly refreshing: boolean; |
| 28 | readonly fulfilled: boolean; |
| 29 | readonly rejected: boolean; |
| 30 | readonly settled: boolean; |
| 31 | readonly meta: any; |
| 32 | then: <TFulfilled = T, TRejected = T>( |
| 33 | onFulfilled?: ( |
| 34 | value: PromiseStateLike<T>, |
| 35 | ) => PromiseStateLike<TFulfilled>, |
| 36 | onRejected?: (reason: any) => PromiseStateLike<TRejected>, |
| 37 | ) => |
| 38 | | PromiseStateLike<T> |
| 39 | | PromiseStateLike<TFulfilled> |
| 40 | | PromiseStateLike<TRejected>; |
| 41 | catch: <TRejected = T>( |
| 42 | onRejected?: (reason: any) => PromiseStateLike<TRejected>, |
| 43 | ) => PromiseStateLike<T> | PromiseStateLike<TRejected>; |
| 44 | } |
| 45 | |
| 46 | export interface PendingPromiseState<T = {}> extends PromiseStateBase { |
| 47 | readonly pending: true; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…