π 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