mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #21962 from RetroCraft/remove-left-pad
Remove left-pad (closes #21853)
This commit is contained in:
@@ -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",
|
||||
|
||||
Vendored
-8
@@ -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;
|
||||
@@ -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"
|
||||
@@ -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 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user