property Failure.prototype.code

The discriminant. Narrow on this, never on instanceof.

Type

Usage

import { Failure } from "lib/result/failure.ts";