Interface RejectedResult

A rejected promise result.

interface RejectedResult {
    isFulfilled: false;
    isRejected: true;
    reason: unknown;
}

Hierarchy

  • PromiseRejectedResult
    • RejectedResult

Properties

isFulfilled: false

Whether the promise was fulfilled.

isRejected: true

Whether the promise was rejected.

reason: unknown

The reason why the promise was rejected.

Remarks

This is an unknown value because the reason can be anything, however, it's most likely an instance of Error.

Generated using TypeDoc