ws-apifix: type fixes (no new diagnostics)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
4DBugandClaude Opus 5.5 committed 2026-10-31 14:04:21 -05:00
1 parent 2abada340b
commit c4168d751f
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -430,7 +430,7 @@ local function videoToImage(v: any, o: Options): (any, Err.Err?)
local w, h = math.max(1, tonumber(v.width) or 1), math.max(1, tonumber(v.height) or 1)
limit = math.max(1, math.min(limit, math.floor((o.maxPixels or 2 ^ 25) / (w * h))))
local defaultDur = if type(v.frameRate) == "number" and v.frameRate > 0 then 1 / v.frameRate else 0.1
local images, delays = {}, {}
local images: { any }, delays: { number } = {}, {}
local t0: number? = nil
local taken = 0 -- output slots used (fps mode)
while #images < limit do