Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
633 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import Ajv, { AnySchema, AnyValidateFunction, ErrorObject } from "../core";
|
---|
| 2 | export 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.