Typescript introduced a feature that lets you cast a enum into a union type which breaks all highlighting in ts typescript
issue example:
enum Currency {
EUR = "EUR"
DOLLAR = "DOLLAR"
}
interface SomeApiPayload {
id: string
currency: `${Currency}` // this is the enum to union cast feature
}
const someApiCall = () => {
// do api call
}
the highlight should be broken at the function and everything should be displayed green under the interface now
Typescript introduced a feature that lets you cast a enum into a union type which breaks all highlighting in ts typescript
issue example:
the highlight should be broken at the function and everything should be displayed green under the interface now