Skip to content
PACKAGES

isTerminalComplete()

Check whether a terminal slot carries COMPLETE.

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

true when the slot is the COMPLETE shorthand true.

isTerminalComplete(true); // true

packages/ts/src/ctx/types.ts