Skip to content

Commit 581705c

Browse files
committed
feedback
1 parent aa9de36 commit 581705c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/initMetric.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const initMetric = <MetricName extends Metric['name']>(
4848
return {
4949
name,
5050
value: typeof value === 'undefined' ? -1 : value,
51-
rating: 'good' as const, // Will be updated if the value changes.
51+
rating: 'good' as const, // If needed, will be updated when reported. `const` to keep the type from widening to `string`.
5252
delta: 0,
5353
entries,
5454
id: generateUniqueID(),

0 commit comments

Comments
 (0)