New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@types: Fixed too narrow option types in n() and d() methods #1096
Conversation
Codecov Report
@@ Coverage Diff @@
## v8.x #1096 +/- ##
=======================================
Coverage 96.49% 96.49%
=======================================
Files 10 10
Lines 913 913
=======================================
Hits 881 881
Misses 32 32 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The
Intl.NumberFormatOptions
andIntl.DateTimeFormatOptions
values aren't just strings, therefore the current typeargs?: { [key: string]: string }
is too narrow.Added a new overload to reflect this. I kept the old declaration for backward compatibility.
Should also fix #749