Closed tunetheweb closed 1 year ago
Fixes #351 Fixes #358
It appears you can't just change a type of an interface in Typescript by repeating it.
This PR uses Omit to completely replace the metric value, but then has to do an assertion for ReportCall of the more specific metric XXXReportCall type to the generic ReportCall type.
Omit
metric
ReportCall
XXXReportCall
fixes #358
Fixes #351 Fixes #358
It appears you can't just change a type of an interface in Typescript by repeating it.
This PR uses
Omit
to completely replace themetric
value, but then has to do an assertion forReportCall
of the more specific metricXXXReportCall
type to the genericReportCall
type.