Interface- OkResult{"<"}T\>
Represents a successful result.
Type parameters
Name | Description |
---|---|
T | The type of the result’s value. |
Properties
error
• Optional
error: undefined
Always undefined when the request was successful.
Defined in
ok
• ok: true
Indicates that the request was successful.
Defined in
value
• value: T
The value returned by the request.
Defined in
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?