@types/node 15.0.1 → 15.0.2
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/assert.d.ts +0 -5
- node/async_hooks.d.ts +0 -7
- node/buffer.d.ts +0 -4
- node/child_process.d.ts +4 -8
- node/cluster.d.ts +3 -7
- node/console.d.ts +1 -5
- node/constants.d.ts +3 -9
- node/crypto.d.ts +1 -5
- node/dgram.d.ts +3 -7
- node/dns/promises.d.ts +1 -5
- node/dns.d.ts +1 -5
- node/domain.d.ts +1 -5
- node/events.d.ts +0 -5
- node/fs/promises.d.ts +1 -5
- node/fs.d.ts +4 -8
- node/http.d.ts +3 -7
- node/http2.d.ts +8 -12
- node/https.d.ts +3 -7
- node/inspector.d.ts +1 -8
- node/module.d.ts +1 -6
- node/net.d.ts +3 -7
- node/os.d.ts +0 -4
- node/package.json +2 -2
- node/path.d.ts +0 -5
- node/perf_hooks.d.ts +1 -5
- node/process.d.ts +1 -5
- node/punycode.d.ts +0 -11
- node/querystring.d.ts +0 -4
- node/readline.d.ts +1 -5
- node/repl.d.ts +3 -7
- node/stream/promises.d.ts +0 -4
- node/stream.d.ts +2 -7
- node/string_decoder.d.ts +0 -4
- node/timers/promises.d.ts +1 -5
- node/timers.d.ts +0 -4
- node/tls.d.ts +1 -5
- node/trace_events.d.ts +0 -4
- node/ts3.6/assert.d.ts +0 -5
- node/tty.d.ts +1 -5
- node/url.d.ts +1 -5
- node/util.d.ts +0 -4
- node/v8.d.ts +1 -5
- node/vm.d.ts +0 -4
- node/wasi.d.ts +0 -4
- node/worker_threads.d.ts +5 -9
- node/zlib.d.ts +1 -5
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://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,
|
|
11
|
+
* Last updated: Tue, 04 May 2021 23:03:11 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/assert.d.ts
CHANGED
node/async_hooks.d.ts
CHANGED
node/buffer.d.ts
CHANGED
node/child_process.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
declare module 'node:child_process' {
|
|
2
|
-
export * from 'child_process';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'child_process' {
|
|
6
|
-
import { BaseEncodingOptions } from '
|
|
7
|
-
import * as events from '
|
|
8
|
-
import * as net from '
|
|
9
|
-
import { Writable, Readable, Stream, Pipe } from '
|
|
2
|
+
import { BaseEncodingOptions } from 'fs';
|
|
3
|
+
import * as events from 'events';
|
|
4
|
+
import * as net from 'net';
|
|
5
|
+
import { Writable, Readable, Stream, Pipe } from 'stream';
|
|
10
6
|
|
|
11
7
|
type Serializable = string | object | number | boolean;
|
|
12
8
|
type SendHandle = net.Socket | net.Server;
|
node/cluster.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:cluster' {
|
|
2
|
-
export * from 'cluster';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'cluster' {
|
|
6
|
-
import * as child from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as net from '
|
|
2
|
+
import * as child from 'child_process';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import * as net from 'net';
|
|
9
5
|
|
|
10
6
|
// interfaces
|
|
11
7
|
interface ClusterSettings {
|
node/console.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:console' {
|
|
2
|
-
export = console;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'console' {
|
|
6
|
-
import { InspectOptions } from '
|
|
2
|
+
import { InspectOptions } from 'util';
|
|
7
3
|
|
|
8
4
|
global {
|
|
9
5
|
// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
|
node/constants.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
2
|
-
declare module 'node:constants' {
|
|
3
|
-
import exp = require('constants');
|
|
4
|
-
export = exp;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
8
2
|
declare module 'constants' {
|
|
9
|
-
import { constants as osConstants, SignalConstants } from '
|
|
10
|
-
import { constants as cryptoConstants } from '
|
|
11
|
-
import { constants as fsConstants } from '
|
|
3
|
+
import { constants as osConstants, SignalConstants } from 'os';
|
|
4
|
+
import { constants as cryptoConstants } from 'crypto';
|
|
5
|
+
import { constants as fsConstants } from 'fs';
|
|
12
6
|
|
|
13
7
|
const exp: typeof osConstants.errno &
|
|
14
8
|
typeof osConstants.priority &
|
node/crypto.d.ts
CHANGED
node/dgram.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:dgram' {
|
|
2
|
-
export * from 'dgram';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'dgram' {
|
|
6
|
-
import { AddressInfo } from '
|
|
7
|
-
import * as dns from '
|
|
8
|
-
import EventEmitter = require('
|
|
2
|
+
import { AddressInfo } from 'net';
|
|
3
|
+
import * as dns from 'dns';
|
|
4
|
+
import EventEmitter = require('events');
|
|
9
5
|
|
|
10
6
|
interface RemoteInfo {
|
|
11
7
|
address: string;
|
node/dns/promises.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
declare module "node:dns/promises" {
|
|
2
|
-
export * from "dns/promises";
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module "dns/promises" {
|
|
6
2
|
import {
|
|
7
3
|
LookupAddress,
|
|
@@ -18,7 +14,7 @@ declare module "dns/promises" {
|
|
|
18
14
|
RecordWithTtl,
|
|
19
15
|
ResolveOptions,
|
|
20
16
|
ResolverOptions,
|
|
21
|
-
} from "
|
|
17
|
+
} from "dns";
|
|
22
18
|
|
|
23
19
|
function getServers(): string[];
|
|
24
20
|
|
node/dns.d.ts
CHANGED
node/domain.d.ts
CHANGED
node/events.d.ts
CHANGED
node/fs/promises.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
declare module 'fs/promises' {
|
|
2
|
-
export * from 'node:fs/promises';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'node:fs/promises' {
|
|
6
2
|
import {
|
|
7
3
|
Stats,
|
|
8
4
|
BigIntStats,
|
|
@@ -20,7 +16,7 @@ declare module 'node:fs/promises' {
|
|
|
20
16
|
BufferEncodingOption,
|
|
21
17
|
OpenMode,
|
|
22
18
|
Mode,
|
|
23
|
-
} from '
|
|
19
|
+
} from 'fs';
|
|
24
20
|
|
|
25
21
|
interface FileHandle {
|
|
26
22
|
/**
|
node/fs.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
declare module 'node:fs' {
|
|
2
|
-
export * from 'fs';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'fs' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import { URL } from '
|
|
9
|
-
import * as promises from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import { URL } from 'url';
|
|
5
|
+
import * as promises from 'fs/promises';
|
|
10
6
|
|
|
11
7
|
export { promises };
|
|
12
8
|
/**
|
node/http.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:http' {
|
|
2
|
-
export * from 'http';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'http' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import { URL } from '
|
|
8
|
-
import { Socket, Server as NetServer } from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import { URL } from 'url';
|
|
4
|
+
import { Socket, Server as NetServer } from 'net';
|
|
9
5
|
|
|
10
6
|
// incoming headers will never contain number
|
|
11
7
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
node/http2.d.ts
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
declare module 'node:http2' {
|
|
2
|
-
export * from 'http2';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'http2' {
|
|
6
|
-
import EventEmitter = require('
|
|
7
|
-
import * as fs from '
|
|
8
|
-
import * as net from '
|
|
9
|
-
import * as stream from '
|
|
10
|
-
import * as tls from '
|
|
11
|
-
import * as url from '
|
|
2
|
+
import EventEmitter = require('events');
|
|
3
|
+
import * as fs from 'fs';
|
|
4
|
+
import * as net from 'net';
|
|
5
|
+
import * as stream from 'stream';
|
|
6
|
+
import * as tls from 'tls';
|
|
7
|
+
import * as url from 'url';
|
|
12
8
|
|
|
13
9
|
import {
|
|
14
10
|
IncomingHttpHeaders as Http1IncomingHttpHeaders,
|
|
15
11
|
OutgoingHttpHeaders,
|
|
16
12
|
IncomingMessage,
|
|
17
13
|
ServerResponse,
|
|
18
|
-
} from '
|
|
19
|
-
export { OutgoingHttpHeaders } from '
|
|
14
|
+
} from 'http';
|
|
15
|
+
export { OutgoingHttpHeaders } from 'http';
|
|
20
16
|
|
|
21
17
|
export interface IncomingHttpStatusHeader {
|
|
22
18
|
":status"?: number;
|
node/https.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:https' {
|
|
2
|
-
export * from 'https';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'https' {
|
|
6
|
-
import * as tls from '
|
|
7
|
-
import * as http from '
|
|
8
|
-
import { URL } from '
|
|
2
|
+
import * as tls from 'tls';
|
|
3
|
+
import * as http from 'http';
|
|
4
|
+
import { URL } from 'url';
|
|
9
5
|
|
|
10
6
|
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
11
7
|
|
node/inspector.d.ts
CHANGED
|
@@ -7,18 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
// tslint:disable:max-line-length
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* The inspector module provides an API for interacting with the V8 inspector.
|
|
12
|
-
*/
|
|
13
|
-
declare module 'node:inspector' {
|
|
14
|
-
export * from 'inspector';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
10
|
/**
|
|
18
11
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
19
12
|
*/
|
|
20
13
|
declare module 'inspector' {
|
|
21
|
-
import EventEmitter = require('
|
|
14
|
+
import EventEmitter = require('events');
|
|
22
15
|
|
|
23
16
|
interface InspectorNotification<T> {
|
|
24
17
|
method: string;
|
node/module.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
declare module 'node:module' {
|
|
2
|
-
import Module = require('module');
|
|
3
|
-
export = Module;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
declare module 'module' {
|
|
7
|
-
import { URL } from '
|
|
2
|
+
import { URL } from 'url';
|
|
8
3
|
namespace Module {
|
|
9
4
|
/**
|
|
10
5
|
* Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
|
node/net.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:net' {
|
|
2
|
-
export * from 'net';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'net' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as dns from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import * as dns from 'dns';
|
|
9
5
|
|
|
10
6
|
type LookupFunction = (
|
|
11
7
|
hostname: string,
|
node/os.d.ts
CHANGED
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -226,6 +226,6 @@
|
|
|
226
226
|
},
|
|
227
227
|
"scripts": {},
|
|
228
228
|
"dependencies": {},
|
|
229
|
-
"typesPublisherContentHash": "
|
|
229
|
+
"typesPublisherContentHash": "b9f4badc74a3b8d0d3d6d7d094196c4851f8a80a2c34e8ba50f75d7de65c3c63",
|
|
230
230
|
"typeScriptVersion": "3.5"
|
|
231
231
|
}
|
node/path.d.ts
CHANGED
node/perf_hooks.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:perf_hooks' {
|
|
2
|
-
export * from 'perf_hooks';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'perf_hooks' {
|
|
6
|
-
import { AsyncResource } from '
|
|
2
|
+
import { AsyncResource } from 'async_hooks';
|
|
7
3
|
|
|
8
4
|
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
|
9
5
|
|
node/process.d.ts
CHANGED
node/punycode.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated since v7.0.0
|
|
3
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
4
|
-
* In a future major version of Node.js this module will be removed.
|
|
5
|
-
* Users currently depending on the punycode module should switch to using
|
|
6
|
-
* the userland-provided Punycode.js module instead.
|
|
7
|
-
*/
|
|
8
|
-
declare module 'node:punycode' {
|
|
9
|
-
export * from 'punycode';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
1
|
/**
|
|
13
2
|
* @deprecated since v7.0.0
|
|
14
3
|
* The version of the punycode module bundled in Node.js is being deprecated.
|
node/querystring.d.ts
CHANGED
node/readline.d.ts
CHANGED
node/repl.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:repl' {
|
|
2
|
-
export * from 'repl';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'repl' {
|
|
6
|
-
import { Interface, Completer, AsyncCompleter } from '
|
|
7
|
-
import { Context } from '
|
|
8
|
-
import { InspectOptions } from '
|
|
2
|
+
import { Interface, Completer, AsyncCompleter } from 'readline';
|
|
3
|
+
import { Context } from 'vm';
|
|
4
|
+
import { InspectOptions } from 'util';
|
|
9
5
|
|
|
10
6
|
interface ReplOptions {
|
|
11
7
|
/**
|
node/stream/promises.d.ts
CHANGED
node/stream.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
declare module 'node:stream' {
|
|
2
|
-
import Stream = require('stream');
|
|
3
|
-
export = Stream;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
declare module 'stream' {
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as streamPromises from "
|
|
2
|
+
import EventEmitter = require('events');
|
|
3
|
+
import * as streamPromises from "stream/promises";
|
|
9
4
|
|
|
10
5
|
class internal extends EventEmitter {
|
|
11
6
|
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
node/string_decoder.d.ts
CHANGED
node/timers/promises.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:timers/promises' {
|
|
2
|
-
export * from 'timers/promises';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'timers/promises' {
|
|
6
|
-
import { TimerOptions } from '
|
|
2
|
+
import { TimerOptions } from 'timers';
|
|
7
3
|
|
|
8
4
|
/**
|
|
9
5
|
* Returns a promise that resolves after the specified delay in milliseconds.
|
node/timers.d.ts
CHANGED
node/tls.d.ts
CHANGED
node/trace_events.d.ts
CHANGED
node/ts3.6/assert.d.ts
CHANGED
node/tty.d.ts
CHANGED
node/url.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:url' {
|
|
2
|
-
export * from 'url';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'url' {
|
|
6
|
-
import { ParsedUrlQuery, ParsedUrlQueryInput } from '
|
|
2
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
|
|
7
3
|
|
|
8
4
|
// Input to `url.format`
|
|
9
5
|
interface UrlObject {
|
node/util.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
declare module 'node:util' {
|
|
2
|
-
export * from 'util';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'util' {
|
|
6
2
|
interface InspectOptions extends NodeJS.InspectOptions { }
|
|
7
3
|
type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
|
node/v8.d.ts
CHANGED
node/vm.d.ts
CHANGED
node/wasi.d.ts
CHANGED
node/worker_threads.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
declare module 'node:worker_threads' {
|
|
2
|
-
export * from 'worker_threads';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'worker_threads' {
|
|
6
|
-
import { Context } from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import { Readable, Writable } from '
|
|
9
|
-
import { URL } from '
|
|
10
|
-
import { FileHandle } from '
|
|
2
|
+
import { Context } from 'vm';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import { Readable, Writable } from 'stream';
|
|
5
|
+
import { URL } from 'url';
|
|
6
|
+
import { FileHandle } from 'fs/promises';
|
|
11
7
|
|
|
12
8
|
const isMainThread: boolean;
|
|
13
9
|
const parentPort: null | MessagePort;
|