mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 15:38:19 +00:00
fix: resolve lint, typecheck, and tsconfig deprecation errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user