Variable VariantConst

Variant: {
    Err: "Err";
    Ok: "Ok";
} = ...

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.

Type declaration

  • Readonly Err: "Err"
  • Readonly Ok: "Ok"

Generated using TypeDoc