@types/node 16.4.6 → 16.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
node/tty.d.ts CHANGED
@@ -35,8 +35,6 @@ declare module 'tty' {
35
35
  */
36
36
  function isatty(fd: number): boolean;
37
37
  /**
38
- * * Extends: `<net.Socket>`
39
- *
40
38
  * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js
41
39
  * process and there should be no reason to create additional instances.
42
40
  * @since v0.5.8
@@ -74,8 +72,6 @@ declare module 'tty' {
74
72
  */
75
73
  type Direction = -1 | 0 | 1;
76
74
  /**
77
- * * Extends: `<net.Socket>`
78
- *
79
75
  * Represents the writable side of a TTY. In normal circumstances,`process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there
80
76
  * should be no reason to create additional instances.
81
77
  * @since v0.5.8
@@ -153,7 +149,7 @@ declare module 'tty' {
153
149
  *
154
150
  * Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables.
155
151
  * @since v9.9.0
156
- * @param env An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
152
+ * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
157
153
  */
158
154
  getColorDepth(env?: object): number;
159
155
  /**
@@ -173,8 +169,8 @@ declare module 'tty' {
173
169
  * // Returns false (the environment setting pretends to support 2 ** 8 colors).
174
170
  * ```
175
171
  * @since v11.13.0, v10.16.0
176
- * @param count The number of colors that are requested (minimum 2).
177
- * @param env An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
172
+ * @param [count=16] The number of colors that are requested (minimum 2).
173
+ * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
178
174
  */
179
175
  hasColors(count?: number): boolean;
180
176
  hasColors(env?: object): boolean;
node/url.d.ts CHANGED
@@ -65,10 +65,10 @@ declare module 'url' {
65
65
  * @since v0.1.25
66
66
  * @deprecated Legacy: Use the WHATWG URL API instead.
67
67
  * @param urlString The URL string to parse.
68
- * @param parseQueryString If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property on the
69
- * returned URL object will be an unparsed, undecoded string.
70
- * @param slashesDenoteHost If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the result
71
- * would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
68
+ * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
69
+ * on the returned URL object will be an unparsed, undecoded string.
70
+ * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the
71
+ * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
72
72
  */
73
73
  function parse(urlString: string): UrlWithStringQuery;
74
74
  function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
node/util.d.ts CHANGED
@@ -1038,7 +1038,7 @@ declare module 'util' {
1038
1038
  /**
1039
1039
  * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the
1040
1040
  * encoded bytes.
1041
- * @param input The text to encode.
1041
+ * @param [input='an empty string'] The text to encode.
1042
1042
  */
1043
1043
  encode(input?: string): Uint8Array;
1044
1044
  /**