@types/node 16.10.2 → 16.10.6
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 +1 -1
- node/console.d.ts +5 -0
- node/dgram.d.ts +1 -1
- node/fs.d.ts +2 -0
- node/inspector.d.ts +7 -0
- 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,
|
|
11
|
+
* Last updated: Wed, 13 Oct 2021 16: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/console.d.ts
CHANGED
|
@@ -394,6 +394,11 @@ declare module 'node:console' {
|
|
|
394
394
|
ignoreErrors?: boolean | undefined;
|
|
395
395
|
colorMode?: boolean | 'auto' | undefined;
|
|
396
396
|
inspectOptions?: InspectOptions | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Set group indentation
|
|
399
|
+
* @default 2
|
|
400
|
+
*/
|
|
401
|
+
groupIndentation?: number | undefined;
|
|
397
402
|
}
|
|
398
403
|
interface ConsoleConstructor {
|
|
399
404
|
prototype: Console;
|
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):
|
|
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
|
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
|
+
"version": "16.10.6",
|
|
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": "
|
|
228
|
+
"typesPublisherContentHash": "6c3f97594c7a75f736e3a3683bf9141ed0d748d67b49ffc99ce8bb7e48ee24f8",
|
|
229
229
|
"typeScriptVersion": "3.7"
|
|
230
230
|
}
|