Repository navigation
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. |
Answered by
gustavo-shigueo
Jul 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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