We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9de36 commit 581705cCopy full SHA for 581705c
src/lib/initMetric.ts
@@ -48,7 +48,7 @@ export const initMetric = <MetricName extends Metric['name']>(
48
return {
49
name,
50
value: typeof value === 'undefined' ? -1 : value,
51
- rating: 'good' as const, // Will be updated if the value changes.
+ rating: 'good' as const, // If needed, will be updated when reported. `const` to keep the type from widening to `string`.
52
delta: 0,
53
entries,
54
id: generateUniqueID(),
0 commit comments