Skip to content
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

Merged
merged 2 commits into from Jan 8, 2021

Conversation

gehlert
Copy link
Contributor

@gehlert gehlert commented Jan 7, 2021

The Intl.NumberFormatOptions and Intl.DateTimeFormatOptions values aren't just strings, therefore the current type args?: { [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

@codecov-io
Copy link

Codecov Report

Merging #1096 (595e5f5) into v8.x (e040f80) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e040f80...595e5f5. Read the comment docs.

Copy link
Owner

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kazupon kazupon merged commit 706ffe0 into kazupon:v8.x Jan 8, 2021
@kazupon kazupon added the Type: Improvement Includes backwards-compatible fixes label Jan 8, 2021
This was referenced Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged Type: Improvement Includes backwards-compatible fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type definition: wrong parameter types
3 participants