Skip to content

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

/// <reference no-default-lib="true"/>


/// <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