docs / Getting Started / Type Aliases

Type Aliases

Type aliases create semantic names for existing types. They are transparent to the type checker — fully interchangeable with the underlying type.

type ID is String
type Pair is (int, int)
type ScoreMap is {String: int}