Skip to content

Intl.CollatorOptions['collation'] is missing value 'default'Β #62970

@quisido

Description

@quisido

πŸ”Ž Search Terms

  • Intl.CollatorOptions
  • collation

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about collation.

⏯ Playground Link

https://www.typescriptlang.org/play/?#code/HYUw7gBAksAuA2A6Awge3vAhrVAnAFANoC6ANBAN4BQEEAxulrAJarABcEA5ACYgBmmAK7xYXUlQC+ASgDcVIA

πŸ’» Code

new Intl.Collator([], {
  collation: 'default',
});

πŸ™ Actual behavior

Type '"default"' is not assignable to type ...

πŸ™‚ Expected behavior

'default' should be a valid value for collation.

Additional information about the issue

MDN documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions