TypeScript: Promise return value for validation functions

master
Evgeny Poberezkin 2016-04-17 20:10:12 +01:00
parent e1f30a201b
commit 76bdf0796e
1 changed files with 2 additions and 2 deletions

4
lib/ajv.d.ts vendored
View File

@ -21,7 +21,7 @@ declare namespace ajv {
dataPath?: string,
parentData?: Object | Array,
parentDataProperty?: string | number
): boolean;
): boolean | Promise;
errors?: Array<ErrorObject>;
}
@ -82,7 +82,7 @@ declare namespace ajv {
dataPath?: string,
parentData?: Object | Array,
parentDataProperty?: string | number
): boolean;
): boolean | Promise;
errors?: Array<ErrorObject>;
}