DefinitelyTyped/types/pretty-ms/index.d.ts
2018-12-07 14:52:26 +03:00

24 lines
777 B
TypeScript

// Type definitions for pretty-ms 4.0
// Project: https://github.com/sindresorhus/pretty-ms#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// ocboogie <https://github.com/ocboogie>
// silh <https://github.com/silh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = prettyMs;
declare function prettyMs(input: number, options?: prettyMs.PrettyMsOptions): string;
declare namespace prettyMs {
interface PrettyMsOptions {
secDecimalDigits?: number;
msDecimalDigits?: number;
keepDecimalsOnWholeSeconds?: boolean;
compact?: boolean;
unitCount?: number;
verbose?: boolean;
separateMs?: boolean;
formatSubMs?: boolean;
}
}