type (Keyword)
Description: Type declaration keyword. Used to define custom types and type aliases.
Example
type UserId = int
type Status = Active | Inactive
type User = { name: string, age: int }
type UserId =
int
type Status =
Active
Inactive
type User =
name : string
age : int