Skip to content

True Myth / result / Variant

Type Alias: Variant

Variant = keyof typeof Variant

Discriminant for Ok and Err variants of the Result type.

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