See https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#3.2.9 Example: ``` type CardinalDirection = "North" | "East" | "South" | "West"; ``` Not sure how we should define it in scala because `scala.Symbol` is final just a dumb idea: ``` object North = 'North object South = 'South interface JavaScriptFunction { def (a: North | South ): native } ```
See
https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#3.2.9
Example:
Not sure how we should define it in scala because
scala.Symbolis finaljust a dumb idea: