layout.d.ts: permit assignment back to strings

... by making them strings instead of a string literal type
pull/3252/head
Rob Pilling 2024-03-16 13:06:09 +00:00
parent b04bc434c9
commit 030765d409
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ type ExtractIds<T extends Layout.Hierarchy, Depth extends Prev[number] = 9> =
[Depth] extends [never]
? never
: (T extends { id?: infer Id extends string }
? { [k in Id]: { -readonly [P in keyof T]: T[P] } }
? { [k in Id]: { -readonly [P in keyof T]: T[P] extends string ? string : T[P] } }
: never)
|
(