mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-06 20:46:50 +08:00
17 lines
500 B
TypeScript
17 lines
500 B
TypeScript
// Type definitions for convert-hrtime 2.0
|
|
// Project: https://github.com/sindresorhus/convert-hrtime#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = convertHrtime;
|
|
|
|
declare function convertHrtime(hrtime: [number, number]): convertHrtime.HRTime;
|
|
|
|
declare namespace convertHrtime {
|
|
interface HRTime {
|
|
seconds: number;
|
|
milliseconds: number;
|
|
nanoseconds: number;
|
|
}
|
|
}
|