mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Added definitions for milliseconds
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="milliseconds.d.ts" />
|
||||
|
||||
milliseconds.seconds(1)
|
||||
milliseconds.minutes(2)
|
||||
milliseconds.hours(3)
|
||||
milliseconds.days(4)
|
||||
milliseconds.weeks(5)
|
||||
milliseconds.month(6)
|
||||
milliseconds.years(7)
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// Type definitions for milliseconds
|
||||
// Project: http://npmjs.com/milliseconds
|
||||
// Definitions by: Elmar Burke <github.com/elmarburke>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Milliseconds {
|
||||
seconds(seconds: number): number
|
||||
minutes(minutes: number): number
|
||||
hours(hours: number): number
|
||||
days(days: number): number
|
||||
weeks(weeks: number): number
|
||||
month(month: number): number
|
||||
years(years: number): number
|
||||
}
|
||||
|
||||
declare var milliseconds: Milliseconds
|
||||
|
||||
declare module 'milliseconds' {
|
||||
export = milliseconds
|
||||
}
|
||||
Reference in New Issue
Block a user