diff options
author | fesily <fesil@foxmail.com> | 2023-05-31 16:38:35 +0800 |
---|---|---|
committer | fesily <fesil@foxmail.com> | 2023-05-31 16:38:35 +0800 |
commit | 2bf30bdd364a4c7a02340d2ebb5360cf8002f2f1 (patch) | |
tree | 0bec1e71788979c45fd1b3526e53a41d6c465d3f /meta/template | |
parent | 661cbf240233d05fe9609f74e39afbe535e6f484 (diff) | |
download | lua-language-server-2bf30bdd364a4c7a02340d2ebb5360cf8002f2f1.zip |
fix assign-type-mismatch
Diffstat (limited to 'meta/template')
-rw-r--r-- | meta/template/basic.lua | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 7004cc44..0dad91ba 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -210,40 +210,40 @@ function select(index, ...) end function setfenv(f, table) end ----@class metatable : table ----@field __mode 'v'|'k'|'kv' ----@field __metatable any ----@field __tostring fun(t):string ----@field __gc fun(t) ----@field __add fun(t1,t2):any ----@field __sub fun(t1,t2):any ----@field __mul fun(t1,t2):any ----@field __div fun(t1,t2):any ----@field __mod fun(t1,t2):any ----@field __pow fun(t1,t2):any ----@field __unm fun(t):any +---@class metatable +---@field __mode 'v'|'k'|'kv'|nil +---@field __metatable any|nil +---@field __tostring fun(t):string|nil +---@field __gc fun(t)|nil +---@field __add fun(t1,t2):any|nil +---@field __sub fun(t1,t2):any|nil +---@field __mul fun(t1,t2):any|nil +---@field __div fun(t1,t2):any|nil +---@field __mod fun(t1,t2):any|nil +---@field __pow fun(t1,t2):any|nil +---@field __unm fun(t):any|nil ---#if VERSION >= 5.3 then ----@field __idiv fun(t1,t2):any ----@field __band fun(t1,t2):any ----@field __bor fun(t1,t2):any ----@field __bxor fun(t1,t2):any ----@field __bnot fun(t):any ----@field __shl fun(t1,t2):any ----@field __shr fun(t1,t2):any +---@field __idiv fun(t1,t2):any|nil +---@field __band fun(t1,t2):any|nil +---@field __bor fun(t1,t2):any|nil +---@field __bxor fun(t1,t2):any|nil +---@field __bnot fun(t):any|nil +---@field __shl fun(t1,t2):any|nil +---@field __shr fun(t1,t2):any|nil ---#end ----@field __concat fun(t1,t2):any ----@field __len fun(t):integer ----@field __eq fun(t1,t2):boolean ----@field __lt fun(t1,t2):boolean ----@field __le fun(t1,t2):boolean ----@field __index table|fun(t,k) ----@field __newindex table|fun(t,k,v) ----@field __call fun(t,...) +---@field __concat fun(t1,t2):any|nil +---@field __len fun(t):integer|nil +---@field __eq fun(t1,t2):boolean|nil +---@field __lt fun(t1,t2):boolean|nil +---@field __le fun(t1,t2):boolean|nil +---@field __index table|fun(t,k)|nil +---@field __newindex table|fun(t,k,v)|nil +---@field __call fun(t,...)|nil ---#if VERSION > 5.1 or VERSION == JIT then ----@field __pairs fun(t):fun(t,k,v) +---@field __pairs fun(t):fun(t,k,v)|nil ---#end ---#if VERSION == JIT or VERSION == 5.2 then ----@field __ipairs fun(t):fun(t,k,v) +---@field __ipairs fun(t):fun(t,k,v)|nil ---#end ---#DES 'setmetatable' |