From c42de38b76d7cdc667917cdfd0acc70ccc887800 Mon Sep 17 00:00:00 2001 From: thibaut severac Date: Sat, 7 Oct 2023 15:23:50 +0200 Subject: [PATCH] fix(types): instanceOf seems mandatory in the code --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2d215fc..ca2e9a4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -112,7 +112,7 @@ export interface RuleClass extends RuleCustom { /** * Checked Class */ - instanceOf?: T; + instanceOf: T; } /** @@ -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;