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

Function text

packages/app/src/context/terminal.tsx:31–33  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

29}
30
31function text(value: unknown) {
32 return typeof value === "string" ? value : undefined
33}
34
35function num(value: unknown) {
36 return typeof value === "number" && Number.isFinite(value) ? value : undefined

Callers 2

ptyFunction · 0.70
migrateTerminalStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected