@playform/pipe
Version:
19 lines (18 loc) • 596 B
TypeScript
/**
* @module Bytes
*
*/
export default interface Interface {
/**
* The function converts a given number of bytes into a human-readable format with appropriate units
* (e.g., KB, MB, GB).
*
* @param Bytes - The `Bytes` parameter is the number of bytes that you want to convert to a
* human-readable format.
*
* @param Decimals - The `Decimals` parameter is an optional parameter that specifies the number
* of decimal places to round the result to. If not provided, it defaults to 2.
*
*/
(Bytes: number, Decimals?: number): string;
}