Skip to content

Commit cb71fcd

Browse files
roninjin10Will Corymergify[bot]
authored
fix(cmm): BSV2 update metrics to more permissive type (#2805)
* update metrics to more permissive type * changeset Co-authored-by: Will Cory <willcory@Wills-MacBook-Pro.local> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 7142175 commit cb71fcd

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.changeset/clever-bees-visit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@eth-optimism/common-ts': minor
3+
---
4+
5+
Make typescript type more permissive for MetricsV2

packages/common-ts/src/base-service/base-service-v2.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export type OptionsSpec<TOptions extends Options> = {
3434
}
3535
}
3636

37-
export type MetricsV2 = {
38-
[key: string]: Metric
39-
}
37+
export type MetricsV2 = Record<any, Metric>
4038

4139
export type StandardMetrics = {
4240
metadata: Gauge

0 commit comments

Comments
 (0)