Skip to content

Add Intl.PluralRules to DOM types #23691

Closed
@dsifford

Description

@dsifford

TypeScript Version: 2.8.3

Search Terms:

  • Intl.PluralRules
  • Intl
  • pluralrules

(searched all issues, the wiki, the code, google, and stackoverflow)

Code

const plurals = new Intl.PluralRules(); // error: Property 'PluralRules' does not exist on type 'typeof Intl'.

Gist:

Intl.PluralRules is at Stage 4 and is supported by most browsers. In addition, there is a TC39 polyfill that exists for older browsers. I'd expect this now to exist in the DOM type definitions.

Expected behavior: Intl.PluralRules to be defined.

Actual behavior: Intl.PluralRules isn't defined anywhere. (I actually even took it one further and ripgrepped the entire repository for PluralRules and there were 0 matches.)

Playground Link: N/A

Related Issues: None that I could locate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions