API Reference
isTerminalComplete()
Check whether a terminal slot carries COMPLETE.
Import
import { isTerminalComplete } from "@graphrefly/ts/core";
Signature
function isTerminalComplete(t: unknown): t is true
Parameters
| Parameter | Type | Description |
|---|---|---|
t | unknown | Terminal slot value from {@link Ctx.terminal}. |
Returns
true when the slot is the COMPLETE shorthand true.
Example
isTerminalComplete(true); // true
Source
packages/ts/src/ctx/types.ts