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
Would anyone else find it useful to add the string type to the number passed to a NumberFormat.format call?
I've been using this with a decimal math library, and am trying to avoid losing any precision while doing math and displaying the end results.
According to MDN it's fine to pass a string to the format method, but the typescript standard lib only types that parameter as number | bigint. So, passing a string, while allowed by the API, still shows a type error.
I can submit a pull request for this if you're willing to accept it.
The text was updated successfully, but these errors were encountered:
Would anyone else find it useful to add the string type to the number passed to a NumberFormat.format call?
I've been using this with a decimal math library, and am trying to avoid losing any precision while doing math and displaying the end results.
According to MDN it's fine to pass a string to the format method, but the typescript standard lib only types that parameter as
number | bigint
. So, passing a string, while allowed by the API, still shows a type error.I can submit a pull request for this if you're willing to accept it.
The text was updated successfully, but these errors were encountered: