@types/node 16.18.40 → 16.18.41
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.18/README.md +1 -1
- node v16.18/package.json +2 -2
- node v16.18/perf_hooks.d.ts +15 -0
- node v16.18/ts4.8/perf_hooks.d.ts +15 -0
- node v16.18/ts4.8/util.d.ts +27 -0
- node v16.18/util.d.ts +27 -0
node v16.18/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: Thu, 17 Aug 2023 21:32:53 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.41",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "a11de98afa4176854897ac507d386ee52afc5b2db0b1789a76a96b095206765c",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
node v16.18/perf_hooks.d.ts
CHANGED
|
@@ -580,6 +580,21 @@ declare module 'perf_hooks' {
|
|
|
580
580
|
* @since v15.9.0
|
|
581
581
|
*/
|
|
582
582
|
function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
|
|
583
|
+
|
|
584
|
+
import { performance as _performance } from 'perf_hooks';
|
|
585
|
+
global {
|
|
586
|
+
/**
|
|
587
|
+
* `performance` is a global reference for `require('perf_hooks').performance`
|
|
588
|
+
* https://nodejs.org/api/globals.html#performance
|
|
589
|
+
* @since v16.0.0
|
|
590
|
+
*/
|
|
591
|
+
var performance: typeof globalThis extends {
|
|
592
|
+
onmessage: any;
|
|
593
|
+
performance: infer T;
|
|
594
|
+
}
|
|
595
|
+
? T
|
|
596
|
+
: typeof _performance;
|
|
597
|
+
}
|
|
583
598
|
}
|
|
584
599
|
declare module 'node:perf_hooks' {
|
|
585
600
|
export * from 'perf_hooks';
|
|
@@ -580,6 +580,21 @@ declare module 'perf_hooks' {
|
|
|
580
580
|
* @since v15.9.0
|
|
581
581
|
*/
|
|
582
582
|
function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
|
|
583
|
+
|
|
584
|
+
import { performance as _performance } from 'perf_hooks';
|
|
585
|
+
global {
|
|
586
|
+
/**
|
|
587
|
+
* `performance` is a global reference for `require('perf_hooks').performance`
|
|
588
|
+
* https://nodejs.org/api/globals.html#performance
|
|
589
|
+
* @since v16.0.0
|
|
590
|
+
*/
|
|
591
|
+
var performance: typeof globalThis extends {
|
|
592
|
+
onmessage: any;
|
|
593
|
+
performance: infer T;
|
|
594
|
+
}
|
|
595
|
+
? T
|
|
596
|
+
: typeof _performance;
|
|
597
|
+
}
|
|
583
598
|
}
|
|
584
599
|
declare module 'node:perf_hooks' {
|
|
585
600
|
export * from 'perf_hooks';
|
node v16.18/ts4.8/util.d.ts
CHANGED
|
@@ -1094,6 +1094,33 @@ declare module 'util' {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
|
|
1096
1096
|
}
|
|
1097
|
+
|
|
1098
|
+
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from 'util';
|
|
1099
|
+
global {
|
|
1100
|
+
/**
|
|
1101
|
+
* `TextDecoder` class is a global reference for `require('util').TextDecoder`
|
|
1102
|
+
* https://nodejs.org/api/globals.html#textdecoder
|
|
1103
|
+
* @since v11.0.0
|
|
1104
|
+
*/
|
|
1105
|
+
var TextDecoder: typeof globalThis extends {
|
|
1106
|
+
onmessage: any;
|
|
1107
|
+
TextDecoder: infer TextDecoder;
|
|
1108
|
+
}
|
|
1109
|
+
? TextDecoder
|
|
1110
|
+
: typeof _TextDecoder;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* `TextEncoder` class is a global reference for `require('util').TextEncoder`
|
|
1114
|
+
* https://nodejs.org/api/globals.html#textencoder
|
|
1115
|
+
* @since v11.0.0
|
|
1116
|
+
*/
|
|
1117
|
+
var TextEncoder: typeof globalThis extends {
|
|
1118
|
+
onmessage: any;
|
|
1119
|
+
TextEncoder: infer TextEncoder;
|
|
1120
|
+
}
|
|
1121
|
+
? TextEncoder
|
|
1122
|
+
: typeof _TextEncoder;
|
|
1123
|
+
}
|
|
1097
1124
|
}
|
|
1098
1125
|
declare module 'util/types' {
|
|
1099
1126
|
export * from 'util/types';
|
node v16.18/util.d.ts
CHANGED
|
@@ -1094,6 +1094,33 @@ declare module 'util' {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
|
|
1096
1096
|
}
|
|
1097
|
+
|
|
1098
|
+
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from 'util';
|
|
1099
|
+
global {
|
|
1100
|
+
/**
|
|
1101
|
+
* `TextDecoder` class is a global reference for `require('util').TextDecoder`
|
|
1102
|
+
* https://nodejs.org/api/globals.html#textdecoder
|
|
1103
|
+
* @since v11.0.0
|
|
1104
|
+
*/
|
|
1105
|
+
var TextDecoder: typeof globalThis extends {
|
|
1106
|
+
onmessage: any;
|
|
1107
|
+
TextDecoder: infer TextDecoder;
|
|
1108
|
+
}
|
|
1109
|
+
? TextDecoder
|
|
1110
|
+
: typeof _TextDecoder;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* `TextEncoder` class is a global reference for `require('util').TextEncoder`
|
|
1114
|
+
* https://nodejs.org/api/globals.html#textencoder
|
|
1115
|
+
* @since v11.0.0
|
|
1116
|
+
*/
|
|
1117
|
+
var TextEncoder: typeof globalThis extends {
|
|
1118
|
+
onmessage: any;
|
|
1119
|
+
TextEncoder: infer TextEncoder;
|
|
1120
|
+
}
|
|
1121
|
+
? TextEncoder
|
|
1122
|
+
: typeof _TextEncoder;
|
|
1123
|
+
}
|
|
1097
1124
|
}
|
|
1098
1125
|
declare module 'util/types' {
|
|
1099
1126
|
export * from 'util/types';
|