Skip to content

True Myth / maybe / Variant

Variable: Variant ​

const Variant: object

Discriminant for the Just and Nothing type instances.

You can use the discriminant via the variant property of Maybe instances if you need to match explicitly on it.

Type Declaration ​

Just ​

readonly Just: "Just" = 'Just'

Nothing ​

readonly Nothing: "Nothing" = 'Nothing'