property Failure.FailureOptions.stackAnchor

The function to truncate the stack at, so the top frame is the code that reported the failure rather than the plumbing that built it. Defaults to the constructor.

Anything that wraps define() in another layer needs this, and so does define() itself: eliding only the constructor leaves the factory's own frame on top, which is how a Failure ends up pointing at failure.ts instead of at the caller.

Type

(...args: never[]) => unknown

Usage

import { type Failure } from "lib/stream/index.ts";