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

Commit

Permalink
fix: @typescript-eslint/no-explicit-any for file-size.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
griffithtp committed Jun 25, 2019
1 parent 6eec4f4 commit b683b68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/file-size.ts
@@ -1,4 +1,3 @@
/* @ts-ignore */
export default function fileSizeSI(a?: any, b?: any, c?: any, d?: any, e?: any): string {
export default function fileSizeSI(a: number, b?: typeof Math, c?: (p: number) => number, d?: number, e?: number): 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');
}

0 comments on commit b683b68

Please sign in to comment.