MCPcopy
hub / github.com/heroku/react-refetch / PromiseStateBase

Interface PromiseStateBase

src/index.d.ts:25–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25interface 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
46export interface PendingPromiseState<T = {}> extends PromiseStateBase {
47 readonly pending: true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…