Can you create types with dynamic literals?
Say I have this function:
With this I'm trying to create types with literals but I don't know those literals until runtime.
If I run:
It creates type:
But instead what I'm actually wanting is:
Which produces the correct type:
With this I'm trying to create types with literals but I don't know those literals until runtime.
If I run:
It creates type:
But instead what I'm actually wanting is:
Which produces the correct type: