Skip to content

Conversation

kt3k
Copy link
Contributor

@kt3k kt3k commented Sep 24, 2021

This PR updates the parameter types of RegExp compile method. The parameter names and types follow the convention used in RegExp constructor (line 952).

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/compile

Fixes #46030

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Sep 24, 2021
@andrewbranch
Copy link
Member

/cc @orta if you want to include this in any roundup of lib changes for the docs

@andrewbranch andrewbranch merged commit 2667c60 into microsoft:main Sep 29, 2021
@orta
Copy link
Contributor

orta commented Sep 29, 2021

Maybe it could go in breaking changes, but it's a deprecated function which probably might not have even worked before (given that you need that first param to do anything realistically) so it's probably OK to just fly under the radar

@kt3k kt3k deleted the fix/update-regexp-compile branch September 30, 2021 02:56
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
None yet
Development

Successfully merging this pull request may close these issues.

lib Update Request: RegExp compile method (lib.es5.d.ts)
4 participants