ws-apifix: type fixes (no new diagnostics)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
2abada340b
commit
c4168d751f
2 files changed
+6
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user