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
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b0d0a99fec
commit
9af7138b2e
44 files changed
+172
-119
No files matched your search
@@ -42,11 +42,11 @@ function Data.base64(text: string, compression: string?): ({ number }?, string?,
|
||||
return nil, "compression " .. compression .. " is not supported", true
|
||||
end
|
||||
local n = buffer.len(bytes) // 4
|
||||
local out = table.create(n)
|
||||
local out: { number } = table.create(n) :: { number }
|
||||
for i = 0, n - 1 do
|
||||
out[i + 1] = buffer.readu32(bytes, i * 4)
|
||||
end
|
||||
return out, nil
|
||||
return out, nil, nil
|
||||
end
|
||||
|
||||
-- toBase64(gids, compression?, level?) -> text | nil, message
|
||||
|
||||
Reference in new issue
Block a user