why does ts infer this union as any?
hit a weird wall with tailwind classes in a react component. if i pass a custom union type to a utility, it just gives up and treats the prop as any. code looks like this: it works fine in isolation, but once i map over an array of these objects it loses all type safety. am i mis…
See more →
about 1 month ago

