Fix typescript error with non-annotated argument.
This commit is contained in:
parent
f3fe5e9671
commit
6eabfe4c6e
|
@ -36,7 +36,7 @@ export function getSecondsTilExpire(token: string): number {
|
||||||
*
|
*
|
||||||
* @return Formatted string.
|
* @return Formatted string.
|
||||||
*/
|
*/
|
||||||
export function humanFileSize(bytes, si=false, dp=1) {
|
export function humanFileSize(bytes: number, si=false, dp=1) {
|
||||||
const thresh = si ? 1000 : 1024;
|
const thresh = si ? 1000 : 1024;
|
||||||
|
|
||||||
if (Math.abs(bytes) < thresh) {
|
if (Math.abs(bytes) < thresh) {
|
||||||
|
|
Loading…
Reference in New Issue