property SerializedFailure.code

The discriminant. Survives the wire, unlike a prototype.

Type

string

Usage

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