flatMorph in a type
I'm trying to use flatMorph to generate dynamic template literal keys for a type but it's becoming unknown.
The types are:
Why is
a
not preserving the type?2 Replies
Surely the
'string'
has to be const too?
Have you tried that?
I also seem to remember template literals not being supported, although not certain of that
What type were you expecting?Thanks but that doesn't change anything. I want to have keys of an object match the template literal and be able to assert their values' types