Skip to content

Commit

Permalink
Add ts-ignore comment for excessively deep tuple spread
Browse files Browse the repository at this point in the history
  • Loading branch information
TizzySaurus committed Oct 2, 2024
1 parent 94cdef2 commit 6903094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ark/jsonschema/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export type inferJsonSchemaArray<arraySchema, T = unknown> =
arraySchema["items"] extends array<JsonSchema.Schema> ?
inferJsonSchemaArrayConstraints<
Omit<arraySchema, "additionalItems" | "items">,
// @ts-ignore - TypeScript complains that this is "excessively deep", despite it correctly resolving the type
[
...inferJsonSchemaArrayItems<arraySchema["items"]>,
...inferJsonSchema<arraySchema["additionalItems"]>[]
Expand Down

0 comments on commit 6903094

Please sign in to comment.