Closed drydenwilliams closed 1 year ago
I know there's a reason the code (#L173) is like that, but I'll need to dig into the memory bank as to why.
Regardless, yes the JS Doc comments do need to be updated to reflect what types are accepted.
@drydenwilliams yeah the comments were showing the incorrect type. number
should have been boolean
. I've fixed that in #167.
The change will go into the next version release of CO2.js in early September.
Describe the bug The
params
in comments doesn't match the code argumentsTo Reproduce Steps to reproduce the behavior:
number
boolean
Expected behavior Ideally, it would accept a
number
forcarbon intensity
not aboolean
what does this toggle, if it's "green" or not?