TypeScript calls these Union types.
The TypeScript type definition for JQuery has over 100 such cases.
The TypeScript type definition for React has dozens of such cases (e.g. ‘type Key = string | number;’).
I’ve heard that Kotlin will consume TypeScript’s type definitions in some way.
How will Kotlin represent React’s ‘Key’ (from the example above)?