From 6ed728c41a7fa1de6d9a876fdab15938254d2836 Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Tue, 12 Nov 2024 23:11:27 +0000 Subject: [PATCH] Arrays should be readonly --- types/type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/type.ts b/types/type.ts index 004ac02..56b9208 100644 --- a/types/type.ts +++ b/types/type.ts @@ -19,5 +19,5 @@ export type ToTypeTuple< export type ToType = T extends keyof TMap ? TMap[T][Mode] - : T extends `${infer T}[]` ? ToType[] + : T extends `${infer T}[]` ? readonly ToType[] : never