Interface- ErrResult{"<"}E, ErrorExtras>
Interface representing a failed operation result, containing error details and metadata for TypeScript error handling in Replit’s object storage.
Represents a failure result.
Type parameters
Name | Type | Description |
---|---|---|
E | E | The type of the error. |
ErrorExtras | unknown | The type of any additional information on the error, if provided. |
Properties
error
• error: E
The error that occurred.
Defined in
errorExtras
• Optional
errorExtras: ErrorExtras
Additional information on the error, if applicable.
Defined in
ok
• ok: false
Indicates that the request was unsuccessful.
Defined in
value
• Optional
value: undefined
Always undefined when the request was successful.
Defined in
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?