mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
547 B
TypeScript
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;
|
|
}
|
|
}
|