Represents a failure result.

Type parameters

NameTypeDescription
EEThe type of the error.
ErrorExtrasunknownThe type of any additional information on the error, if provided.

Properties

error

error: E

The error that occurred.

Defined in

result.ts:48


errorExtras

Optional errorExtras: ErrorExtras

Additional information on the error, if applicable.

Defined in

result.ts:56


ok

ok: false

Indicates that the request was unsuccessful.

Defined in

result.ts:44


value

Optional value: undefined

Always undefined when the request was successful.

Defined in

result.ts:52

This interface represents a result Object indicating a failed operation. It contains information about the error that occurred (error), any additional details related to the error (errorExtras), and a flag indicating that the request was unsuccessful (ok). The value property is always undefined in case of a failure.

Was this page helpful?