Skip to content
PACKAGES

terminalErrorValue()

Read the terminal payload when the slot is an ERROR value.

import { terminalErrorValue } from "@graphrefly/ts/core";
function terminalErrorValue(t: unknown): unknown
ParameterTypeDescription
tunknownTerminal slot value from {@link Ctx.terminal}.

The payload when t is an ERROR slot, otherwise undefined.

terminalErrorValue(new Error("boom"));

packages/ts/src/ctx/types.ts