diff --git a/src/validators/base.d.ts b/src/validators/base.d.ts index b8b9513ed..68dc41b7b 100644 --- a/src/validators/base.d.ts +++ b/src/validators/base.d.ts @@ -8,7 +8,8 @@ declare namespace BaseValidator { paramName?: string; } - export type CheckerFunction = Function & { async: boolean }; + type CheckerFunctionBase = (params: Record, opts?: { meta: { ctx: Context } }) => boolean | Promise + export type CheckerFunction = CheckerFunctionBase & { async?: boolean }; } declare abstract class BaseValidator {