diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lovr-api.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lovr-api.lua b/tools/lovr-api.lua index c5d7f95f..36b29929 100644 --- a/tools/lovr-api.lua +++ b/tools/lovr-api.lua @@ -64,7 +64,10 @@ function buildType(param) if param.table then return buildDocTable(param.table) end - return getTypeName(param.type or param.name) + if param.type and param.type ~= '*' then + return getTypeName(param.type) + end + return 'any' end local function buildSuper(tp) |