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

Function parseFeedbackId

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

Source from the content-addressed store, hash-verified

84}
85
86function parseFeedbackId(payload: unknown): number | undefined {
87 const direct = readFeedbackId(payload);
88 if (direct !== undefined) return direct;
89 if (typeof payload === 'object' && payload !== null && 'data' in payload) {
90 return readFeedbackId((payload as { readonly data: unknown }).data);
91 }
92 return undefined;
93}
94
95function readFeedbackId(payload: unknown): number | undefined {
96 if (typeof payload !== 'object' || payload === null) return undefined;

Callers 1

fetchSubmitFeedbackFunction · 0.85

Calls 1

readFeedbackIdFunction · 0.85

Tested by

no test coverage detected