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

Function numberValue

projects/runtime-node/src/cli.ts:56–60  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

54}
55
56function numberValue(value: string | undefined): number | undefined {
57 if (!value) return undefined
58 const parsed = Number(value)
59 return Number.isInteger(parsed) && parsed >= 0 ? parsed : undefined
60}
61
62function booleanValue(value: string | undefined): boolean | undefined {
63 if (value === undefined) return undefined

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected