aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen_annotations.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_annotations.lua')
-rw-r--r--scripts/gen_annotations.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen_annotations.lua b/scripts/gen_annotations.lua
index 08ed2310..d71c88b8 100644
--- a/scripts/gen_annotations.lua
+++ b/scripts/gen_annotations.lua
@@ -224,9 +224,9 @@ local function lua_type_for(prop)
if t == 'array' then
if prop.items and prop.items.type then
if type(prop.items.type) == 'table' then
- prop.items.type = 'any'
+ return 'any[]'
end
- return prop.items.type .. '[]'
+ return (prop.items.type == 'object' and 'table' or prop.items.type) .. '[]'
end
return 'any[]'
end