mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-26 22:56:23 -04:00
Convert Filter components to TypeScript
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
function convertToBytes(input: number, power: number, binaryPrefix: boolean) {
|
||||
function convertToBytes(
|
||||
input: number | string,
|
||||
power: number,
|
||||
binaryPrefix: boolean
|
||||
) {
|
||||
const size = Number(input);
|
||||
|
||||
if (isNaN(size)) {
|
||||
|
||||
Reference in New Issue
Block a user