@types/node 16.10.7 → 16.10.8

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/dgram.d.ts +6 -6
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 13 Oct 2021 17:31:21 GMT
11
+ * Last updated: Wed, 13 Oct 2021 18:31:21 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/dgram.d.ts CHANGED
@@ -166,17 +166,17 @@ declare module 'dgram' {
166
166
  * @since v0.1.99
167
167
  * @param callback with no parameters. Called when binding is complete.
168
168
  */
169
- bind(port?: number, address?: string, callback?: () => void): void;
170
- bind(port?: number, callback?: () => void): void;
171
- bind(callback?: () => void): void;
172
- bind(options: BindOptions, callback?: () => void): void;
169
+ bind(port?: number, address?: string, callback?: () => void): this;
170
+ bind(port?: number, callback?: () => void): this;
171
+ bind(callback?: () => void): this;
172
+ bind(options: BindOptions, callback?: () => void): this;
173
173
  /**
174
174
  * Close the underlying socket and stop listening for data on it. If a callback is
175
175
  * provided, it is added as a listener for the `'close'` event.
176
176
  * @since v0.1.99
177
177
  * @param callback Called when the socket has been closed.
178
178
  */
179
- close(callback?: () => void): void;
179
+ close(callback?: () => void): this;
180
180
  /**
181
181
  * Associates the `dgram.Socket` to a remote address and port. Every
182
182
  * message sent by this handle is automatically sent to that destination. Also,
@@ -427,7 +427,7 @@ declare module 'dgram' {
427
427
  * This method throws `EBADF` if called on an unbound socket.
428
428
  * @since v0.3.8
429
429
  */
430
- setMulticastTTL(ttl: number): void;
430
+ setMulticastTTL(ttl: number): number;
431
431
  /**
432
432
  * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer
433
433
  * in bytes.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.10.7",
3
+ "version": "16.10.8",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "e97a6c5e8d7096746e73f5953b96ca9bf5cc2912f37fcf40ce7c5ff31c0b8d95",
228
+ "typesPublisherContentHash": "095c6911e5d8f133d32e7f92331756cbb657676d6b4af727743ff7dc3e02940b",
229
229
  "typeScriptVersion": "3.7"
230
230
  }