DefinitelyTyped/types/time-span/index.d.ts
Dimitri Benin c469f9c606 [time-span] introduce typings (#18294)
* [time-span] introduce typings

* [time-span] simplify typings as suggested by review
2017-07-22 02:09:18 -07:00

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;