Merge pull request #16460 from vi-kon/microtime

Type definitions for microtime@2.1
This commit is contained in:
Arthur Ozga
2017-05-19 14:29:53 -07:00
committed by GitHub
4 changed files with 42 additions and 0 deletions

12
types/microtime/index.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
// Type definitions for microtime 2.1
// Project: https://github.com/wadey/node-microtime
// Definitions by: Kovács Vince <https://github.com/vincekovacs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace microtime;
export function now(): number;
export function nowDouble(): number;
export function nowStruct(): number[];

View File

@@ -0,0 +1,7 @@
import * as microtime from "microtime";
const nowInteger: number = microtime.now();
const nowDouble: number = microtime.nowDouble();
const nowStruct: number[] = microtime.nowStruct();

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"microtime-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }