MCPcopy Create free account
hub / github.com/anomalyco/opencode / isTriggerTitle

Function isTriggerTitle

packages/session-ui/src/components/basic-tool.tsx:19–23  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

17}
18
19const isTriggerTitle = (val: any): val is TriggerTitle => {
20 return (
21 typeof val === "object" && val !== null && "title" in val && (typeof Node === "undefined" || !(val instanceof Node))
22 )
23}
24
25export interface BasicToolProps {
26 icon: IconProps["name"]

Callers 1

triggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected