fix: type definition for FormatValidator, closes #570
parent
baa2bd76bc
commit
3db9656a8f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue