Skip to content

Commit

Permalink
Arrays should be readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDoge committed Nov 12, 2024
1 parent fb3dae3 commit 6ed728c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export type ToTypeTuple<

export type ToType<TMap extends PrimativeTypeMapBase, T extends string, Mode extends "input" | "output"> =
T extends keyof TMap ? TMap[T][Mode]
: T extends `${infer T}[]` ? ToType<TMap, T, Mode>[]
: T extends `${infer T}[]` ? readonly ToType<TMap, T, Mode>[]
: never

0 comments on commit 6ed728c

Please sign in to comment.