forked from sombochea/verdaccio-ui
fix: @typescript-eslint/no-explicit-any for file-size.ts
This commit is contained in:
parent
6eec4f45d9
commit
b683b68a2c
@ -1,4 +1,3 @@
|
|||||||
/* @ts-ignore */
|
export default function fileSizeSI(a: number, b?: typeof Math, c?: (p: number) => number, d?: number, e?: number): string {
|
||||||
export default function fileSizeSI(a?: any, b?: any, c?: any, d?: any, e?: any): string {
|
|
||||||
return ((b = Math), (c = b.log), (d = 1e3), (e = (c(a) / c(d)) | 0), a / b.pow(d, e)).toFixed(2) + ' ' + (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes');
|
return ((b = Math), (c = b.log), (d = 1e3), (e = (c(a) / c(d)) | 0), a / b.pow(d, e)).toFixed(2) + ' ' + (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user