@@ -63,7 +63,7 @@ function debug.gethook(co) end
6363--- #DES 'debug.getinfo'
6464--- @overload fun ( f : integer | function , what ?: infowhat ): debuginfo
6565--- @param thread thread
66- --- @param f integer | async fun ()
66+ --- @param f integer | async fun ( ... ): ...
6767--- @param what ? infowhat
6868--- @return debuginfo
6969--- @nodiscard
@@ -81,9 +81,9 @@ function debug.getinfo(thread, f, what) end
8181function debug .getlocal (thread , level , index ) end
8282--- #else
8383--- #DES 'debug.getlocal>5.2'
84- --- @overload fun ( f : integer | async fun () , index : integer ): string , any
84+ --- @overload fun ( f : integer | async fun ( ... ): ... , index : integer ): string , any
8585--- @param thread thread
86- --- @param f integer | async fun ()
86+ --- @param f integer | async fun ( ... ): ...
8787--- @param index integer
8888--- @return string name
8989--- @return any value
@@ -103,7 +103,7 @@ function debug.getmetatable(object) end
103103function debug .getregistry () end
104104
105105--- #DES 'debug.getupvalue'
106- --- @param f async fun ()
106+ --- @param f async fun ( ... ): ...
107107--- @param up integer
108108--- @return string name
109109--- @return any value
@@ -146,11 +146,11 @@ function debug.setfenv(object, env) end
146146--- |+ ' "l"' # ---#DESTAIL 'hookmask.l'
147147
148148--- #DES 'debug.sethook'
149- --- @overload fun ( hook : async fun (), mask : hookmask , count ?: integer )
150- --- @overload fun ( thread : thread )
151- --- @overload fun ()
149+ --- @overload fun ( hook : ( async fun ( ... ): ... ), mask : hookmask , count ?: integer )
150+ --- @overload fun ( thread : thread ): ...
151+ --- @overload fun ( ... ): ...
152152--- @param thread thread
153- --- @param hook async fun ()
153+ --- @param hook async fun ( ... ): ...
154154--- @param mask hookmask
155155--- @param count ? integer
156156function debug .sethook (thread , hook , mask , count ) end
@@ -172,7 +172,7 @@ function debug.setlocal(thread, level, index, value) end
172172function debug .setmetatable (value , meta ) end
173173
174174--- #DES 'debug.setupvalue'
175- --- @param f async fun ()
175+ --- @param f async fun ( ... ): ...
176176--- @param up integer
177177--- @param value any
178178--- @return string name
@@ -204,17 +204,17 @@ function debug.traceback(thread, message, level) end
204204
205205--- @version > 5.2 , JIT
206206--- #DES 'debug.upvalueid'
207- --- @param f async fun ()
207+ --- @param f async fun ( ... ): ...
208208--- @param n integer
209209--- @return lightuserdata id
210210--- @nodiscard
211211function debug .upvalueid (f , n ) end
212212
213213--- @version > 5.2 , JIT
214214--- #DES 'debug.upvaluejoin'
215- --- @param f1 async fun ()
215+ --- @param f1 async fun ( ... ): ...
216216--- @param n1 integer
217- --- @param f2 async fun ()
217+ --- @param f2 async fun ( ... ): ...
218218--- @param n2 integer
219219function debug .upvaluejoin (f1 , n1 , f2 , n2 ) end
220220
0 commit comments