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