From 93fc8db88d94de657ef72509cd800c3d72a5f47a Mon Sep 17 00:00:00 2001 From: Sunday Nkwuda Date: Mon, 25 Oct 2021 14:33:05 +0100 Subject: [PATCH] fix typescript:4.4.4 compilation error --- sources/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/index.ts b/sources/index.ts index f312927..6c72772 100644 --- a/sources/index.ts +++ b/sources/index.ts @@ -589,7 +589,7 @@ type ObjectType = UndefinedToOptional> & ExtractIndex; export const isObject = (props: T, { extra: extraSpec = null, }: { - extra?: UnknownValidator, + extra?: UnknownValidator | null, } = {}) => { const specKeys = Object.keys(props);