@types/node 12.11.3 → 12.11.7
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/crypto.d.ts +2 -0
- node/fs.d.ts +1 -1
- node/globals.d.ts +6 -1
- node/package.json +2 -2
- node/querystring.d.ts +1 -4
- node/tty.d.ts +2 -1
- node/util.d.ts +14 -12
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:
|
|
11
|
+
* Last updated: Thu, 24 Oct 2019 17:31:23 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
node/crypto.d.ts
CHANGED
|
@@ -398,6 +398,8 @@ declare module "crypto" {
|
|
|
398
398
|
}
|
|
399
399
|
function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
|
400
400
|
function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
|
401
|
+
function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
|
402
|
+
function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
|
401
403
|
function getCiphers(): string[];
|
|
402
404
|
function getCurves(): string[];
|
|
403
405
|
function getHashes(): string[];
|
node/fs.d.ts
CHANGED
|
@@ -2124,7 +2124,7 @@ declare module "fs" {
|
|
|
2124
2124
|
* Asynchronous rmdir(2) - delete a directory.
|
|
2125
2125
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2126
2126
|
*/
|
|
2127
|
-
function rmdir(path: PathLike): Promise<void>;
|
|
2127
|
+
function rmdir(path: PathLike, options?: RmDirAsyncOptions): Promise<void>;
|
|
2128
2128
|
|
|
2129
2129
|
/**
|
|
2130
2130
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
node/globals.d.ts
CHANGED
|
@@ -701,7 +701,8 @@ declare namespace NodeJS {
|
|
|
701
701
|
| 'openbsd'
|
|
702
702
|
| 'sunos'
|
|
703
703
|
| 'win32'
|
|
704
|
-
| 'cygwin'
|
|
704
|
+
| 'cygwin'
|
|
705
|
+
| 'netbsd';
|
|
705
706
|
|
|
706
707
|
type Signals =
|
|
707
708
|
"SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" |
|
|
@@ -1153,4 +1154,8 @@ declare namespace NodeJS {
|
|
|
1153
1154
|
|
|
1154
1155
|
type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
|
|
1155
1156
|
type ArrayBufferView = TypedArray | DataView;
|
|
1157
|
+
|
|
1158
|
+
// The value type here is a "poor man's `unknown`". When these types support TypeScript
|
|
1159
|
+
// 3.0+, we can replace this with `unknown`.
|
|
1160
|
+
type PoorMansUnknown = {} | null | undefined;
|
|
1156
1161
|
}
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.11.
|
|
3
|
+
"version": "12.11.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -211,6 +211,6 @@
|
|
|
211
211
|
},
|
|
212
212
|
"scripts": {},
|
|
213
213
|
"dependencies": {},
|
|
214
|
-
"typesPublisherContentHash": "
|
|
214
|
+
"typesPublisherContentHash": "5350651f60ae87ecc962833dc4081a45275968603a64cdacfb1cc9efaebb2e36",
|
|
215
215
|
"typeScriptVersion": "2.0"
|
|
216
216
|
}
|
node/querystring.d.ts
CHANGED
|
@@ -11,10 +11,7 @@ declare module "querystring" {
|
|
|
11
11
|
interface ParsedUrlQuery { [key: string]: string | string[]; }
|
|
12
12
|
|
|
13
13
|
interface ParsedUrlQueryInput {
|
|
14
|
-
[key: string]:
|
|
15
|
-
// The value type here is a "poor man's `unknown`". When these types support TypeScript
|
|
16
|
-
// 3.0+, we can replace this with `unknown`.
|
|
17
|
-
{} | null | undefined;
|
|
14
|
+
[key: string]: NodeJS.PoorMansUnknown;
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
|
node/tty.d.ts
CHANGED
|
@@ -45,7 +45,8 @@ declare module "tty" {
|
|
|
45
45
|
/**
|
|
46
46
|
* Moves this WriteStream's cursor to the specified position.
|
|
47
47
|
*/
|
|
48
|
-
cursorTo(x: number, y
|
|
48
|
+
cursorTo(x: number, y?: number, callback?: () => void): boolean;
|
|
49
|
+
cursorTo(x: number, callback: () => void): boolean;
|
|
49
50
|
/**
|
|
50
51
|
* Moves this WriteStream's cursor relative to its current position.
|
|
51
52
|
*/
|
node/util.d.ts
CHANGED
|
@@ -84,23 +84,25 @@ declare module "util" {
|
|
|
84
84
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
85
85
|
|
|
86
86
|
function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
87
|
-
function promisify<TResult>(fn: (callback: (err:
|
|
88
|
-
function promisify(fn: (callback: (err?:
|
|
89
|
-
function promisify<T1, TResult>(fn: (arg1: T1, callback: (err:
|
|
90
|
-
function promisify<T1>(fn: (arg1: T1, callback: (err?:
|
|
91
|
-
function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err:
|
|
92
|
-
function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?:
|
|
93
|
-
function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err:
|
|
94
|
-
|
|
87
|
+
function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
|
|
88
|
+
function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
|
89
|
+
function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
|
|
90
|
+
function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
|
|
91
|
+
function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
92
|
+
function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
|
|
93
|
+
function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void):
|
|
94
|
+
(arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
95
|
+
function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
95
96
|
function promisify<T1, T2, T3, T4, TResult>(
|
|
96
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err:
|
|
97
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
|
|
97
98
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
98
|
-
function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?:
|
|
99
|
+
function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void):
|
|
100
|
+
(arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
99
101
|
function promisify<T1, T2, T3, T4, T5, TResult>(
|
|
100
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err:
|
|
102
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
|
|
101
103
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
102
104
|
function promisify<T1, T2, T3, T4, T5>(
|
|
103
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?:
|
|
105
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
|
104
106
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
105
107
|
function promisify(fn: Function): Function;
|
|
106
108
|
|