I have a type defined like so: where FieldValue is a union of types: I have a variable object where I then declare the functions set by the above types: This produces an error where the values in the object are not of type FieldToAction, I kind of understand why since I am now constraining the parameter to be a
Tag: union-types
Map a union to a string literal union of the type names
I have a type like this (in this case, the user would be a custom interface): now, I would like to have a type of I’ve tried to search around myself for a while, but I have not been able to find a way to get the name. I tried to do ${ArgumentTypes} but that didn’t work. I’m pretty new