Skip to content

Varargs with EmmyLua doc #116

@MinusKube

Description

@MinusKube

Is it possible to use varargs inside the @param with the EmmyLua doc?
I tried to do

---@param ... number[]
function method(...)
  local test = select(1, ...)
end

and

---@param ... number...
function method(...)
  local test = select(1, ...)
end

But none works correctly, and the test variable is never recognized as a number.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions