-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add es2017.string.d.ts for String.prototype.{padStart,padEnd} * append es2017.string.d.ts into es2017.d.ts * add es2017.string into commandLineParser * append es2017.string into error message for unit tests of commandLineParser * append es2017.string into Gulpfile * append es2017.string into Jakefile
- Loading branch information
Showing
7 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/// <reference path="lib.es2016.d.ts" /> | ||
/// <reference path="lib.es2017.object.d.ts" /> | ||
/// <reference path="lib.es2017.sharedmemory.d.ts" /> | ||
/// <reference path="lib.es2017.sharedmemory.d.ts" /> | ||
/// <reference path="lib.es2017.string.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
interface String { | ||
/** | ||
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. | ||
* The padding is applied from the start (left) of the current string. | ||
* | ||
* @param maxLength The length of the resulting string once the current string has been padded. | ||
* If this parameter is smaller than the current string's length, the current string will be returned as it is. | ||
* | ||
* @param fillString The string to pad the current string with. | ||
* If this string is too long, it will be truncated and the left-most part will be applied. | ||
* The default value for this parameter is " " (U+0020). | ||
*/ | ||
padStart(maxLength: number, fillString?: string): string; | ||
|
||
/** | ||
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. | ||
* The padding is applied from the end (right) of the current string. | ||
* | ||
* @param maxLength The length of the resulting string once the current string has been padded. | ||
* If this parameter is smaller than the current string's length, the current string will be returned as it is. | ||
* | ||
* @param fillString The string to pad the current string with. | ||
* If this string is too long, it will be truncated and the left-most part will be applied. | ||
* The default value for this parameter is " " (U+0020). | ||
*/ | ||
padEnd(maxLength: number, fillString?: string): string; | ||
} |