ws-cleanup-types: archive, audio, data, font, image, layered, music, playlist, subtitle, vector, video: annotations, casts, one value per re-assignment where the solver loses the type

This commit is contained in:
4DBug committed 2026-10-31 11:00:25 -05:00
1 parent dc98aec2ec
commit f459b2dcdf
44 files changed
+172 -119

No files matched your search

+2 -2
View File
@@ -127,7 +127,7 @@ function Mkv.open(r: Bytes.Reader, opts: OpenOptions?): (Types.VideoDecoder?, Er
if not dmx then
return nil, err
end
return Video.open(dmx, opts)
return Video.open(dmx, opts :: Video.OpenOptions?)
end
-- ------------------------------------------------------------------------------------------------ extras
@@ -151,7 +151,7 @@ function Mkv.subtitles(dmx: any, trackId: number?): Types.Subtitles?
if p then
local start = p.pts / track.timescale
local stop = start + (p.duration or 0) / track.timescale
table.insert(subs.cues, { start = start, stop = stop, text = buffer.tostring(p.data) })
table.insert(subs.cues, { start = start, stop = stop, text = buffer.tostring(p.data) } :: Types.Cue)
end
end
return subs