Download node_modules/assertion-error/index.d.ts from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/assertion-error/index.d.ts
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/assertion-error/index.d.ts
-
curl -L -o index.d.ts https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/assertion-error/index.d.ts
704 Bytes
| interface Result { | |
| name: "AssertionError" | "AssertionResult"; | |
| ok: boolean; | |
| toJSON(...args: unknown[]): Record<string, unknown>; | |
| } | |
| declare class AssertionError<T> extends Error implements Result { | |
| [key: string]: unknown | |
| name: "AssertionError"; | |
| ok: false; | |
| message: string; | |
| // deno-lint-ignore ban-types | |
| constructor(message: string, props?: T, ssf?: Function); | |
| stack: string; | |
| toJSON(stack?: boolean): Record<string, unknown>; | |
| } | |
| declare class AssertionResult<T> implements Result { | |
| [key: string]: unknown | |
| name: "AssertionResult"; | |
| ok: true; | |
| message: string; | |
| constructor(props?: T); | |
| toJSON(): Record<string, unknown>; | |
| } | |
| export { AssertionError, AssertionResult, Result }; | |