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

Function stringField

packages/oauth/src/api-error.ts:58–60  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

56}
57
58function stringField(record: Record<string, unknown>, key: string): string | undefined {
59 return nonEmptyString(record[key]);
60}
61
62function nonEmptyString(value: unknown): string | undefined {
63 if (typeof value !== 'string') return undefined;

Callers 1

extractApiErrorMessageFunction · 0.70

Calls 1

nonEmptyStringFunction · 0.70

Tested by

no test coverage detected