Using an API that takes a boolean value, but only its string representation (i.e. “true” and “false” instead of true and false values). Is there a neat way to just enumerate the boolean values as strings and make them a type?
Wrote type StringBoolean = "true" | "false"
and it works, but seems a little silly in my opinion. I’m hoping for something along the lines of: type StringBoolean = boolean.values as string
1