You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there any way to achieve proper inference of variadic arguments using aliases? #738
I think it's more reasonable to learn the definition of TS.
I might reimplement the syntax
If @CppCXY holds an opposing opinion, then the issue will be closed, after all, the syntax has already been implemented.
--- @alias Predicate1<A> fun(...: A...): boolean
---@type Predicate1<[string, integer, table]>
local pred = function() end
pred('hello', 1, {})
Activity
CppCXY commentedon Sep 3, 2025
Not supported currently.
CppCXY commentedon Sep 4, 2025
now it should support like:
xuhuanzy commentedon Sep 30, 2025
I think it's more reasonable to learn the definition of TS.
I might reimplement the syntax
If @CppCXY holds an opposing opinion, then the issue will be closed, after all, the syntax has already been implemented.
Expand tuple types with rest parameters in generic instantiation
Expand tuple types with rest parameters in generic instantiation
Expand tuple types with rest parameters in generic instantiation