Skip to content

lib: add JSDoc typings for assert - #38188

Closed
VoltrexKeyva wants to merge 7 commits into
nodejs:masterfrom
VoltrexKeyva:patch-3
Closed

lib: add JSDoc typings for assert#38188
VoltrexKeyva wants to merge 7 commits into
nodejs:masterfrom
VoltrexKeyva:patch-3

Conversation

@VoltrexKeyva

Copy link
Copy Markdown
Contributor

Added JSDoc typings for the assert lib.

Added JSDoc typings for the assert lib.
@nodejs-github-botnodejs-github-bot added assert Issues and PRs related to the assert subsystem. needs-ci PRs that need a full CI run. labels Apr 10, 2021
Fixed the typo `of` -> `is` of the `ifError()` method's JSDoc description.
Comment threadlib/assert.js Outdated
Comment threadlib/assert.js Outdated
VoltrexKeyvaand others added 2 commits April 11, 2021 06:12
void -> never.
Co-authored-by: Bradley Farias <bradley.meck@gmail.com>
Change `Function` -> `() => any`.
Co-authored-by: Bradley Farias <bradley.meck@gmail.com>

@bmeckbmeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nits we can improve later if desired

Comment threadlib/assert.js Outdated
Comment threadlib/assert.js Outdated
Comment threadlib/assert.js Outdated
Improved function types by making it indicate what the function's value should be in the parameters.
Comment threadlib/assert.js Outdated
Comment threadlib/assert.js Outdated
Some of the functions returned a promise instead of straight up `void`, `void` -> `Promise<void>`.
Done for checks.
@VoltrexKeyva

Copy link
Copy Markdown
ContributorAuthor

Why does the CI even fail :suspect:

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@targostargos self-assigned this Apr 14, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@targos

Copy link
Copy Markdown
Member

Landed in 82d5988

@targostargos closed this Apr 15, 2021
targos pushed a commit that referenced this pull request Apr 15, 2021
PR-URL: #38188
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@VoltrexKeyva
VoltrexKeyva deleted the patch-3 branch April 15, 2021 14:46
targos pushed a commit that referenced this pull request May 1, 2021
PR-URL: #38188
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@danielleadamsdanielleadams mentioned this pull request May 3, 2021
danielleadams pushed a commit that referenced this pull request May 8, 2021
PR-URL: #38188
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@targostargos removed their assignment Oct 31, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assertIssues and PRs related to the assert subsystem.needs-ciPRs that need a full CI run.typings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@VoltrexKeyva@nodejs-github-bot@targos@bmeck