@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
11 lines (10 loc) • 314 B
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
/**
* @param fileSize The size of the file in bytes.
* @param precision The number of significant digits in the output.
* @returns A human readable file size
*/
export declare const formatFileSize: (fileSize: number, precision?: number) => string;