Add millisecond package types (#27073)

* Add millisecond package types

* Update definition
This commit is contained in:
Aayush Kapoor
2018-07-05 10:03:44 -07:00
committed by Mohamed Hegazy
parent 9dfbd04087
commit 54698152db
4 changed files with 38 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for millisecond 0.1
// Project: https://github.com/unshiftio/millisecond
// Definitions by: Aayush Kapoor <https://github.com/xeoneux>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function millisecond(ms: string | number): number;
declare namespace millisecond { }
export = millisecond;
+4
View File
@@ -0,0 +1,4 @@
import * as millisecond from "millisecond";
millisecond(100);
millisecond("1 years");
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es2015"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"millisecond-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }