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'