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

Function asRecord

packages/server/test/swagger.e2e.test.ts:75–80  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

73}
74
75function asRecord(value: unknown): Record<string, unknown> {
76 if (typeof value !== 'object' || value === null) {
77 throw new Error('expected object');
78 }
79 return value as Record<string, unknown>;
80}
81
82function operation(
83 doc: Record<string, unknown>,

Callers 5

operationFunction · 0.70
requestJsonSchemaFunction · 0.70
responseJsonSchemaFunction · 0.70
schemaWithPropertiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected