Spaces:
Paused
Paused
Download node_modules/@huggingface/hub/dist/src/error.d.ts from ken-q/opencode-home: direct link, hf CLI and curl.
- Browser
- Download file 597 Bytes
-
https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/%40huggingface/hub/dist/src/error.d.ts
- Command line
-
hf download hf://spaces/ken-q/opencode-home/node_modules/@huggingface/hub/dist/src/error.d.ts
-
curl -L -o error.d.ts https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/%40huggingface/hub/dist/src/error.d.ts
597 Bytes
| import type { JsonObject } from "./vendor/type-fest/basic"; | |
| export declare function createApiError(response: Response, opts?: { | |
| requestId?: string; | |
| message?: string; | |
| }): Promise<never>; | |
| /** | |
| * Error thrown when an API call to the Hugging Face Hub fails. | |
| */ | |
| export declare class HubApiError extends Error { | |
| statusCode: number; | |
| url: string; | |
| requestId?: string; | |
| data?: JsonObject; | |
| constructor(url: string, statusCode: number, requestId?: string, message?: string); | |
| } | |
| export declare class InvalidApiResponseFormatError extends Error { | |
| } | |
| //# sourceMappingURL=error.d.ts.map |