Closed EzraBrooks closed 9 months ago
FYI I'm headed out on vacation for a week, if you'd rather not include the JSDoc comment feel free to remove it and merge the PR.
I will say that in roslibjs we have had great success auto-generating TypeScript types from JSDoc comments, so that's a potential future value-add :)
I will say that in roslibjs we have had great success auto-generating TypeScript types from JSDoc comments, so that's a potential future value-add :)
If this is something you want to contribute that would be great. The problem generally is maintaining docs, code, typescript definitions, and js doc. We'll merge it for now, though - thanks!
As discussed in #281:
Previously this code was parsing all values into numbers, including
null
, which we later attempt to use in the same function as a no-op. But with the current code, passingnull
would result in aNaN
, making the if-null code unreachable.