Skip to content

Intl.RelativeTimeFormat does not correctly reflect the spec #39660

@longlho

Description

@longlho

TypeScript Version:
3.9
Search Terms:
Intl.RelativeTimeFormat
Code

Expected behavior:

Actual behavior:
Reading through the lib2020.intl.d.ts I noticed a couple of issues in the declarations:

  1. Locale should not be BCP47LanguageTag, it should be UnicodeBCP47LocaleIdentifier.
  2. RelativeTimeFormat interface and const declaration should be combined into a single class.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions