Skip to content
New issue

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

Default params (including for destructured items) #227

Closed
brettz9 opened this issue May 15, 2019 · 1 comment
Closed

Default params (including for destructured items) #227

brettz9 opened this issue May 15, 2019 · 1 comment

Comments

@brettz9
Copy link
Collaborator

brettz9 commented May 15, 2019

Default params could be checked, whether to enforce that defaults are specified in JSDoc and/or in the function signature--including defaults on destructured items.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@brettz9 brettz9 changed the title Default params Default params (including for destructured items) May 17, 2019
@brettz9
Copy link
Collaborator Author

brettz9 commented May 28, 2023

With jsdoc/no-defaults implemented, I think the more desirable of the enforcement options (the one which avoids redundancy and can be extracted by documentation tools anyways (such as typedoc)) is already in place.

(On a related matter, I've filed #1100 to turn no-defaults on by default.)

@brettz9 brettz9 closed this as completed May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants