Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ declare function encodeURI(uri: string): string;
*/
declare function encodeURIComponent(uriComponent: string): string;

/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @param string A string value
*/
declare function escape(string: string): string;

/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @param string A string value
*/
declare function unescape(string: string): string;

interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/fourslash/completionInJSDocFunctionNew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
////var f = function () { return new/**/; }

goTo.marker();
verify.completionListCount(115);
verify.completionListCount(117);
verify.completionListContains('new');
2 changes: 1 addition & 1 deletion tests/cases/fourslash/completionInJSDocFunctionThis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
////var f = function (s) { return this/**/; }

goTo.marker();
verify.completionListCount(116);
verify.completionListCount(118);
verify.completionListContains('this');

Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
//// var x = </**/;

goTo.marker();
verify.completionListCount(42);
verify.completionListCount(44);
Loading