Skip to content

Conversation

@adityavyas01
Copy link

Fixes #62971

Adds the missing 'default' literal to Intl.CollatorOptions.collation
to match runtime behavior.

Copilot AI review requested due to automatic review settings January 13, 2026 11:40
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jan 13, 2026
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jan 13, 2026
@adityavyas01
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a type definition issue in the Intl.CollatorOptions interface by adding the missing 'default' literal value to the collation property, aligning the TypeScript type definitions with the actual runtime behavior of the Intl.Collator API.

Changes:

  • Added 'default' as a valid collation option in Intl.CollatorOptions
  • Added test case to verify 'default' collation value is accepted

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/es5.d.ts Added 'default' literal to collation property type definition
tests/cases/conformance/es2020/localesObjectArgument.ts Added test case using 'default' collation value

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

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

2 participants