Skip to content

Add types for RegExp.escape #62138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lionel-rowe
Copy link
Contributor

Closes #61321
Towards #61735

@Copilot Copilot AI review requested due to automatic review settings July 28, 2025 05:43
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jul 28, 2025
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Jul 28, 2025
Copy link

@Copilot 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 pull request adds type definitions for RegExp.escape, a proposed JavaScript feature that escapes special regex characters in strings. The PR introduces ESNext library types for the new method.

  • Adds type support for the RegExp.escape static method in TypeScript's library definitions
  • Updates test baselines to reflect the new library module inclusion in module resolution traces
  • Implements proper TypeScript typing for the proposed ECMAScript feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Status: Not started
Development

Successfully merging this pull request may close these issues.

Add types for RegExp.escape
2 participants