Download node_modules/ajv/lib/runtime/validation_error.ts from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/ajv/lib/runtime/validation_error.ts
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/ajv/lib/runtime/validation_error.ts
-
curl -L -o validation_error.ts https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/ajv/lib/runtime/validation_error.ts
336 Bytes
| import type {ErrorObject} from "../types" | |
| export default class ValidationError extends Error { | |
| readonly errors: Partial<ErrorObject>[] | |
| readonly ajv: true | |
| readonly validation: true | |
| constructor(errors: Partial<ErrorObject>[]) { | |
| super("validation failed") | |
| this.errors = errors | |
| this.ajv = this.validation = true | |
| } | |
| } | |