diff --git a/types/microtime/index.d.ts b/types/microtime/index.d.ts index bb2ac3e675..72c1d09d63 100644 --- a/types/microtime/index.d.ts +++ b/types/microtime/index.d.ts @@ -3,12 +3,10 @@ // Definitions by: Kovács Vince // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace microtime { - function now (): number +export as namespace microtime; - function nowDouble (): number +export function now(): number; - function nowStruct (): number[] -} +export function nowDouble(): number; -export = microtime; \ No newline at end of file +export function nowStruct(): number[]; diff --git a/types/microtime/microtime-tests.ts b/types/microtime/microtime-tests.ts index 6793171d36..81bce7c3a3 100644 --- a/types/microtime/microtime-tests.ts +++ b/types/microtime/microtime-tests.ts @@ -1,7 +1,7 @@ -import * as microtime from "microtime" +import * as microtime from "microtime"; -const nowInteger: number = microtime.now() +const nowInteger: number = microtime.now(); -const nowDouble: number = microtime.nowDouble() +const nowDouble: number = microtime.nowDouble(); -const nowStruct: number[] = microtime.nowStruct() \ No newline at end of file +const nowStruct: number[] = microtime.nowStruct();