Skip to content

Commit f6e3260

Browse files
committed
Adds missing types for the JSONSchemaType type field
1 parent 82735a1 commit f6e3260

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/types/json-schema.ts

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ type UncheckedJSONSchemaType<T, IsPartial extends boolean> = (
4949
? JSONType<"string", IsPartial>
5050
: T extends boolean
5151
? JSONType<"boolean", IsPartial>
52+
: T extends readonly any[]
53+
? JSONType<"array", IsPartial>
54+
: T extends Record<string, any>
55+
? JSONType<"object", IsPartial>
56+
: T extends null
57+
? JSONType<"null", IsPartial>
5258
: never)[]
5359
} & UnionToIntersection<
5460
T extends number

0 commit comments

Comments
 (0)