mirror of https://github.com/espruino/BangleApps
layout.d.ts: permit assignment back to strings
... by making them strings instead of a string literal typepull/3252/head
parent
b04bc434c9
commit
030765d409
|
@ -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)
|
||||
|
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue