Skip to content

Is there any way to achieve proper inference of variadic arguments using aliases? #738

@vaderkos

Description

@vaderkos
--- @alias Predicate<A> fun(...: A): boolean


local pred = function() end

--[[@cast pred Predicate<string, integer, table>]]





pred('hello', 1, {})
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions