-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Describe the bug
In the documentation, it is written that we can use 'hex'/'bin'/'oct' as a notation value, in the format function. These option are working, but we get a typescript error when we use them.
The typescript union is written as follow :
notation?: 'fixed' | 'exponential' | 'engineering' | 'auto'
When it should look like this :
notation?: 'fixed' | 'exponential' | 'engineering' | 'auto' | 'hex' | 'bin' | 'oct'
To Reproduce
Use the math.format() function, with the notation option as 'hex' :
format(50, { notation: "hex" })
Error: Type "hex" is not assignable to type "fixed" | "exponential" | "engineering" | "auto" | undefined
Reactions are currently unavailable