Update ts-eslint (#23723)

* Update ts-eslint

* Remove comments

* Remove unused ts-ignore

* Add undefined generic type instead of unknown

* Remove unused undefined type

* Fix type issues

* Use undefined instead of void for subscribed return type
This commit is contained in:
Wendelin
2025-01-14 11:24:02 +01:00
committed by GitHub
parent 922cd72be4
commit abe8899f9b
178 changed files with 321 additions and 475 deletions

View File

@@ -25,7 +25,7 @@ export default function parseAspectRatio(input: string) {
return arr.length === 1
? { w: parseOrThrow(arr[0]), h: 1 }
: { w: parseOrThrow(arr[0]), h: parseOrThrow(arr[1]) };
} catch (err: any) {
} catch (_err: any) {
// Ignore the error
}
return null;