mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
536 B
TypeScript
19 lines
536 B
TypeScript
// Type definitions for time-span 2.0
|
|
// Project: https://github.com/sindresorhus/time-span#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Mike Dvorscak <https://github.com/mdvorscak>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace timeSpan {
|
|
interface TimeSpanObject {
|
|
(): number;
|
|
rounded(): number;
|
|
sec(): number;
|
|
nano(): number;
|
|
}
|
|
}
|
|
|
|
declare function timeSpan(): timeSpan.TimeSpanObject;
|
|
|
|
export = timeSpan;
|