MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / nonEmptyString

Function nonEmptyString

packages/oauth/src/api-error.ts:62–66  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

60}
61
62function nonEmptyString(value: unknown): string | undefined {
63 if (typeof value !== 'string') return undefined;
64 const trimmed = value.trim();
65 return trimmed.length > 0 ? trimmed : undefined;
66}

Callers 2

extractApiErrorMessageFunction · 0.70
stringFieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected