MCPcopy Create free account
hub / github.com/massCodeIO/massCode / numberValue

Function numberValue

src/main/ipc/handlers/http.ts:234–238  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

232}
233
234function numberValue(value: unknown): number | undefined {
235 return typeof value === 'number' && Number.isFinite(value)
236 ? value
237 : undefined
238}
239
240function getNestedCause(error: unknown): Record<string, unknown> | null {
241 return asRecord(asRecord(error)?.cause)

Callers 1

formatHostPortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected