fix: resolve lint, typecheck, and tsconfig deprecation errors

This commit is contained in:
yiling
2026-06-07 11:10:27 +08:00
parent a7e714c7d0
commit e790df2812
9 changed files with 22 additions and 26 deletions
@@ -300,8 +300,8 @@ function resolutionToDimensions(
const targetLongSide = RESOLUTION_LONG_SIDES[resolution]
if (!targetLongSide) return [0, 0]
let width = 0
let height = 0
let width: number
let height: number
if (originalWidth >= originalHeight) {
// Landscape or square: width is the long side