Documentation / @warp-drive/core / reactive / ResolvedPromise
Interface: ResolvedPromise<T>
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:85
The state of a promise in the "fulfilled" state. This is the state of a promise that has resolved successfully.
Type Parameters
T
T
Properties
error
error: null;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:140
Once the promise has rejected, this will be the error the promise rejected with.
Deprecated
use reason
instead
isError
isError: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:116
Whether the promise has rejected with an error.
isLoading
isLoading: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:103
Whether the promise is pending.
Deprecated
use isPending
instead
isPending
isPending: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:96
Whether the promise is pending.
isSuccess
isSuccess: true;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:109
Whether the promise has resolved successfully.
reason
reason: null;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:147
Once the promise has rejected, this will be the error the promise rejected with.
result
result: T;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:131
Once the promise has resolved, this will be the value the promise resolved to.
Deprecated
use value
instead
status
status: "fulfilled";
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:90
The status of the promise.
value
value: T;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:123
Once the promise has resolved, this will be the value the promise resolved to.