Skip to content

Commit

Permalink
fix index.d.ts 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ERFANIUM committed Mar 16, 2020
1 parent 1b83524 commit 384c3b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ declare module 'fastest-validator' {
* @param {ValidationRuleObject} schema Validation schema that describes current custom validator
* @return {{true} | ValidationError[]} true if result is valid or array of validation error messages
*/
custom: (value: T, schema: ValidationRuleObject, path: string, parent?: object, context?: any) => true | ValidationError[];
custom?: (value: unknown, schema: ValidationRuleObject, path: string, parent?: object, context?: any) => true | ValidationError[];

/**
* You can define any additional options for custom validators
Expand Down Expand Up @@ -799,7 +799,7 @@ declare module 'fastest-validator' {
* @param {ValidationSchema | ValidationSchema[]} schema Validation schema definition that should be used for validation
* @return {(object: object) => (true | ValidationError[])} function that can be used next for validation of current schema
*/
compile?(schema: ValidationSchema | ValidationSchema[]): (object: any) => true | ValidationError[];
compile(schema: ValidationSchema | ValidationSchema[]): (object: any) => true | ValidationError[];

/**
* Native validation method to validate obj
Expand Down

0 comments on commit 384c3b6

Please sign in to comment.