UNPKG

flow-declarations

Version:

High quality type declarations for flow.js

17 lines (15 loc) 419 B
declare module bytes { declare interface BytesOptions { decimalPlaces?: number; thousandsSeparator?: string; unitSeparator?: string; fixedDecimals?: boolean; unit?: string; } declare module.exports: { (value: number, options?: BytesOptions): string; (value: string): number; format(value: number, options ?: BytesOptions): string; parse(value: string | number): number; } }