MCPcopy
hub / github.com/openclaw/clawsweeper / stringOrNull

Function stringOrNull

src/repair/apply-result.ts:1657–1659  ·  view source on GitHub ↗
(value: JsonValue)

Source from the content-addressed store, hash-verified

1655}
1656
1657function stringOrNull(value: JsonValue) {
1658 return typeof value === "string" && value.trim() ? value : null;
1659}
1660
1661function nonNegativeIntegerFromUnknown(value: JsonValue): number | null {
1662 const number = Number(value);

Calls

no outgoing calls

Tested by

no test coverage detected