fix: type definition for FormatValidator, closes #570

master
Evgeny Poberezkin 2017-10-15 11:41:42 +01:00
parent baa2bd76bc
commit 3db9656a8f
1 changed files with 1 additions and 1 deletions

2
lib/ajv.d.ts vendored
View File

@ -149,7 +149,7 @@ declare namespace ajv {
cache?: Object;
}
type FormatValidator = string | RegExp | ((data: string) => boolean);
type FormatValidator = string | RegExp | ((data: string) => boolean | Thenable<any>);
interface FormatDefinition {
validate: FormatValidator;