Skip to content

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

ts
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

ts
isError: false;

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

Whether the promise has rejected with an error.


isLoading

ts
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

ts
isPending: false;

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

Whether the promise is pending.


isSuccess

ts
isSuccess: true;

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

Whether the promise has resolved successfully.


reason

ts
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

ts
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

ts
status: "fulfilled";

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

The status of the promise.


value

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

Released under the MIT License.