Skip to content

Commit c3de937

Browse files
committed
Make pipe tuple of SchemaOrPipe readonly by default
1 parent 6224a70 commit c3de937

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/to-json-schema/src/convertSchema.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,12 @@ type Schema =
101101
type SchemaOrPipe =
102102
| Schema
103103
| v.SchemaWithPipe<
104-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
105-
[Schema, ...(Schema | v.PipeAction<any, any, v.BaseIssue<unknown>>)[]]
104+
// @ts-ignore // TODO: Remove comment
105+
readonly [
106+
Schema,
107+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
108+
...(Schema | v.PipeAction<any, any, v.BaseIssue<unknown>>)[],
109+
]
106110
>;
107111

108112
// Create global reference count

0 commit comments

Comments
 (0)