mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
lib: include return types in JSDoc
Add types to @returns JSDoc annotations where the type is missing. PR-URL: https://github.com/nodejs/node/pull/41130 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
66b5083c1e
commit
b191e66ddf
6 files changed
+7
-7
No files matched your search
+1
-1
@@ -191,7 +191,7 @@ function stringifyPrimitive(v) {
|
||||
/**
|
||||
* @param {string | number | bigint | boolean} v
|
||||
* @param {(v: string) => string} encode
|
||||
* @returns
|
||||
* @returns {string}
|
||||
*/
|
||||
function encodeStringified(v, encode) {
|
||||
if (typeof v === 'string')
|
||||
|
||||
Reference in new issue
Block a user