UNPKG

1.31 kBTypeScriptView Raw
1export function filesize(arg: any, { bits, pad, base, round, locale, localeOptions, separator, spacer, symbols, standard, output, fullform, fullforms, exponent, roundingMethod, precision }?: {
2 bits?: boolean;
3 pad?: boolean;
4 base?: number;
5 round?: number;
6 locale?: string;
7 localeOptions?: {};
8 separator?: string;
9 spacer?: string;
10 symbols?: {};
11 standard?: string;
12 output?: string;
13 fullform?: boolean;
14 fullforms?: any[];
15 exponent?: number;
16 roundingMethod?: string;
17 precision?: number;
18}): string | number | any[] | {
19 value: any;
20 symbol: any;
21 exponent: number;
22 unit: string;
23};
24export function partial({ bits, pad, base, round, locale, localeOptions, separator, spacer, symbols, standard, output, fullform, fullforms, exponent, roundingMethod, precision }?: {
25 bits?: boolean;
26 pad?: boolean;
27 base?: number;
28 round?: number;
29 locale?: string;
30 localeOptions?: {};
31 separator?: string;
32 spacer?: string;
33 symbols?: {};
34 standard?: string;
35 output?: string;
36 fullform?: boolean;
37 fullforms?: any[];
38 exponent?: number;
39 roundingMethod?: string;
40 precision?: number;
41}): (arg: any) => string | number | any[] | {
42 value: any;
43 symbol: any;
44 exponent: number;
45 unit: string;
46};