docs(lua): the keyset nilocalypse

This is needed to give recent LuaLS the right idea about optional fields.
This commit is contained in:
bfredl
2023-08-08 10:40:43 +02:00
parent 0211f889b9
commit 628763fbd8
2 changed files with 194 additions and 194 deletions

View File

@ -295,7 +295,7 @@ local function get_api_keysets_meta()
for _, k in ipairs(keysets) do
local params = {}
for _, key in ipairs(k.keys) do
table.insert(params, {key, api_type(k.types[key] or 'any')})
table.insert(params, {key..'?', api_type(k.types[key] or 'any')})
end
ret[k.name] = {
signature = 'NA',