remove generic argument type

master
Evgeny Poberezkin 2019-01-03 20:34:39 +00:00
parent 345afa85d4
commit b65d61aa52
1 changed files with 4 additions and 4 deletions

8
lib/ajv.d.ts vendored
View File

@ -39,7 +39,7 @@ declare namespace ajv {
* @param {Any} data to be validated
* @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
*/
validate<T>(schemaKeyRef: object | string | boolean, data: T): boolean | PromiseLike<T>;
validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike<any>;
/**
* Create validating function for passed schema.
* @param {object|Boolean} schema schema object
@ -138,13 +138,13 @@ declare namespace ajv {
}
interface ValidateFunction {
<T>(
data: T,
(
data: any,
dataPath?: string,
parentData?: object | Array<any>,
parentDataProperty?: string | number,
rootData?: object | Array<any>
): boolean | PromiseLike<T>;
): boolean | PromiseLike<any>;
schema?: object | boolean;
errors?: null | Array<ErrorObject>;
refs?: object;