Skip to content

Commit c42de38

Browse files
committed
fix(types): instanceOf seems mandatory in the code
1 parent 11204af commit c42de38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface RuleClass<T = any> extends RuleCustom {
112112
/**
113113
* Checked Class
114114
*/
115-
instanceOf?: T;
115+
instanceOf: T;
116116
}
117117

118118
/**
@@ -1147,7 +1147,7 @@ export default class Validator {
11471147
* @return {ValidationRule}
11481148
*/
11491149
getRuleFromSchema(
1150-
name: ValidationRuleName | ValidationRuleName[] | { [key: string]: unknown }
1150+
name: ValidationRuleName | ValidationRuleName[] | ValidationSchema | ValidationSchema[] | { [key: string]: unknown }
11511151
): {
11521152
messages: MessagesType;
11531153
schema: ValidationSchema;

0 commit comments

Comments
 (0)