Skip to content
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

Add types for RegExp.escape #61321

Open
bakkot opened this issue Feb 28, 2025 · 0 comments
Open

Add types for RegExp.escape #61321

bakkot opened this issue Feb 28, 2025 · 0 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript ES Next New featurers for ECMAScript (a.k.a. ESNext)

Comments

@bakkot
Copy link
Contributor

bakkot commented Feb 28, 2025

⚙ Compilation target

esnext

⚙ Library

esnext

Missing / Incorrect Definition

The RegExp.escape proposal has landed and will be included in es2025.

Sample Code

RegExp.escape("yay!");

Documentation Link

https://github.com/tc39/proposal-regex-escaping
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape

@DanielRosenwasser DanielRosenwasser added ES Next New featurers for ECMAScript (a.k.a. ESNext) Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript ES Next New featurers for ECMAScript (a.k.a. ESNext)
Projects
None yet
Development

No branches or pull requests

2 participants