add types for escape and unescape methods #18813 (#19015) · spiffcode/TypeScript@c2f0c58 · GitHub
Skip to content

Commit c2f0c58

Browse files
wbhobmhegazy
authored andcommitted
add types for escape and unescape methods microsoft#18813 (microsoft#19015)
* add types for escape and unescape methods microsoft#18813 although the issue is marked working as expected, it is important to mention that most major browsers maintain support for escape and unescape, and some javascript codebases moving to typescript may have escape and unescape in them. They are valid JavaScript, and thus they should be included in the global definition. * add escape and unescape types to lib in tests * update tests to turn CI green
1 parent e7df832 commit c2f0c58

5 files changed

Lines changed: 847 additions & 823 deletions

File tree

src/lib/es5.d.ts

Lines changed: 12 additions & 0 deletions

tests/cases/fourslash/completionInJSDocFunctionNew.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
////var f = function () { return new/**/; }
77

88
goTo.marker();
9-
verify.completionListCount(115);
9+
verify.completionListCount(117);
1010
verify.completionListContains('new');

tests/cases/fourslash/completionInJSDocFunctionThis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
////var f = function (s) { return this/**/; }
66

77
goTo.marker();
8-
verify.completionListCount(116);
8+
verify.completionListCount(118);
99
verify.completionListContains('this');
1010

tests/cases/fourslash/tsxCompletionOnOpeningTagWithoutJSX1.ts

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)