summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/diagnostics/undefined-field.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua
index 8dad36eb..ff02728f 100644
--- a/script/core/diagnostics/undefined-field.lua
+++ b/script/core/diagnostics/undefined-field.lua
@@ -6,10 +6,16 @@ local noder = require 'core.noder'
local await = require 'await'
local SkipCheckClass = {
- ['unknown'] = true,
- ['any'] = true,
- ['table'] = true,
- ['nil'] = true,
+ ['unknown'] = true,
+ ['any'] = true,
+ ['table'] = true,
+ ['nil'] = true,
+ ['number'] = true,
+ ['integer'] = true,
+ ['boolean'] = true,
+ ['function'] = true,
+ ['userdata'] = true,
+ ['lightuserdata'] = true,
}
return function (uri, callback)