Skip to content
module@warp-drive/core/reactive

Interface RejectedPromise<E> ​

Defined in: warp-drive-packages/core/src/signals/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 deprecated ​

ts
error: E;

Defined in: warp-drive-packages/core/src/signals/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: warp-drive-packages/core/src/signals/promise-state.ts:188

Whether the promise has rejected with an error.


isLoading deprecated ​

ts
isLoading: false;

Defined in: warp-drive-packages/core/src/signals/promise-state.ts:174

Whether the promise is pending.

Deprecated ​

use isPending instead


isPending ​

ts
isPending: false;

Defined in: warp-drive-packages/core/src/signals/promise-state.ts:167

Whether the promise is pending.


isSuccess ​

ts
isSuccess: false;

Defined in: warp-drive-packages/core/src/signals/promise-state.ts:181

Whether the promise has resolved successfully.


reason ​

ts
reason: E;

Defined in: warp-drive-packages/core/src/signals/promise-state.ts:219

Once the promise has rejected, this will be the error the promise rejected with.


result deprecated ​

ts
result: null;

Defined in: warp-drive-packages/core/src/signals/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: warp-drive-packages/core/src/signals/promise-state.ts:161

The status of the promise.


value ​

ts
value: null;

Defined in: warp-drive-packages/core/src/signals/promise-state.ts:195

Once the promise has resolved, this will be the value the promise resolved to.

Released under the MIT License.