TypeScript: Promise return value for validation functions
parent
e1f30a201b
commit
76bdf0796e
|
@ -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>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue