archive/unitypackage: type annotations

This commit is contained in:
4DBug committed 2026-11-01 18:39:06 -06:00
1 parent 5096eb4898
commit 524179ec67
6 files changed
+4070 -1081

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ for _, c in Fx.cases do
e = x
end
end
local pv = e and e.preview and e.preview()
local pv: any = e and (e :: any).preview and (e :: any).preview()
t:check(pv and buffer.readstring(pv, 8, 7) == "preview", c.name .. ": preview.png")
-- round trip through our writer
local out, werr = UnityPackage.encode(a)