Skip to content

Commit 9269032

Browse files
committed
修复基础库定义
1 parent 6c93484 commit 9269032

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

meta/template/basic.lua

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ arg = {}
88
---@generic T
99
---@param v? T
1010
---@param message? any
11+
---@param ... any
1112
---@return T
1213
---@return any ...
1314
function assert(v, message, ...) end
@@ -30,6 +31,7 @@ function assert(v, message, ...) end
3031
---#if VERSION >= 5.4 then
3132
---#DES 'collectgarbage'
3233
---@param opt? gcoptions
34+
---@param ... any
3335
---@return any
3436
function collectgarbage(opt, ...) end
3537
---#else
@@ -136,6 +138,7 @@ function newproxy(proxy) end
136138
---@version 5.1
137139
---#DES 'module'
138140
---@param name string
141+
---@param ... any
139142
function module(name, ...) end
140143

141144
---#DES 'next'
@@ -161,12 +164,14 @@ function pairs(t) end
161164
---@param f async fun(...):...
162165
---#end
163166
---@param arg1? any
167+
---@param ... any
164168
---@return boolean success
165169
---@return any result
166170
---@return any ...
167171
function pcall(f, arg1, ...) end
168172

169173
---#DES 'print'
174+
---@param ... any
170175
function print(...) end
171176

172177
---#DES 'rawequal'
@@ -198,6 +203,7 @@ function rawset(table, index, value) end
198203

199204
---#DES 'select'
200205
---@param index integer|"#"
206+
---@param ... any
201207
---@return any
202208
---@nodiscard
203209
function select(index, ...) end
@@ -298,6 +304,7 @@ _VERSION = "Lua 5.4"
298304
---@version >5.4
299305
---#DES 'warn'
300306
---@param message string
307+
---@param ... any
301308
function warn(message, ...) end
302309

303310
---#if VERSION == 5.1 and not JIT then
@@ -313,6 +320,7 @@ function xpcall(f, err) end
313320
---@param f async fun(...):...
314321
---@param msgh function
315322
---@param arg1? any
323+
---@param ... any
316324
---@return boolean success
317325
---@return any result
318326
---@return any ...

0 commit comments

Comments
 (0)