Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit b683b68

Browse files
committed
fix: @typescript-eslint/no-explicit-any for file-size.ts
1 parent 6eec4f4 commit b683b68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/file-size.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* @ts-ignore */
2-
export default function fileSizeSI(a?: any, b?: any, c?: any, d?: any, e?: any): string {
1+
export default function fileSizeSI(a: number, b?: typeof Math, c?: (p: number) => number, d?: number, e?: number): string {
32
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');
43
}

0 commit comments

Comments
 (0)