MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / optionalNumber

Function optionalNumber

projects/runtime-node/src/pty.ts:81–83  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

79}
80
81function optionalNumber(value: unknown): number | undefined {
82 return typeof value === "number" && Number.isFinite(value) ? value : undefined
83}
84
85function ptyRuntimeId(ptyId: string): string {
86 return `pty:${ptyId}`

Callers 1

ptySpawnParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected