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

Function optionalNonEmptyString

apps/vis/server/src/lib/task-store.ts:236–240  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

234}
235
236function optionalNonEmptyString(value: unknown): string | undefined {
237 if (typeof value !== 'string') return undefined;
238 const trimmed = value.trim();
239 return trimmed.length > 0 ? trimmed : undefined;
240}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected