@types/node 20.1.3 → 20.1.5

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: Thu, 11 May 2023 20:02:56 GMT
11
+ * Last updated: Tue, 16 May 2023 01:02:57 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/child_process.d.ts CHANGED
@@ -630,6 +630,15 @@ declare module 'child_process' {
630
630
  }
631
631
  interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
632
632
  argv0?: string | undefined;
633
+ /**
634
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
635
+ * If passed as an array, the first element is used for `stdin`, the second for
636
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
637
+ * specify the `stdio` behavior beyond the standard streams. See
638
+ * {@link ChildProcess.stdio} for more information.
639
+ *
640
+ * @default 'pipe'
641
+ */
633
642
  stdio?: StdioOptions | undefined;
634
643
  shell?: boolean | string | undefined;
635
644
  windowsVerbatimArguments?: boolean | undefined;
@@ -1191,6 +1200,15 @@ declare module 'child_process' {
1191
1200
  execPath?: string | undefined;
1192
1201
  execArgv?: string[] | undefined;
1193
1202
  silent?: boolean | undefined;
1203
+ /**
1204
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1205
+ * If passed as an array, the first element is used for `stdin`, the second for
1206
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1207
+ * specify the `stdio` behavior beyond the standard streams. See
1208
+ * {@link ChildProcess.stdio} for more information.
1209
+ *
1210
+ * @default 'pipe'
1211
+ */
1194
1212
  stdio?: StdioOptions | undefined;
1195
1213
  detached?: boolean | undefined;
1196
1214
  windowsVerbatimArguments?: boolean | undefined;
@@ -1291,6 +1309,15 @@ declare module 'child_process' {
1291
1309
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1292
1310
  interface CommonExecOptions extends CommonOptions {
1293
1311
  input?: string | NodeJS.ArrayBufferView | undefined;
1312
+ /**
1313
+ * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings.
1314
+ * If passed as an array, the first element is used for `stdin`, the second for
1315
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1316
+ * specify the `stdio` behavior beyond the standard streams. See
1317
+ * {@link ChildProcess.stdio} for more information.
1318
+ *
1319
+ * @default 'pipe'
1320
+ */
1294
1321
  stdio?: StdioOptions | undefined;
1295
1322
  killSignal?: NodeJS.Signals | number | undefined;
1296
1323
  maxBuffer?: number | undefined;
node/globals.d.ts CHANGED
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
64
64
  readonly aborted: boolean;
65
65
  readonly reason: any;
66
66
  onabort: null | ((this: AbortSignal, event: Event) => any);
67
+ throwIfAborted(): void;
67
68
  }
68
69
 
69
70
  declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.1.3",
3
+ "version": "20.1.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -232,6 +232,6 @@
232
232
  },
233
233
  "scripts": {},
234
234
  "dependencies": {},
235
- "typesPublisherContentHash": "a821357c6e565ca2470c2b7f613961727e971d28c26c1160834a50312f336893",
235
+ "typesPublisherContentHash": "224e12861580c4a63c2f960b37d7872d42fb4da083c46ff9f6d984410e48425c",
236
236
  "typeScriptVersion": "4.3"
237
237
  }
@@ -630,6 +630,15 @@ declare module 'child_process' {
630
630
  }
631
631
  interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
632
632
  argv0?: string | undefined;
633
+ /**
634
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
635
+ * If passed as an array, the first element is used for `stdin`, the second for
636
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
637
+ * specify the `stdio` behavior beyond the standard streams. See
638
+ * {@link ChildProcess.stdio} for more information.
639
+ *
640
+ * @default 'pipe'
641
+ */
633
642
  stdio?: StdioOptions | undefined;
634
643
  shell?: boolean | string | undefined;
635
644
  windowsVerbatimArguments?: boolean | undefined;
@@ -1191,6 +1200,15 @@ declare module 'child_process' {
1191
1200
  execPath?: string | undefined;
1192
1201
  execArgv?: string[] | undefined;
1193
1202
  silent?: boolean | undefined;
1203
+ /**
1204
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1205
+ * If passed as an array, the first element is used for `stdin`, the second for
1206
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1207
+ * specify the `stdio` behavior beyond the standard streams. See
1208
+ * {@link ChildProcess.stdio} for more information.
1209
+ *
1210
+ * @default 'pipe'
1211
+ */
1194
1212
  stdio?: StdioOptions | undefined;
1195
1213
  detached?: boolean | undefined;
1196
1214
  windowsVerbatimArguments?: boolean | undefined;
@@ -1291,6 +1309,15 @@ declare module 'child_process' {
1291
1309
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1292
1310
  interface CommonExecOptions extends CommonOptions {
1293
1311
  input?: string | NodeJS.ArrayBufferView | undefined;
1312
+ /**
1313
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1314
+ * If passed as an array, the first element is used for `stdin`, the second for
1315
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1316
+ * specify the `stdio` behavior beyond the standard streams. See
1317
+ * {@link ChildProcess.stdio} for more information.
1318
+ *
1319
+ * @default 'pipe'
1320
+ */
1294
1321
  stdio?: StdioOptions | undefined;
1295
1322
  killSignal?: NodeJS.Signals | number | undefined;
1296
1323
  maxBuffer?: number | undefined;
node/ts4.8/globals.d.ts CHANGED
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
64
64
  readonly aborted: boolean;
65
65
  readonly reason: any;
66
66
  onabort: null | ((this: AbortSignal, event: Event) => any);
67
+ throwIfAborted(): void;
67
68
  }
68
69
 
69
70
  declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}