@types/node 12.20.44 → 12.20.47

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 v12.20/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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 10 Feb 2022 05:31:40 GMT
11
+ * Last updated: Mon, 07 Mar 2022 17:31:47 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -120,6 +120,16 @@ declare module 'child_process' {
120
120
 
121
121
  type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>;
122
122
 
123
+ type SerializationType = 'json' | 'advanced';
124
+
125
+ interface MessagingOptions {
126
+ /**
127
+ * Specify the kind of serialization used for sending messages between processes.
128
+ * @default 'json'
129
+ */
130
+ serialization?: SerializationType | undefined;
131
+ }
132
+
123
133
  interface ProcessEnvOptions {
124
134
  uid?: number | undefined;
125
135
  gid?: number | undefined;
@@ -138,7 +148,7 @@ declare module 'child_process' {
138
148
  timeout?: number | undefined;
139
149
  }
140
150
 
141
- interface SpawnOptions extends CommonOptions {
151
+ interface SpawnOptions extends CommonOptions, MessagingOptions {
142
152
  argv0?: string | undefined;
143
153
  stdio?: StdioOptions | undefined;
144
154
  detached?: boolean | undefined;
@@ -408,7 +418,7 @@ declare module 'child_process' {
408
418
  ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
409
419
  }
410
420
 
411
- interface ForkOptions extends ProcessEnvOptions {
421
+ interface ForkOptions extends ProcessEnvOptions, MessagingOptions {
412
422
  execPath?: string | undefined;
413
423
  execArgv?: string[] | undefined;
414
424
  silent?: boolean | undefined;
@@ -529,6 +529,7 @@ declare class Buffer extends Uint8Array {
529
529
  readInt32LE(offset?: number): number;
530
530
  readInt32BE(offset?: number): number;
531
531
  readFloatLE(offset?: number): number;
532
+ readFloatBE(offset?: number): number;
532
533
  readDoubleLE(offset?: number): number;
533
534
  readDoubleBE(offset?: number): number;
534
535
  reverse(): this;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.44",
3
+ "version": "12.20.47",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -190,6 +190,6 @@
190
190
  },
191
191
  "scripts": {},
192
192
  "dependencies": {},
193
- "typesPublisherContentHash": "86a286eb0c422ea44fcde35e932c6b3ac4ffe4789b59879116596b35c167ab0e",
194
- "typeScriptVersion": "3.8"
193
+ "typesPublisherContentHash": "a448dab7ec5aa3adc925d98e73bf4dec3b5544c7ba814e186f63a9633d5b9fe1",
194
+ "typeScriptVersion": "3.9"
195
195
  }
node v12.20/url.d.ts CHANGED
@@ -128,16 +128,20 @@ declare module 'url' {
128
128
  * https://nodejs.org/api/url.html#the-whatwg-url-api
129
129
  * @since v10.0.0
130
130
  */
131
- var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
131
+ var URL:
132
+ // For compatibility with "dom" and "webworker" URL declarations
133
+ typeof globalThis extends { onmessage: any, URL: infer URL }
134
+ ? URL
135
+ : typeof _URL;
132
136
  /**
133
137
  * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
134
138
  * https://nodejs.org/api/url.html#class-urlsearchparams
135
139
  * @since v10.0.0
136
140
  */
137
- var URLSearchParams: {
138
- prototype: URLSearchParams;
139
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
140
- toString(): string;
141
- };
141
+ var URLSearchParams:
142
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
143
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
144
+ ? URLSearchParams
145
+ : typeof _URLSearchParams;
142
146
  }
143
147
  }