DefinitelyTyped/types/pretty-bytes/index.d.ts
2018-07-05 10:02:23 -07:00

15 lines
547 B
TypeScript

// Type definitions for pretty-bytes 5.1
// Project: https://github.com/sindresorhus/pretty-bytes
// Definitions by: York Yao <https://github.com/plantain-00>
// Daniela Yassuda <https://github.com/danielasy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function PrettyBytes(number: number, options?: PrettyBytes.PrettyBytesOptions): string;
export = PrettyBytes;
declare namespace PrettyBytes {
interface PrettyBytesOptions {
signed?: boolean;
locale?: boolean | string;
}
}