MCPcopy
hub / github.com/xintaofei/codeg / normalizeString

Function normalizeString

src/lib/app-error.ts:12–14  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

10}
11
12function normalizeString(value: unknown): string | null {
13 return typeof value === "string" && value.trim() ? value.trim() : null
14}
15
16function parseI18nParams(value: unknown): Record<string, string> | null {
17 const obj = asObject(value)

Callers 2

parseErrorObjectFunction · 0.85
extractAppCommandErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected