Does anyone have a pattern for producing TypeScript definitions to do exhaustive type checking while exporting from Kotlin? In TypeScript we have union types:
type Bear = "grizzly" | "polar"
but I’m not sure how to get Kotlin to generate a TS union type or a similar interface to do exhaustive type checking when consuming the Kotlin generated library.