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

Interface ResolvedPromise<T> ​

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

ts
error: null;

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

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

Deprecated ​

use reason instead


isError ​

ts
isError: false;

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

Whether the promise has rejected with an error.


isLoading deprecated ​

ts
isLoading: false;

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

Whether the promise is pending.

Deprecated ​

use isPending instead


isPending ​

ts
isPending: false;

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

Whether the promise is pending.


isSuccess ​

ts
isSuccess: true;

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

Whether the promise has resolved successfully.


reason ​

ts
reason: null;

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

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


result deprecated ​

ts
result: T;

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

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

Deprecated ​

use value instead


status ​

ts
status: "fulfilled";

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

The status of the promise.


value ​

ts
value: T;

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

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

Released under the MIT License.