fix: type definition for FormatValidator, closes #570
parent
baa2bd76bc
commit
3db9656a8f
|
@ -149,7 +149,7 @@ declare namespace ajv {
|
||||||
cache?: Object;
|
cache?: Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
type FormatValidator = string | RegExp | ((data: string) => boolean);
|
type FormatValidator = string | RegExp | ((data: string) => boolean | Thenable<any>);
|
||||||
|
|
||||||
interface FormatDefinition {
|
interface FormatDefinition {
|
||||||
validate: FormatValidator;
|
validate: FormatValidator;
|
||||||
|
|
Loading…
Reference in New Issue