Type parameters

NameDescription
TThe type of the result’s value.

Properties

error

Optional error: undefined

Always undefined when the request was successful.

Defined in

result.ts:31


ok

ok: true

Indicates that the request was successful.

Defined in

result.ts:23


value

value: T

The value returned by the request.

Defined in

result.ts:27

This interface represents a successful result, containing information about the success status (ok), the returned value (value), and an optional error property, which is always undefined in case of success.

Was this page helpful?