| /** | |
| * Wrap whatever the generated client decoded from a non-2xx error body | |
| * into a real `Error` so downstream formatters (TUI, plugins) get a | |
| * useful `.message` instead of `[object Object]` or blank. The original | |
| * parsed body and status live under `.cause` for callers that need | |
| * structured fields. | |
| * | |
| * Only fires when the caller used `{ throwOnError: true }`. Callers that | |
| * read `result.error` directly (the result-tuple path) get the parsed | |
| * body unchanged so existing field-level reads (`.error.name`, | |
| * `JSON.stringify(error)`, etc.) are byte-for-byte identical to before. | |
| */ | |
| export declare function wrapClientError(error: unknown, response: Response | undefined, request: Request | undefined, opts: { | |
| throwOnError?: boolean; | |
| } | undefined): unknown; | |
Xet Storage Details
- Size:
- 776 Bytes
- Xet hash:
- 0fc24e6a698f3623673d7c9f0cfa7ed018848098d407d65a2696a657fb4e0a0a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.