source: trip-planner-front/node_modules/ajv/dist/standalone/instance.d.ts@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 633 bytes
Line 
1import Ajv, { AnySchema, AnyValidateFunction, ErrorObject } from "../core";
2export default class AjvPack {
3 readonly ajv: Ajv;
4 errors?: ErrorObject[] | null;
5 constructor(ajv: Ajv);
6 validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise<unknown>;
7 compile<T = unknown>(schema: AnySchema, meta?: boolean): AnyValidateFunction<T>;
8 getSchema<T = unknown>(keyRef: string): AnyValidateFunction<T> | undefined;
9 private getStandalone;
10 addSchema(...args: Parameters<typeof Ajv.prototype.addSchema>): AjvPack;
11 addKeyword(...args: Parameters<typeof Ajv.prototype.addKeyword>): AjvPack;
12}
Note: See TracBrowser for help on using the repository browser.