From 6e4a30ac6477fc56817b02e5f8868eca3a6bfb65 Mon Sep 17 00:00:00 2001 From: NoScripter Date: Tue, 20 Feb 2024 19:25:39 +0800 Subject: [PATCH] chore: add missing type --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 574e128..c0ff0c0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ export * from './interface'; */ class Schema { // ========================= Static ========================= - static register = function register(type: string, validator) { + static register = function register(type: string, validator: ExecuteValidator) { if (typeof validator !== 'function') { throw new Error( 'Cannot register a validator by type, validator is not a function',