We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example taken from MDN:
function multiply(multiplier, ...theArgs) { return theArgs.map(function (element) { return multiplier * element; }); }
Currently there's no way to typecheck all of theArgs.
theArgs
Maybe there could be a new rest decorator?
rest
@param(Number) @rest(Number) @returns(Array) function multiply(multiplier, ...theArgs) { return theArgs.map(function (element) { return multiplier * element; }); }
The text was updated successfully, but these errors were encountered:
Already underway ;)
Sorry, something went wrong.
No branches or pull requests
Example taken from MDN:
Currently there's no way to typecheck all of
theArgs
.Maybe there could be a new
rest
decorator?The text was updated successfully, but these errors were encountered: