remove generic argument type
parent
345afa85d4
commit
b65d61aa52
|
@ -39,7 +39,7 @@ declare namespace ajv {
|
||||||
* @param {Any} data to be validated
|
* @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`).
|
* @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.
|
* Create validating function for passed schema.
|
||||||
* @param {object|Boolean} schema schema object
|
* @param {object|Boolean} schema schema object
|
||||||
|
@ -138,13 +138,13 @@ declare namespace ajv {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ValidateFunction {
|
interface ValidateFunction {
|
||||||
<T>(
|
(
|
||||||
data: T,
|
data: any,
|
||||||
dataPath?: string,
|
dataPath?: string,
|
||||||
parentData?: object | Array<any>,
|
parentData?: object | Array<any>,
|
||||||
parentDataProperty?: string | number,
|
parentDataProperty?: string | number,
|
||||||
rootData?: object | Array<any>
|
rootData?: object | Array<any>
|
||||||
): boolean | PromiseLike<T>;
|
): boolean | PromiseLike<any>;
|
||||||
schema?: object | boolean;
|
schema?: object | boolean;
|
||||||
errors?: null | Array<ErrorObject>;
|
errors?: null | Array<ErrorObject>;
|
||||||
refs?: object;
|
refs?: object;
|
||||||
|
|
Loading…
Reference in New Issue