@types/node 20.14.15 → 20.16.0
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 v20.14 → node v20.16}/README.md +1 -1
- {node v20.14 → node v20.16}/buffer.d.ts +12 -0
- {node v20.14 → node v20.16}/package.json +3 -3
- {node v20.14 → node v20.16}/process.d.ts +123 -2
- {node v20.14 → node v20.16}/test.d.ts +125 -0
- {node v20.14 → node v20.16}/util.d.ts +6 -0
- {node v20.14 → node v20.16}/zlib.d.ts +9 -0
- {node v20.14 → node v20.16}/LICENSE +0 -0
- {node v20.14 → node v20.16}/assert/strict.d.ts +0 -0
- {node v20.14 → node v20.16}/assert.d.ts +0 -0
- {node v20.14 → node v20.16}/async_hooks.d.ts +0 -0
- {node v20.14 → node v20.16}/child_process.d.ts +0 -0
- {node v20.14 → node v20.16}/cluster.d.ts +0 -0
- {node v20.14 → node v20.16}/console.d.ts +0 -0
- {node v20.14 → node v20.16}/constants.d.ts +0 -0
- {node v20.14 → node v20.16}/crypto.d.ts +0 -0
- {node v20.14 → node v20.16}/dgram.d.ts +0 -0
- {node v20.14 → node v20.16}/diagnostics_channel.d.ts +0 -0
- {node v20.14 → node v20.16}/dns/promises.d.ts +0 -0
- {node v20.14 → node v20.16}/dns.d.ts +0 -0
- {node v20.14 → node v20.16}/dom-events.d.ts +0 -0
- {node v20.14 → node v20.16}/domain.d.ts +0 -0
- {node v20.14 → node v20.16}/events.d.ts +0 -0
- {node v20.14 → node v20.16}/fs/promises.d.ts +0 -0
- {node v20.14 → node v20.16}/fs.d.ts +0 -0
- {node v20.14 → node v20.16}/globals.d.ts +0 -0
- {node v20.14 → node v20.16}/globals.global.d.ts +0 -0
- {node v20.14 → node v20.16}/http.d.ts +0 -0
- {node v20.14 → node v20.16}/http2.d.ts +0 -0
- {node v20.14 → node v20.16}/https.d.ts +0 -0
- {node v20.14 → node v20.16}/index.d.ts +0 -0
- {node v20.14 → node v20.16}/inspector.d.ts +0 -0
- {node v20.14 → node v20.16}/module.d.ts +0 -0
- {node v20.14 → node v20.16}/net.d.ts +0 -0
- {node v20.14 → node v20.16}/os.d.ts +0 -0
- {node v20.14 → node v20.16}/path.d.ts +0 -0
- {node v20.14 → node v20.16}/perf_hooks.d.ts +0 -0
- {node v20.14 → node v20.16}/punycode.d.ts +0 -0
- {node v20.14 → node v20.16}/querystring.d.ts +0 -0
- {node v20.14 → node v20.16}/readline/promises.d.ts +0 -0
- {node v20.14 → node v20.16}/readline.d.ts +0 -0
- {node v20.14 → node v20.16}/repl.d.ts +0 -0
- {node v20.14 → node v20.16}/sea.d.ts +0 -0
- {node v20.14 → node v20.16}/stream/consumers.d.ts +0 -0
- {node v20.14 → node v20.16}/stream/promises.d.ts +0 -0
- {node v20.14 → node v20.16}/stream/web.d.ts +0 -0
- {node v20.14 → node v20.16}/stream.d.ts +0 -0
- {node v20.14 → node v20.16}/string_decoder.d.ts +0 -0
- {node v20.14 → node v20.16}/timers/promises.d.ts +0 -0
- {node v20.14 → node v20.16}/timers.d.ts +0 -0
- {node v20.14 → node v20.16}/tls.d.ts +0 -0
- {node v20.14 → node v20.16}/trace_events.d.ts +0 -0
- {node v20.14 → node v20.16}/tty.d.ts +0 -0
- {node v20.14 → node v20.16}/url.d.ts +0 -0
- {node v20.14 → node v20.16}/v8.d.ts +0 -0
- {node v20.14 → node v20.16}/vm.d.ts +0 -0
- {node v20.14 → node v20.16}/wasi.d.ts +0 -0
- {node v20.14 → node v20.16}/worker_threads.d.ts +0 -0
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Sun, 18 Aug 2024 09:07:58 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
@@ -170,6 +170,18 @@ declare module "buffer" {
|
|
170
170
|
* @since v15.7.0, v14.18.0
|
171
171
|
*/
|
172
172
|
arrayBuffer(): Promise<ArrayBuffer>;
|
173
|
+
/**
|
174
|
+
* The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.
|
175
|
+
*
|
176
|
+
* ```js
|
177
|
+
* const blob = new Blob(['hello']);
|
178
|
+
* blob.bytes().then((bytes) => {
|
179
|
+
* console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
|
180
|
+
* });
|
181
|
+
* ```
|
182
|
+
* @since v20.16.0
|
183
|
+
*/
|
184
|
+
bytes(): Promise<Uint8Array>;
|
173
185
|
/**
|
174
186
|
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
|
175
187
|
* data. The original `Blob` is not altered.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.16.0",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -210,8 +210,8 @@
|
|
210
210
|
},
|
211
211
|
"scripts": {},
|
212
212
|
"dependencies": {
|
213
|
-
"undici-types": "~
|
213
|
+
"undici-types": "~6.19.2"
|
214
214
|
},
|
215
|
-
"typesPublisherContentHash": "
|
215
|
+
"typesPublisherContentHash": "ec5293eb52c87d6b8fbd3eaa5df2b64ce6e26111fc4e85e9eea24132add60f9e",
|
216
216
|
"typeScriptVersion": "4.8"
|
217
217
|
}
|
@@ -1,8 +1,122 @@
|
|
1
1
|
declare module "process" {
|
2
|
-
import * as net from "node:net";
|
3
|
-
import * as os from "node:os";
|
4
2
|
import * as tty from "node:tty";
|
5
3
|
import { Worker } from "node:worker_threads";
|
4
|
+
|
5
|
+
interface BuiltInModule {
|
6
|
+
"assert": typeof import("assert");
|
7
|
+
"node:assert": typeof import("node:assert");
|
8
|
+
"assert/strict": typeof import("assert/strict");
|
9
|
+
"node:assert/strict": typeof import("node:assert/strict");
|
10
|
+
"async_hooks": typeof import("async_hooks");
|
11
|
+
"node:async_hooks": typeof import("node:async_hooks");
|
12
|
+
"buffer": typeof import("buffer");
|
13
|
+
"node:buffer": typeof import("node:buffer");
|
14
|
+
"child_process": typeof import("child_process");
|
15
|
+
"node:child_process": typeof import("node:child_process");
|
16
|
+
"cluster": typeof import("cluster");
|
17
|
+
"node:cluster": typeof import("node:cluster");
|
18
|
+
"console": typeof import("console");
|
19
|
+
"node:console": typeof import("node:console");
|
20
|
+
"constants": typeof import("constants");
|
21
|
+
"node:constants": typeof import("node:constants");
|
22
|
+
"crypto": typeof import("crypto");
|
23
|
+
"node:crypto": typeof import("node:crypto");
|
24
|
+
"dgram": typeof import("dgram");
|
25
|
+
"node:dgram": typeof import("node:dgram");
|
26
|
+
"diagnostics_channel": typeof import("diagnostics_channel");
|
27
|
+
"node:diagnostics_channel": typeof import("node:diagnostics_channel");
|
28
|
+
"dns": typeof import("dns");
|
29
|
+
"node:dns": typeof import("node:dns");
|
30
|
+
"dns/promises": typeof import("dns/promises");
|
31
|
+
"node:dns/promises": typeof import("node:dns/promises");
|
32
|
+
"domain": typeof import("domain");
|
33
|
+
"node:domain": typeof import("node:domain");
|
34
|
+
"events": typeof import("events");
|
35
|
+
"node:events": typeof import("node:events");
|
36
|
+
"fs": typeof import("fs");
|
37
|
+
"node:fs": typeof import("node:fs");
|
38
|
+
"fs/promises": typeof import("fs/promises");
|
39
|
+
"node:fs/promises": typeof import("node:fs/promises");
|
40
|
+
"http": typeof import("http");
|
41
|
+
"node:http": typeof import("node:http");
|
42
|
+
"http2": typeof import("http2");
|
43
|
+
"node:http2": typeof import("node:http2");
|
44
|
+
"https": typeof import("https");
|
45
|
+
"node:https": typeof import("node:https");
|
46
|
+
"inspector": typeof import("inspector");
|
47
|
+
"node:inspector": typeof import("node:inspector");
|
48
|
+
// FIXME: module is missed
|
49
|
+
// "inspector/promises": typeof import("inspector/promises");
|
50
|
+
// "node:inspector/promises": typeof import("node:inspector/promises");
|
51
|
+
"module": typeof import("module");
|
52
|
+
"node:module": typeof import("node:module");
|
53
|
+
"net": typeof import("net");
|
54
|
+
"node:net": typeof import("node:net");
|
55
|
+
"os": typeof import("os");
|
56
|
+
"node:os": typeof import("node:os");
|
57
|
+
"path": typeof import("path");
|
58
|
+
"node:path": typeof import("node:path");
|
59
|
+
"path/posix": typeof import("path/posix");
|
60
|
+
"node:path/posix": typeof import("node:path/posix");
|
61
|
+
"path/win32": typeof import("path/win32");
|
62
|
+
"node:path/win32": typeof import("node:path/win32");
|
63
|
+
"perf_hooks": typeof import("perf_hooks");
|
64
|
+
"node:perf_hooks": typeof import("node:perf_hooks");
|
65
|
+
"process": typeof import("process");
|
66
|
+
"node:process": typeof import("node:process");
|
67
|
+
"punycode": typeof import("punycode");
|
68
|
+
"node:punycode": typeof import("node:punycode");
|
69
|
+
"querystring": typeof import("querystring");
|
70
|
+
"node:querystring": typeof import("node:querystring");
|
71
|
+
"readline": typeof import("readline");
|
72
|
+
"node:readline": typeof import("node:readline");
|
73
|
+
"readline/promises": typeof import("readline/promises");
|
74
|
+
"node:readline/promises": typeof import("node:readline/promises");
|
75
|
+
"repl": typeof import("repl");
|
76
|
+
"node:repl": typeof import("node:repl");
|
77
|
+
"node:sea": typeof import("node:sea");
|
78
|
+
"stream": typeof import("stream");
|
79
|
+
"node:stream": typeof import("node:stream");
|
80
|
+
"stream/consumers": typeof import("stream/consumers");
|
81
|
+
"node:stream/consumers": typeof import("node:stream/consumers");
|
82
|
+
"stream/promises": typeof import("stream/promises");
|
83
|
+
"node:stream/promises": typeof import("node:stream/promises");
|
84
|
+
"stream/web": typeof import("stream/web");
|
85
|
+
"node:stream/web": typeof import("node:stream/web");
|
86
|
+
"string_decoder": typeof import("string_decoder");
|
87
|
+
"node:string_decoder": typeof import("node:string_decoder");
|
88
|
+
"node:test": typeof import("node:test");
|
89
|
+
"node:test/reporters": typeof import("node:test/reporters");
|
90
|
+
"timers": typeof import("timers");
|
91
|
+
"node:timers": typeof import("node:timers");
|
92
|
+
"timers/promises": typeof import("timers/promises");
|
93
|
+
"node:timers/promises": typeof import("node:timers/promises");
|
94
|
+
"tls": typeof import("tls");
|
95
|
+
"node:tls": typeof import("node:tls");
|
96
|
+
"trace_events": typeof import("trace_events");
|
97
|
+
"node:trace_events": typeof import("node:trace_events");
|
98
|
+
"tty": typeof import("tty");
|
99
|
+
"node:tty": typeof import("node:tty");
|
100
|
+
"url": typeof import("url");
|
101
|
+
"node:url": typeof import("node:url");
|
102
|
+
"util": typeof import("util");
|
103
|
+
"node:util": typeof import("node:util");
|
104
|
+
"sys": typeof import("util");
|
105
|
+
"node:sys": typeof import("node:util");
|
106
|
+
"util/types": typeof import("util/types");
|
107
|
+
"node:util/types": typeof import("node:util/types");
|
108
|
+
"v8": typeof import("v8");
|
109
|
+
"node:v8": typeof import("node:v8");
|
110
|
+
"vm": typeof import("vm");
|
111
|
+
"node:vm": typeof import("node:vm");
|
112
|
+
"wasi": typeof import("wasi");
|
113
|
+
"node:wasi": typeof import("node:wasi");
|
114
|
+
"worker_threads": typeof import("worker_threads");
|
115
|
+
"node:worker_threads": typeof import("node:worker_threads");
|
116
|
+
"zlib": typeof import("zlib");
|
117
|
+
"node:zlib": typeof import("node:zlib");
|
118
|
+
}
|
119
|
+
|
6
120
|
global {
|
7
121
|
var process: NodeJS.Process;
|
8
122
|
namespace NodeJS {
|
@@ -793,6 +907,13 @@ declare module "process" {
|
|
793
907
|
* @since v17.3.0, v16.14.0
|
794
908
|
*/
|
795
909
|
getActiveResourcesInfo(): string[];
|
910
|
+
/**
|
911
|
+
* Provides a way to load built-in modules in a globally available function.
|
912
|
+
* @param id ID of the built-in module being requested.
|
913
|
+
* @since v20.16.0
|
914
|
+
*/
|
915
|
+
getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID];
|
916
|
+
getBuiltinModule(id: string): object | undefined;
|
796
917
|
/**
|
797
918
|
* The `process.getgid()` method returns the numerical group identity of the
|
798
919
|
* process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
|
@@ -452,6 +452,12 @@ declare module "node:test" {
|
|
452
452
|
* @since v18.0.0, v16.17.0
|
453
453
|
*/
|
454
454
|
class TestContext {
|
455
|
+
/**
|
456
|
+
* An object containing assertion methods bound to the test context.
|
457
|
+
* The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
|
458
|
+
* @since v20.15.0
|
459
|
+
*/
|
460
|
+
readonly assert: TestContextAssert;
|
455
461
|
/**
|
456
462
|
* This function is used to create a hook running before subtest of the current test.
|
457
463
|
* @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
|
@@ -494,11 +500,52 @@ declare module "node:test" {
|
|
494
500
|
* @param message Message to be reported.
|
495
501
|
*/
|
496
502
|
diagnostic(message: string): void;
|
503
|
+
/**
|
504
|
+
* The name of the test and each of its ancestors, separated by `>`.
|
505
|
+
* @since v20.16.0
|
506
|
+
*/
|
507
|
+
readonly fullName: string;
|
497
508
|
/**
|
498
509
|
* The name of the test.
|
499
510
|
* @since v18.8.0, v16.18.0
|
500
511
|
*/
|
501
512
|
readonly name: string;
|
513
|
+
/**
|
514
|
+
* Used to set the number of assertions and subtests that are expected to run within the test.
|
515
|
+
* If the number of assertions and subtests that run does not match the expected count, the test will fail.
|
516
|
+
*
|
517
|
+
* To make sure assertions are tracked, the assert functions on `context.assert` must be used,
|
518
|
+
* instead of importing from the `node:assert` module.
|
519
|
+
* ```js
|
520
|
+
* test('top level test', (t) => {
|
521
|
+
* t.plan(2);
|
522
|
+
* t.assert.ok('some relevant assertion here');
|
523
|
+
* t.test('subtest', () => {});
|
524
|
+
* });
|
525
|
+
* ```
|
526
|
+
*
|
527
|
+
* When working with asynchronous code, the `plan` function can be used to ensure that the correct number of assertions are run:
|
528
|
+
* ```js
|
529
|
+
* test('planning with streams', (t, done) => {
|
530
|
+
* function* generate() {
|
531
|
+
* yield 'a';
|
532
|
+
* yield 'b';
|
533
|
+
* yield 'c';
|
534
|
+
* }
|
535
|
+
* const expected = ['a', 'b', 'c'];
|
536
|
+
* t.plan(expected.length);
|
537
|
+
* const stream = Readable.from(generate());
|
538
|
+
* stream.on('data', (chunk) => {
|
539
|
+
* t.assert.strictEqual(chunk, expected.shift());
|
540
|
+
* });
|
541
|
+
* stream.on('end', () => {
|
542
|
+
* done();
|
543
|
+
* });
|
544
|
+
* });
|
545
|
+
* ```
|
546
|
+
* @since v20.15.0
|
547
|
+
*/
|
548
|
+
plan(count: number): void;
|
502
549
|
/**
|
503
550
|
* If `shouldRunOnlyTests` is truthy, the test context will only run tests that
|
504
551
|
* have the `only` option set. Otherwise, all tests are run. If Node.js was not
|
@@ -575,6 +622,76 @@ declare module "node:test" {
|
|
575
622
|
*/
|
576
623
|
readonly mock: MockTracker;
|
577
624
|
}
|
625
|
+
interface TestContextAssert {
|
626
|
+
/**
|
627
|
+
* Identical to the `deepEqual` function from the `node:assert` module, but bound to the test context.
|
628
|
+
*/
|
629
|
+
deepEqual: typeof import("node:assert").deepEqual;
|
630
|
+
/**
|
631
|
+
* Identical to the `deepStrictEqual` function from the `node:assert` module, but bound to the test context.
|
632
|
+
*/
|
633
|
+
deepStrictEqual: typeof import("node:assert").deepStrictEqual;
|
634
|
+
/**
|
635
|
+
* Identical to the `doesNotMatch` function from the `node:assert` module, but bound to the test context.
|
636
|
+
*/
|
637
|
+
doesNotMatch: typeof import("node:assert").doesNotMatch;
|
638
|
+
/**
|
639
|
+
* Identical to the `doesNotReject` function from the `node:assert` module, but bound to the test context.
|
640
|
+
*/
|
641
|
+
doesNotReject: typeof import("node:assert").doesNotReject;
|
642
|
+
/**
|
643
|
+
* Identical to the `doesNotThrow` function from the `node:assert` module, but bound to the test context.
|
644
|
+
*/
|
645
|
+
doesNotThrow: typeof import("node:assert").doesNotThrow;
|
646
|
+
/**
|
647
|
+
* Identical to the `equal` function from the `node:assert` module, but bound to the test context.
|
648
|
+
*/
|
649
|
+
equal: typeof import("node:assert").equal;
|
650
|
+
/**
|
651
|
+
* Identical to the `fail` function from the `node:assert` module, but bound to the test context.
|
652
|
+
*/
|
653
|
+
fail: typeof import("node:assert").fail;
|
654
|
+
/**
|
655
|
+
* Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
|
656
|
+
*/
|
657
|
+
ifError: typeof import("node:assert").ifError;
|
658
|
+
/**
|
659
|
+
* Identical to the `match` function from the `node:assert` module, but bound to the test context.
|
660
|
+
*/
|
661
|
+
match: typeof import("node:assert").match;
|
662
|
+
/**
|
663
|
+
* Identical to the `notDeepEqual` function from the `node:assert` module, but bound to the test context.
|
664
|
+
*/
|
665
|
+
notDeepEqual: typeof import("node:assert").notDeepEqual;
|
666
|
+
/**
|
667
|
+
* Identical to the `notDeepStrictEqual` function from the `node:assert` module, but bound to the test context.
|
668
|
+
*/
|
669
|
+
notDeepStrictEqual: typeof import("node:assert").notDeepStrictEqual;
|
670
|
+
/**
|
671
|
+
* Identical to the `notEqual` function from the `node:assert` module, but bound to the test context.
|
672
|
+
*/
|
673
|
+
notEqual: typeof import("node:assert").notEqual;
|
674
|
+
/**
|
675
|
+
* Identical to the `notStrictEqual` function from the `node:assert` module, but bound to the test context.
|
676
|
+
*/
|
677
|
+
notStrictEqual: typeof import("node:assert").notStrictEqual;
|
678
|
+
/**
|
679
|
+
* Identical to the `ok` function from the `node:assert` module, but bound to the test context.
|
680
|
+
*/
|
681
|
+
ok: typeof import("node:assert").ok;
|
682
|
+
/**
|
683
|
+
* Identical to the `rejects` function from the `node:assert` module, but bound to the test context.
|
684
|
+
*/
|
685
|
+
rejects: typeof import("node:assert").rejects;
|
686
|
+
/**
|
687
|
+
* Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
|
688
|
+
*/
|
689
|
+
strictEqual: typeof import("node:assert").strictEqual;
|
690
|
+
/**
|
691
|
+
* Identical to the `throws` function from the `node:assert` module, but bound to the test context.
|
692
|
+
*/
|
693
|
+
throws: typeof import("node:assert").throws;
|
694
|
+
}
|
578
695
|
|
579
696
|
/**
|
580
697
|
* An instance of `SuiteContext` is passed to each suite function in order to
|
@@ -634,6 +751,14 @@ declare module "node:test" {
|
|
634
751
|
* @default false
|
635
752
|
*/
|
636
753
|
todo?: boolean | string | undefined;
|
754
|
+
/**
|
755
|
+
* The number of assertions and subtests expected to be run in the test.
|
756
|
+
* If the number of assertions run in the test does not match the number
|
757
|
+
* specified in the plan, the test will fail.
|
758
|
+
* @default undefined
|
759
|
+
* @since v20.15.0
|
760
|
+
*/
|
761
|
+
plan?: number | undefined;
|
637
762
|
}
|
638
763
|
/**
|
639
764
|
* This function creates a hook that runs before executing a suite.
|
@@ -1480,6 +1480,12 @@ declare module "util" {
|
|
1480
1480
|
* Whether this command accepts positional arguments.
|
1481
1481
|
*/
|
1482
1482
|
allowPositionals?: boolean | undefined;
|
1483
|
+
/**
|
1484
|
+
* If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`.
|
1485
|
+
* @default false
|
1486
|
+
* @since v20.16.0
|
1487
|
+
*/
|
1488
|
+
allowNegative?: boolean | undefined;
|
1483
1489
|
/**
|
1484
1490
|
* Return the parsed tokens. This is useful for extending the built-in behavior,
|
1485
1491
|
* from adding additional checks through to reprocessing the tokens in different ways.
|
@@ -172,6 +172,15 @@ declare module "zlib" {
|
|
172
172
|
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
173
173
|
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
|
174
174
|
interface Unzip extends stream.Transform, Zlib {}
|
175
|
+
/**
|
176
|
+
* Computes a 32-bit [Cyclic Redundancy Check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of `data`.
|
177
|
+
* If `value` is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
|
178
|
+
* @param data When `data` is a string, it will be encoded as UTF-8 before being used for computation.
|
179
|
+
* @param value An optional starting value. It must be a 32-bit unsigned integer. @default 0
|
180
|
+
* @returns A 32-bit unsigned integer containing the checksum.
|
181
|
+
* @since v20.15.0
|
182
|
+
*/
|
183
|
+
function crc32(data: string | Buffer | NodeJS.ArrayBufferView, value?: number): number;
|
175
184
|
/**
|
176
185
|
* Creates and returns a new `BrotliCompress` object.
|
177
186
|
* @since v11.7.0, v10.16.0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|