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

Function stringValue

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

Source from the content-addressed store, hash-verified

228}
229
230function stringValue(value: unknown): string | undefined {
231 return typeof value === 'string' && value.length > 0 ? value : undefined
232}
233
234function numberValue(value: unknown): number | undefined {
235 return typeof value === 'number' && Number.isFinite(value)

Callers 4

formatHostPortFunction · 0.85
getErrorMessageFunction · 0.85
formatHttpRequestErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected