diff --git a/lib/types/json-schema.ts b/lib/types/json-schema.ts index 065c972e5..e3584781a 100644 --- a/lib/types/json-schema.ts +++ b/lib/types/json-schema.ts @@ -49,6 +49,12 @@ type UncheckedJSONSchemaType = ( ? JSONType<"string", IsPartial> : T extends boolean ? JSONType<"boolean", IsPartial> + : T extends readonly any[] + ? JSONType<"array", IsPartial> + : T extends Record + ? JSONType<"object", IsPartial> + : T extends null + ? JSONType<"null", IsPartial> : never)[] } & UnionToIntersection< T extends number