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

Function asRecord

packages/server/src/openapi/transforms.ts:319–322  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

317}
318
319function asRecord(value: unknown): Record<string, unknown> | undefined {
320 if (typeof value !== 'object' || value === null) return undefined;
321 return value as Record<string, unknown>;
322}

Callers 5

transformOpenApiDocumentFunction · 0.70
patchSessionActionsFunction · 0.70
getOperationFunction · 0.70
setResponseFunction · 0.70
replacePathParamNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected