Closed piotrkulpinski closed 2 weeks ago
Hi 👋, thanks for filing. I think this is determined by your project's tsconfig because the Intl.NumberFormatOptions
types aren't bundled in. I can see the type in the site/
project which uses the same package:
You're right. I had to update the target
option in tsconfig to ESNext
👍
NumberFlow version
@number-flow/react@0.2.3
Framework version
react@18.3.0
Describe the bug and the steps to reproduce it
Hi, Would it be possible to allow setting newer options from
Intl.NumberFormat
like trailingZeroDisplay? I assume it's just a matter of updating the TypeScript target option, as the option works correctly.Minimal reproduction (greatly appreciated)
No response