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);