UNPKG

lerna

Version:

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository

26 lines (25 loc) 654 B
/** Defines a unit range for byte-to-human-readable conversion. */ interface UnitEntry { from: number; to: number; unit: string; long: string; } interface ByteSizeOptions { units?: string; precision?: number; locale?: string | string[]; toStringFn?: () => string; customUnits?: Record<string, UnitEntry[]>; } interface ByteSizeResult { value: string; unit: string; long: string; toString(): string; } declare function byteSize(bytes: number, options?: ByteSizeOptions): ByteSizeResult; declare namespace byteSize { var defaultOptions: (options: ByteSizeOptions) => void; } export default byteSize;