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

add lib.es2018.intl + fix lib.es2017.intl #23785

Merged
merged 2 commits into from
Apr 30, 2018
Merged

add lib.es2018.intl + fix lib.es2017.intl #23785

merged 2 commits into from
Apr 30, 2018

Conversation

dsifford
Copy link
Contributor

This PR addresses the two separate issues discuessed in #23691. Namely:

  1. There currently existed no type definitions for Intl.PluralRules.
  2. The type definitions for DateTimeFormat were incorrectly associated with the global namespace, rather than in the Intl namespace.

I'd appreciate a code review on this if at all possible. Most of the changes made were based off of #15369, so there is a chance that I may have edited one or two things incorrectly.

Once the changes are found to be correct, if you could please let me know if/where you'd like tests placed for this, I'll go ahead and add those.

Thanks so much!

cc: @mhegazy

Fixes #23691

@@ -20,4 +20,5 @@ and limitations under the License.

/// <reference path="lib.es2017.d.ts" />
Copy link
Contributor

Choose a reason for hiding this comment

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

do not update the lib files. they are generated as part of the build (jake LKG) and should not be edited manually.

Copy link
Contributor

Choose a reason for hiding this comment

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

that applies to all files lib\*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aha.. That makes sense.

I had a feeling that was the case when editing the file.. 80,000+ lines!

Would you like me to revert these?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes please.

@mhegazy mhegazy merged commit 0bbf4d5 into microsoft:master Apr 30, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Apr 30, 2018

thanks! wanna send a PR to update the docs as well at https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Compiler%20Options.md

@dsifford
Copy link
Contributor Author

@mhegazy Sure!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants