Skip to content

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

ts
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

ts
isError: true;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:188

Whether the promise has rejected with an error.


isLoading

ts
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

ts
isPending: false;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:167

Whether the promise is pending.


isSuccess

ts
isSuccess: false;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:181

Whether the promise has resolved successfully.


reason

ts
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

ts
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

ts
status: "rejected";

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:161

The status of the promise.


value

ts
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.

Released under the MIT License.