Merge pull request #21962 from RetroCraft/remove-left-pad

Remove left-pad (closes #21853)
This commit is contained in:
Mine Starks
2017-12-11 11:05:28 -08:00
committed by GitHub
5 changed files with 6 additions and 47 deletions
+6
View File
@@ -372,6 +372,12 @@
"sourceRepoURL": "https://github.com/elitechance/lambda-phi",
"asOfVersion": "1.0.1"
},
{
"libraryName": "left-pad",
"typingsPackageName": "left-pad",
"sourceRepoURL": "https://github.com/stevemao/left-pad",
"asOfVersion": "1.2.0"
},
{
"libraryName": "Linq.JS",
"typingsPackageName": "linq",
-8
View File
@@ -1,8 +0,0 @@
// Type definitions for left-pad 1.1
// Project: https://github.com/stevemao/left-pad
// Definitions by: Zlatko Andonovski <https://github.com/Goldsmith42>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function leftPad(str: string|number, len: number, ch?: string|number): string;
export = leftPad;
-15
View File
@@ -1,15 +0,0 @@
import leftPad = require("left-pad");
// Tests based on examples in https://github.com/stevemao/left-pad#usage
leftPad("foo", 5);
// => " foo"
leftPad("foobar", 6);
// => "foobar"'
leftPad(1, 2, "0");
// => "01"
leftPad(17, 5, 0);
// => "00017"
-23
View File
@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"left-pad-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }