Merge pull request #21844 from Roaders/add-zero

types for npm package add-zero
This commit is contained in:
Mine Starks
2017-12-11 10:04:16 -08:00
committed by GitHub
4 changed files with 33 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import addZero from "add-zero";
addZero(5, 2);
+6
View File
@@ -0,0 +1,6 @@
// Type definitions for add-zero 1.0
// Project: https://github.com/rafaelrinaldi/add-zero#readme
// Definitions by: Giles Roadnight <https://github.com/Roaders>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default function addZero(value: string | number, digits?: number): string;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"add-zero-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }