Skip to content

Commit 3ffc671

Browse files
committed
address GitHub comments
1 parent f681244 commit 3ffc671

4 files changed

Lines changed: 41 additions & 41 deletions

File tree

doc/api/net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ added: v0.1.90
691691
-->
692692

693693
* `data` {string|Buffer|Uint8Array}
694-
* `encoding` {string} Only used when data is `string`. **Default:** `utf8`.
694+
* `encoding` {string} Only used when data is `string`. **Default:** `'utf8'`.
695695
* Returns: {net.Socket} The socket itself.
696696

697697
Half-closes the socket. i.e., it sends a FIN packet. It is possible the

doc/api/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ This feature is not available in [`Worker`][] threads.
16911691
<!-- YAML
16921692
added: v0.1.28
16931693
-->
1694-
* `id` {integer[]}
1694+
* `id` {integer}
16951695

16961696
The `process.setuid(id)` method sets the user identity of the process. (See
16971697
setuid(2).) The `id` can be passed as either a numeric ID or a username string.

doc/api/util.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ useful for addon developers who prefer to do type checking in JavaScript.
939939
added: v10.0.0
940940
-->
941941

942-
* `value` {Object}
942+
* `value` {any}
943943
* Returns: {boolean}
944944

945945
Returns `true` if the value is a built-in [`ArrayBuffer`][] or
@@ -960,7 +960,7 @@ util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true
960960
added: v10.0.0
961961
-->
962962

963-
* `value` {Object}
963+
* `value` {any}
964964
* Returns: {boolean}
965965

966966
Returns `true` if the value is an `arguments` object.
@@ -979,7 +979,7 @@ function foo() {
979979
added: v10.0.0
980980
-->
981981

982-
* `value` {Object}
982+
* `value` {any}
983983
* Returns: {boolean}
984984

985985
Returns `true` if the value is a built-in [`ArrayBuffer`][] instance.
@@ -998,7 +998,7 @@ util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false
998998
added: v10.0.0
999999
-->
10001000

1001-
* `value` {Object}
1001+
* `value` {any}
10021002
* Returns: {boolean}
10031003

10041004
Returns `true` if the value is an [async function][].
@@ -1018,7 +1018,7 @@ util.types.isAsyncFunction(async function foo() {}); // Returns true
10181018
added: v10.0.0
10191019
-->
10201020

1021-
* `value` {Object}
1021+
* `value` {any}
10221022
* Returns: {boolean}
10231023

10241024
Returns `true` if the value is a `BigInt64Array` instance. The
@@ -1038,7 +1038,7 @@ util.types.isBigInt64Array(new BigUint64Array()); // Returns false
10381038
added: v10.0.0
10391039
-->
10401040

1041-
* `value` {Object}
1041+
* `value` {any}
10421042
* Returns: {boolean}
10431043

10441044
Returns `true` if the value is a `BigUint64Array` instance. The
@@ -1058,7 +1058,7 @@ util.types.isBigUint64Array(new BigUint64Array()); // Returns true
10581058
added: v10.0.0
10591059
-->
10601060

1061-
* `value` {Object}
1061+
* `value` {any}
10621062
* Returns: {boolean}
10631063

10641064
Returns `true` if the value is a boolean object, e.g. created
@@ -1080,7 +1080,7 @@ util.types.isBooleanObject(Boolean(true)); // Returns false
10801080
added: v10.0.0
10811081
-->
10821082

1083-
* `value` {Object}
1083+
* `value` {any}
10841084
* Returns: {boolean}
10851085

10861086
Returns `true` if the value is a built-in [`DataView`][] instance.
@@ -1100,7 +1100,7 @@ See also [`ArrayBuffer.isView()`][].
11001100
added: v10.0.0
11011101
-->
11021102

1103-
* `value` {Object}
1103+
* `value` {any}
11041104
* Returns: {boolean}
11051105

11061106
Returns `true` if the value is a built-in [`Date`][] instance.
@@ -1116,7 +1116,7 @@ util.types.isDate(new Date()); // Returns true
11161116
added: v10.0.0
11171117
-->
11181118

1119-
* `value` {Object}
1119+
* `value` {any}
11201120
* Returns: {boolean}
11211121

11221122
Returns `true` if the value is a native `External` value.
@@ -1126,7 +1126,7 @@ Returns `true` if the value is a native `External` value.
11261126
added: v10.0.0
11271127
-->
11281128

1129-
* `value` {Object}
1129+
* `value` {any}
11301130
* Returns: {boolean}
11311131

11321132
Returns `true` if the value is a built-in [`Float32Array`][] instance.
@@ -1144,7 +1144,7 @@ util.types.isFloat32Array(new Float64Array()); // Returns false
11441144
added: v10.0.0
11451145
-->
11461146

1147-
* `value` {Object}
1147+
* `value` {any}
11481148
* Returns: {boolean}
11491149

11501150
Returns `true` if the value is a built-in [`Float64Array`][] instance.
@@ -1162,7 +1162,7 @@ util.types.isFloat64Array(new Float64Array()); // Returns true
11621162
added: v10.0.0
11631163
-->
11641164

1165-
* `value` {Object}
1165+
* `value` {any}
11661166
* Returns: {boolean}
11671167

11681168
Returns `true` if the value is a generator function.
@@ -1182,7 +1182,7 @@ util.types.isGeneratorFunction(function* foo() {}); // Returns true
11821182
added: v10.0.0
11831183
-->
11841184

1185-
* `value` {Object}
1185+
* `value` {any}
11861186
* Returns: {boolean}
11871187

11881188
Returns `true` if the value is a generator object as returned from a
@@ -1204,7 +1204,7 @@ util.types.isGeneratorObject(generator); // Returns true
12041204
added: v10.0.0
12051205
-->
12061206

1207-
* `value` {Object}
1207+
* `value` {any}
12081208
* Returns: {boolean}
12091209

12101210
Returns `true` if the value is a built-in [`Int8Array`][] instance.
@@ -1222,7 +1222,7 @@ util.types.isInt8Array(new Float64Array()); // Returns false
12221222
added: v10.0.0
12231223
-->
12241224

1225-
* `value` {Object}
1225+
* `value` {any}
12261226
* Returns: {boolean}
12271227

12281228
Returns `true` if the value is a built-in [`Int16Array`][] instance.
@@ -1240,7 +1240,7 @@ util.types.isInt16Array(new Float64Array()); // Returns false
12401240
added: v10.0.0
12411241
-->
12421242

1243-
* `value` {Object}
1243+
* `value` {any}
12441244
* Returns: {boolean}
12451245

12461246
Returns `true` if the value is a built-in [`Int32Array`][] instance.
@@ -1258,7 +1258,7 @@ util.types.isInt32Array(new Float64Array()); // Returns false
12581258
added: v10.0.0
12591259
-->
12601260

1261-
* `value` {Object}
1261+
* `value` {any}
12621262
* Returns: {boolean}
12631263

12641264
Returns `true` if the value is a built-in [`Map`][] instance.
@@ -1274,7 +1274,7 @@ util.types.isMap(new Map()); // Returns true
12741274
added: v10.0.0
12751275
-->
12761276

1277-
* `value` {Object}
1277+
* `value` {any}
12781278
* Returns: {boolean}
12791279

12801280
Returns `true` if the value is an iterator returned for a built-in
@@ -1295,7 +1295,7 @@ util.types.isMapIterator(map[Symbol.iterator]()); // Returns true
12951295
added: v10.0.0
12961296
-->
12971297

1298-
* `value` {Object}
1298+
* `value` {any}
12991299
* Returns: {boolean}
13001300

13011301
Returns `true` if the value is an instance of a [Module Namespace Object][].
@@ -1314,7 +1314,7 @@ util.types.isModuleNamespaceObject(ns); // Returns true
13141314
added: v10.0.0
13151315
-->
13161316

1317-
* `value` {Object}
1317+
* `value` {any}
13181318
* Returns: {boolean}
13191319

13201320
Returns `true` if the value is an instance of a built-in [`Error`][] type.
@@ -1332,7 +1332,7 @@ util.types.isNativeError(new RangeError()); // Returns true
13321332
added: v10.0.0
13331333
-->
13341334

1335-
* `value` {Object}
1335+
* `value` {any}
13361336
* Returns: {boolean}
13371337

13381338
Returns `true` if the value is a number object, e.g. created
@@ -1350,7 +1350,7 @@ util.types.isNumberObject(new Number(0)); // Returns true
13501350
added: v10.0.0
13511351
-->
13521352

1353-
* `value` {Object}
1353+
* `value` {any}
13541354
* Returns: {boolean}
13551355

13561356
Returns `true` if the value is a built-in [`Promise`][].
@@ -1366,7 +1366,7 @@ util.types.isPromise(Promise.resolve(42)); // Returns true
13661366
added: v10.0.0
13671367
-->
13681368

1369-
* `value` {Object}
1369+
* `value` {any}
13701370
* Returns: {boolean}
13711371

13721372
Returns `true` if the value is a [`Proxy`][] instance.
@@ -1385,7 +1385,7 @@ util.types.isProxy(proxy); // Returns true
13851385
added: v10.0.0
13861386
-->
13871387

1388-
* `value` {Object}
1388+
* `value` {any}
13891389
* Returns: {boolean}
13901390

13911391
Returns `true` if the value is a regular expression object.
@@ -1402,7 +1402,7 @@ util.types.isRegExp(new RegExp('abc')); // Returns true
14021402
added: v10.0.0
14031403
-->
14041404

1405-
* `value` {Object}
1405+
* `value` {any}
14061406
* Returns: {boolean}
14071407

14081408
Returns `true` if the value is a built-in [`Set`][] instance.
@@ -1418,7 +1418,7 @@ util.types.isSet(new Set()); // Returns true
14181418
added: v10.0.0
14191419
-->
14201420

1421-
* `value` {Object}
1421+
* `value` {any}
14221422
* Returns: {boolean}
14231423

14241424
Returns `true` if the value is an iterator returned for a built-in
@@ -1439,7 +1439,7 @@ util.types.isSetIterator(set[Symbol.iterator]()); // Returns true
14391439
added: v10.0.0
14401440
-->
14411441

1442-
* `value` {Object}
1442+
* `value` {any}
14431443
* Returns: {boolean}
14441444

14451445
Returns `true` if the value is a built-in [`SharedArrayBuffer`][] instance.
@@ -1458,7 +1458,7 @@ util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true
14581458
added: v10.0.0
14591459
-->
14601460

1461-
* `value` {Object}
1461+
* `value` {any}
14621462
* Returns: {boolean}
14631463

14641464
Returns `true` if the value is a string object, e.g. created
@@ -1476,7 +1476,7 @@ util.types.isStringObject(new String('foo')); // Returns true
14761476
added: v10.0.0
14771477
-->
14781478

1479-
* `value` {Object}
1479+
* `value` {any}
14801480
* Returns: {boolean}
14811481

14821482
Returns `true` if the value is a symbol object, created
@@ -1495,7 +1495,7 @@ util.types.isSymbolObject(Object(symbol)); // Returns true
14951495
added: v10.0.0
14961496
-->
14971497

1498-
* `value` {Object}
1498+
* `value` {any}
14991499
* Returns: {boolean}
15001500

15011501
Returns `true` if the value is a built-in [`TypedArray`][] instance.
@@ -1515,7 +1515,7 @@ See also [`ArrayBuffer.isView()`][].
15151515
added: v10.0.0
15161516
-->
15171517

1518-
* `value` {Object}
1518+
* `value` {any}
15191519
* Returns: {boolean}
15201520

15211521
Returns `true` if the value is a built-in [`Uint8Array`][] instance.
@@ -1533,7 +1533,7 @@ util.types.isUint8Array(new Float64Array()); // Returns false
15331533
added: v10.0.0
15341534
-->
15351535

1536-
* `value` {Object}
1536+
* `value` {any}
15371537
* Returns: {boolean}
15381538

15391539
Returns `true` if the value is a built-in [`Uint8ClampedArray`][] instance.
@@ -1551,7 +1551,7 @@ util.types.isUint8ClampedArray(new Float64Array()); // Returns false
15511551
added: v10.0.0
15521552
-->
15531553

1554-
* `value` {Object}
1554+
* `value` {any}
15551555
* Returns: {boolean}
15561556

15571557
Returns `true` if the value is a built-in [`Uint16Array`][] instance.
@@ -1569,7 +1569,7 @@ util.types.isUint16Array(new Float64Array()); // Returns false
15691569
added: v10.0.0
15701570
-->
15711571

1572-
* `value` {Object}
1572+
* `value` {any}
15731573
* Returns: {boolean}
15741574

15751575
Returns `true` if the value is a built-in [`Uint32Array`][] instance.
@@ -1587,7 +1587,7 @@ util.types.isUint32Array(new Float64Array()); // Returns false
15871587
added: v10.0.0
15881588
-->
15891589

1590-
* `value` {Object}
1590+
* `value` {any}
15911591
* Returns: {boolean}
15921592

15931593
Returns `true` if the value is a built-in [`WeakMap`][] instance.
@@ -1603,7 +1603,7 @@ util.types.isWeakMap(new WeakMap()); // Returns true
16031603
added: v10.0.0
16041604
-->
16051605

1606-
* `value` {Object}
1606+
* `value` {any}
16071607
* Returns: {boolean}
16081608

16091609
Returns `true` if the value is a built-in [`WeakSet`][] instance.
@@ -1619,7 +1619,7 @@ util.types.isWeakSet(new WeakSet()); // Returns true
16191619
added: v10.0.0
16201620
-->
16211621

1622-
* `value` {Object}
1622+
* `value` {any}
16231623
* Returns: {boolean}
16241624

16251625
Returns `true` if the value is a built-in [`WebAssembly.Module`][] instance.

doc/api/v8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ changes to the API or wire format) may occur until this warning is removed.
175175
added: v8.0.0
176176
-->
177177

178-
* `value` {Object}
178+
* `value` {any}
179179
* Returns: {Buffer}
180180

181181
Uses a [`DefaultSerializer`][] to serialize `value` into a buffer.

0 commit comments

Comments
 (0)