ws-docs: examples/cad.luau: typed tables (no new type diagnostic)

This commit is contained in:
4DBug committed 2026-10-31 13:40:59 -05:00
1 parent 3fde582f8c
commit 23e0c13f52
1 file changed
+2 -2
+2 -2
View File
@@ -29,12 +29,12 @@ local step = assert(F.format("step"))
print(string.format("schema %s, %d instances, file %s", cad.schema, cad.meta.count, cad.header.FILE_NAME[1]))
-- count instances per type
local counts = {}
local counts: { [string]: number } = {}
for _, id in step.ids(cad) do
local t = cad.entities[id].type
counts[t] = (counts[t] or 0) + 1
end
local types = {}
local types: { string } = {}
for t in counts do
table.insert(types, t)
end