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

Interface PromiseStateStatic

src/index.d.ts:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13export type PromiseStateLike<T> = T | PromiseState<T>;
14
15export interface PromiseStateStatic {
16 create<T = {}>(meta?: any): PendingPromiseState<T>;
17 refresh<T = {}>(previous: undefined, meta?: any): PendingPromiseState<T>;
18 refresh<T = {}, P extends PromiseState<T> = PromiseState<T>>(previous: P, meta?: any): P;
19 resolve<T = {}>(value?: PromiseStateLike<T>, meta?: any): FulfilledPromiseState<T>;
20 reject<T = {}>(reason?: any, meta?: any): RejectedPromiseState<T>;
21 all<T = {}>(iterable: Iterable<PromiseState<any>>): PromiseState<T[]>;
22 race<T = {}>(iterable: Iterable<PromiseState<any>>): PromiseState<T>;
23}
24
25interface PromiseStateBase<T = {}> {
26 readonly pending: boolean;

Callers 18

refreshMethod · 0.65
constructorMethod · 0.65
onRejectedToPromiseStateFunction · 0.65
ContainerClass · 0.65
connect.spec.jsFile · 0.65
thenMethod · 0.65

Implementers 1

PromiseStatesrc/PromiseState.js

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…