You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the type definition for the io.meter() function is Metric (utils/metrics.d.ts) which does not have the properties needed for the io.meter() config object such as timeframe. As a result, this code doesn't work as expected:
I'm getting a type error because the timeframe type doesn't exist on Metric.
[tsl] ERROR in F:\git\****\src\utils\metrics.ts(41,7)
TS2345: Argument of type '{ name: string; timeframe: number; }' is not assignable to parameter of type 'Metric'.
Object literal may only specify known properties, and 'timeframe' does not exist in type 'Metric'.
The documentation for io.meter() gives the following example however:
It looks like the type definition for the io.meter() function is Metric (utils/metrics.d.ts) which does not have the properties needed for the io.meter() config object such as
timeframe
. As a result, this code doesn't work as expected:I'm getting a type error because the
timeframe
type doesn't exist on Metric.The documentation for io.meter() gives the following example however:
The text was updated successfully, but these errors were encountered: