Uh oh!
There was an error while loading. Please reload this page.
os: fix cpus invalid return type jsdoc syntax - #43006
Conversation
himself65
commented
May 8, 2022

Fast-track has been requested by @himself65. Please 👍 to approve. |
RaisinTen
left a comment
There was a problem hiding this comment.
himself65
commented
May 8, 2022
himself65
commented
May 8, 2022
I ran the So I don't think we should enable the jsdoc type check for now For example: /Users/himself65/Code/node/lib/util.js
85:1 warning Syntax error in type: arg is boolean jsdoc/valid-types
94:1 warning Syntax error in type: arg is null jsdoc/valid-types
103:1 warning Syntax error in type: arg is (null | undefined) jsdoc/valid-types
112:1 warning Syntax error in type: arg is number jsdoc/valid-types
120:1 warning Syntax error in type: arg is string jsdoc/valid-types
129:1 warning Syntax error in type: arg is symbol jsdoc/valid-types
138:1 warning Syntax error in type: arg is undefined jsdoc/valid-types
147:1 warning Syntax error in type: a is NonNullable<object> jsdoc/valid-types
156:1 warning Syntax error in type: arg is Error jsdoc/valid-types
165:1 warning Syntax error in type: arg is Function jsdoc/valid-types
174:1 warning Syntax error in type: arg is (boolean | null | number | string | symbol | undefined) jsdoc/valid-types
209:1 warning Syntax error in type: (...args: any[]) => void jsdoc/valid-types
259:1 warning Syntax error in type: S extends null ? T : (T & S) jsdoc/valid-types
285:1 warning @template should not have a bracketed typein"jsdoc" mode jsdoc/valid-types
287:1 warning Syntax error in type: T extends (...args: infer TArgs) => Promise<infer TReturn>?((...params: [...TArgs, ((err: Error, ret: TReturn) => any)]) => void) : never jsdoc/valid-types |
himself65
commented
May 8, 2022
I check the we should set settings: {jsdoc: {mode: 'typescript'}}, |
RaisinTen
commented
May 9, 2022
If the problem is about adding one more revision to the git blame, I think we could still do the change and add the commit to the cc @targos since you mentioned the |
Uh oh!
There was an error while loading. Please reload this page.
| * model: string, | ||
| * speed: number, |
There was a problem hiding this comment.
I have a personal preference of using ; in type definitions, but I'm fine with , if we already use it elsewhere.
I've opened a new issue that discusses whether enable |
nodejs-github-bot
commented
May 10, 2022
Commit Queue failed- Loading data for nodejs/node/pull/43006 ✔ Done loading data for nodejs/node/pull/43006 ----------------------------------- PR info ------------------------------------ Title os: fix `cpus` invalid return type jsdoc syntax (#43006) Author Himself65 (@Himself65) Branch Himself65:20220508-fix-jsdoc -> nodejs:master Labels os, fast-track, author ready, needs-ci, typings Commits 2 - os: fix `cpus` invalid return type jsdoc syntax - fixup!os: fix `cpus` invalid return type jsdoc syntax Committers 1 - Himself65 PR-URL: https://github.com/nodejs/node/pull/43006 Reviewed-By: Antoine du Hamel Reviewed-By: Darshan Sen ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43006 Reviewed-By: Antoine du Hamel Reviewed-By: Darshan Sen -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 08 May 2022 05:08:56 GMT ✔ Approvals: 2 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/43006#pullrequestreview-966523299 ✔ - Darshan Sen (@RaisinTen) (TSC): https://github.com/nodejs/node/pull/43006#pullrequestreview-967159779 ℹ This PR is being fast-tracked ✖ The fast-track request requires at least two collaborators' approvals (👍). ✖ Last GitHub CI failed ✖ No Jenkins CI runs detected -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/2303698988 |
aduh95
commented
May 10, 2022
Landed in d62e412 |
PR-URL: #43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: nodejs/node#43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>