Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mark opts argument as optional in JSDoc #9

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

emilbjorklund
Copy link
Contributor

@emilbjorklund emilbjorklund commented Jan 31, 2022

The JSDoc comment did not mark the opts argument as optional, thereby failing in any project that uses TypeScript to check JS-files (where the JS is typechecked by using hints from JSDoc comments) and does not provide the last argument.

See: https://jsdoc.app/tags-param.html#optional-parameters-and-default-values

The JSDoc comment did not mark the opts argument as optional, thereby failing in any project that uses TypeScript to check JS-files (where the JS is typechecked by using hints from JSDoc comments) and does not provide the last argument.
@emilbjorklund emilbjorklund changed the title Make opts argument optional Mark opts argument as optional in JSDoc Jan 31, 2022
@emilbjorklund emilbjorklund changed the title Mark opts argument as optional in JSDoc Mark opts argument as optional in JSDoc Jan 31, 2022
@mvhenten
Copy link
Owner

mvhenten commented Feb 1, 2022

Thank you!

@mvhenten mvhenten merged commit 214b197 into mvhenten:master Feb 1, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants