source: imaps-frontend/node_modules/ajv/dist/standalone/instance.d.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • 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.