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

Function optionalNumber

projects/runtime-node/src/process.ts:73–75  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

71}
72
73function optionalNumber(value: unknown): number | undefined {
74 return typeof value === "number" && Number.isFinite(value) ? value : undefined
75}
76
77function processRuntimeId(processId: string): string {
78 return `process:${processId}`

Callers 2

commandParamsFunction · 0.70
scriptParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected