mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add millisecond package types (#27073)
* Add millisecond package types * Update definition
This commit is contained in:
committed by
Mohamed Hegazy
parent
9dfbd04087
commit
54698152db
Vendored
+10
@@ -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;
|
||||
@@ -0,0 +1,4 @@
|
||||
import * as millisecond from "millisecond";
|
||||
|
||||
millisecond(100);
|
||||
millisecond("1 years");
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user