Documentation / @warp-drive/core / reactive / RejectedPromise
Interface: RejectedPromise<E>
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:156
The state of a promise in the "rejected" state. This is the state of a promise that has rejected with an error.
Type Parameters
E
E
Properties
error
error: E;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:212
Once the promise has rejected, this will be the error the promise rejected with.
Deprecated
use reason
instead
isError
isError: true;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:188
Whether the promise has rejected with an error.
isLoading
isLoading: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:174
Whether the promise is pending.
Deprecated
use isPending
instead
isPending
isPending: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:167
Whether the promise is pending.
isSuccess
isSuccess: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:181
Whether the promise has resolved successfully.
reason
reason: E;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:219
Once the promise has rejected, this will be the error the promise rejected with.
result
result: null;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:203
Once the promise has resolved, this will be the value the promise resolved to.
Deprecated
use value
instead
status
status: "rejected";
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:161
The status of the promise.
value
value: null;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:195
Once the promise has resolved, this will be the value the promise resolved to.