Skip to content

Support for string literal type #34

@spaced

Description

@spaced

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions