@types/node 16.11.40 → 16.11.43
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 v16.11/README.md +1 -1
- node v16.11/domain.d.ts +2 -1
- node v16.11/events.d.ts +18 -0
- node v16.11/fs/promises.d.ts +1 -1
- node v16.11/fs.d.ts +3 -3
- node v16.11/package.json +2 -2
node v16.11/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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 03 Jul 2022 13:02:20 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.11/domain.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* **This module is pending deprecation.** Once a replacement API has been
|
|
3
|
-
* finalized, this module will be fully deprecated. Most developers should
|
|
3
|
+
* finalized, this module will be fully deprecated. Most developers should
|
|
4
|
+
* **not** have cause to use this module. Users who absolutely must have
|
|
4
5
|
* the functionality that domains provide may rely on it for the time being
|
|
5
6
|
* but should expect to have to migrate to a different solution
|
|
6
7
|
* in the future.
|
node v16.11/events.d.ts
CHANGED
|
@@ -260,6 +260,24 @@ declare module 'events' {
|
|
|
260
260
|
* @since v15.2.0
|
|
261
261
|
*/
|
|
262
262
|
static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
263
|
+
/**
|
|
264
|
+
* ```js
|
|
265
|
+
* const {
|
|
266
|
+
* setMaxListeners,
|
|
267
|
+
* EventEmitter
|
|
268
|
+
* } = require('events');
|
|
269
|
+
*
|
|
270
|
+
* const target = new EventTarget();
|
|
271
|
+
* const emitter = new EventEmitter();
|
|
272
|
+
*
|
|
273
|
+
* setMaxListeners(5, target, emitter);
|
|
274
|
+
* ```
|
|
275
|
+
* @since v15.4.0
|
|
276
|
+
* @param n A non-negative number. The maximum number of listeners per `EventTarget` event.
|
|
277
|
+
* @param eventsTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
|
|
278
|
+
* objects.
|
|
279
|
+
*/
|
|
280
|
+
static setMaxListeners(n?: number, ...eventTargets: Array<DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
263
281
|
/**
|
|
264
282
|
* This symbol shall be used to install a listener for only monitoring `'error'`
|
|
265
283
|
* events. Listeners installed using this symbol are called before the regular
|
node v16.11/fs/promises.d.ts
CHANGED
|
@@ -1084,7 +1084,7 @@ declare module 'fs/promises' {
|
|
|
1084
1084
|
* @param dest destination path to copy to.
|
|
1085
1085
|
* @return Fulfills with `undefined` upon success.
|
|
1086
1086
|
*/
|
|
1087
|
-
function cp(source: string, destination: string, opts?: CopyOptions): Promise<void>;
|
|
1087
|
+
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1088
1088
|
}
|
|
1089
1089
|
declare module 'node:fs/promises' {
|
|
1090
1090
|
export * from 'fs/promises';
|
node v16.11/fs.d.ts
CHANGED
|
@@ -3770,8 +3770,8 @@ declare module 'fs' {
|
|
|
3770
3770
|
* @param src source path to copy.
|
|
3771
3771
|
* @param dest destination path to copy to.
|
|
3772
3772
|
*/
|
|
3773
|
-
export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3774
|
-
export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3773
|
+
export function cp(source: string | URL, destination: string | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3774
|
+
export function cp(source: string | URL, destination: string | URL, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3775
3775
|
/**
|
|
3776
3776
|
* Synchronously copies the entire directory structure from `src` to `dest`,
|
|
3777
3777
|
* including subdirectories and files.
|
|
@@ -3783,7 +3783,7 @@ declare module 'fs' {
|
|
|
3783
3783
|
* @param src source path to copy.
|
|
3784
3784
|
* @param dest destination path to copy to.
|
|
3785
3785
|
*/
|
|
3786
|
-
export function cpSync(source: string, destination: string, opts?: CopyOptions): void;
|
|
3786
|
+
export function cpSync(source: string | URL, destination: string | URL, opts?: CopyOptions): void;
|
|
3787
3787
|
}
|
|
3788
3788
|
declare module 'node:fs' {
|
|
3789
3789
|
export * from 'fs';
|
node v16.11/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.11.
|
|
3
|
+
"version": "16.11.43",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "ec9fe27c73f176a5ea6615e1b544872e662f29b0686e591bc99d3810999a37f8",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|