Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Support varargs #20

Description

@jgiles

Example:

/** @param {...ParamType} var_args */
var fnVarArgs = function(var_args) {
  arguments; //: [ParamType]
  var_args; //: ...ParamType
};
fnVarArgs; //: fn(var_args: ...ParamType)

This will always be a bit of a hack because we'd have to apply the varargs type to the entire arguments variable, but it would be serviceable.

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