@types/node 16.10.3 → 16.10.7

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/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: Tue, 05 Oct 2021 20:31:28 GMT
11
+ * Last updated: Wed, 13 Oct 2021 17: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
@@ -414,7 +414,7 @@ declare module 'dgram' {
414
414
  * This method throws `EBADF` if called on an unbound socket.
415
415
  * @since v0.3.8
416
416
  */
417
- setMulticastLoopback(flag: boolean): void;
417
+ setMulticastLoopback(flag: boolean): boolean;
418
418
  /**
419
419
  * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for
420
420
  * "Time to Live", in this context it specifies the number of IP hops that a
@@ -457,7 +457,7 @@ declare module 'dgram' {
457
457
  * This method throws `EBADF` if called on an unbound socket.
458
458
  * @since v0.1.101
459
459
  */
460
- setTTL(ttl: number): void;
460
+ setTTL(ttl: number): number;
461
461
  /**
462
462
  * By default, binding a socket will cause it to block the Node.js process from
463
463
  * exiting as long as the socket is open. The `socket.unref()` method can be used
node/fs.d.ts CHANGED
@@ -768,6 +768,7 @@ declare module 'fs' {
768
768
  * @deprecated Since v0.4.7
769
769
  */
770
770
  export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
771
+ /** @deprecated */
771
772
  export namespace lchmod {
772
773
  /**
773
774
  * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
@@ -3000,6 +3001,7 @@ declare module 'fs' {
3000
3001
  * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead.
3001
3002
  */
3002
3003
  export function exists(path: PathLike, callback: (exists: boolean) => void): void;
3004
+ /** @deprecated */
3003
3005
  export namespace exists {
3004
3006
  /**
3005
3007
  * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
node/inspector.d.ts CHANGED
@@ -1778,6 +1778,13 @@ declare module 'inspector' {
1778
1778
  * @since v8.0.0
1779
1779
  */
1780
1780
  connect(): void;
1781
+ /**
1782
+ * Connects a session to the main thread inspector back-end.
1783
+ * An exception will be thrown if this API was not called on a Worker
1784
+ * thread.
1785
+ * @since 12.11.0
1786
+ */
1787
+ connectToMainThread(): void;
1781
1788
  /**
1782
1789
  * Immediately close the session. All pending message callbacks will be called
1783
1790
  * with an error. `session.connect()` will need to be called to be able to send
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.10.3",
3
+ "version": "16.10.7",
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": "6b890401c9e8ed8ad1296e2cfeef65f2ba29feb793d490917f614c65e7f33f07",
228
+ "typesPublisherContentHash": "e97a6c5e8d7096746e73f5953b96ca9bf5cc2912f37fcf40ce7c5ff31c0b8d95",
229
229
  "typeScriptVersion": "3.7"
230
230
  }