Question to recent change Records<K, V>
to { [key: K]: V }
#337
-
Recently,
I tried changing it from type MyType = { [key: MyEnum]: MyStruct } To type MyType = { [key in MyEnum]: MyStruct } It works. I have also tried doing Is there any suggestion to go around this without manually implementing it? Thank you all for such great work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello @Erisli! This change was made to allow recursive types when dealing with |
Beta Was this translation helpful? Give feedback.
Hello @Erisli!
This change was made to allow recursive types when dealing with
HashMap
. I'll quickly check if changing to a mapped type breaks anything and if not, I'll open a PR