Skip to content

Commit

Permalink
fix(types): instanceOf seems mandatory in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
thib3113 committed Oct 7, 2023
1 parent 11204af commit c42de38
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 @@ -112,7 +112,7 @@ export interface RuleClass<T = any> extends RuleCustom {
/**
* Checked Class
*/
instanceOf?: T;
instanceOf: T;
}

/**
Expand Down Expand Up @@ -1147,7 +1147,7 @@ export default class Validator {
* @return {ValidationRule}
*/
getRuleFromSchema(
name: ValidationRuleName | ValidationRuleName[] | { [key: string]: unknown }
name: ValidationRuleName | ValidationRuleName[] | ValidationSchema | ValidationSchema[] | { [key: string]: unknown }
): {
messages: MessagesType;
schema: ValidationSchema;
Expand Down

0 comments on commit c42de38

Please sign in to comment.