MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parseRating

Function parseRating

packages/cli/src/commands/feedback.ts:23–26  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

21];
22
23function parseRating(raw: string): number | null {
24 const n = parseInt(raw, 10);
25 return n >= 1 && n <= 5 && Number.isFinite(n) ? n : null;
26}
27
28function normalizeComment(raw?: string): string | undefined {
29 return raw || undefined;

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected