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

Function readFeedbackId

packages/oauth/src/managed-feedback.ts:95–100  ·  view source on GitHub ↗
(payload: unknown)

Source from the content-addressed store, hash-verified

93}
94
95function readFeedbackId(payload: unknown): number | undefined {
96 if (typeof payload !== 'object' || payload === null) return undefined;
97 const record = payload as Record<string, unknown>;
98 const value = record['feedback_id'] ?? record['id'];
99 return typeof value === 'number' && Number.isInteger(value) ? value : undefined;
100}

Callers 1

parseFeedbackIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected