Skip to content

Add types for RegExp.escape #61321

Open
Open
@bakkot

Description

@bakkot

⚙ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions