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 Intl types #6156

Closed
wants to merge 1 commit into from
Closed

Add Intl types #6156

wants to merge 1 commit into from

Conversation

vanwagonet
Copy link
Contributor

Summary:
Flow provides definitions for built-in language apis for JavaScript, including
the following as specified in ECMA-402 (Internationalization API).

  • String#localeCompare
  • Date#toLocaleDateString
  • Date#toLocaleString
  • Date#toLocaleTimeString
  • Number#toLocaleString

This adds the corresponding Intl object and its associated apis from the same
spec, as implemented in all major browers (including back to IE 11).

Fixes #1270
Fixes #2801

Summary:
Flow provides definitions for built-in language apis for JavaScript, including
the following as specified in ECMA-402 (Internationalization API).

* String#localeCompare
* Date#toLocaleDateString
* Date#toLocaleString
* Date#toLocaleTimeString
* Number#toLocaleString

This adds the corresponding `Intl` object and its associated apis from the same
spec, as implemented in all major browers (including back to IE 11).
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@fishythefish has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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

Successfully merging this pull request may close these issues.

Not recognizing Intl as a built-in 0bject object Add Intl defintions
3 participants