@types/node 24.6.2 → 24.7.1
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 +515 -139
- node/fs.d.ts +4 -0
- node/globals.d.ts +2 -0
- node/http.d.ts +11 -1
- node/http2.d.ts +1 -1
- node/index.d.ts +2 -0
- node/inspector.d.ts +24 -0
- node/inspector.generated.d.ts +181 -0
- node/package.json +3 -3
- node/sqlite.d.ts +6 -4
- node/stream/web.d.ts +6 -55
- node/test.d.ts +29 -3
- node/ts5.6/index.d.ts +2 -0
- node/ts5.7/index.d.ts +2 -0
- node/web-globals/crypto.d.ts +32 -0
- node/web-globals/streams.d.ts +22 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as webstreams from "stream/web";
|
|
4
|
+
|
|
5
|
+
type _CompressionStream = typeof globalThis extends { onmessage: any } ? {} : webstreams.CompressionStream;
|
|
6
|
+
type _DecompressionStream = typeof globalThis extends { onmessage: any } ? {} : webstreams.DecompressionStream;
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
interface CompressionStream extends _CompressionStream {}
|
|
10
|
+
var CompressionStream: typeof globalThis extends {
|
|
11
|
+
onmessage: any;
|
|
12
|
+
CompressionStream: infer T;
|
|
13
|
+
} ? T
|
|
14
|
+
: typeof webstreams.CompressionStream;
|
|
15
|
+
|
|
16
|
+
interface DecompressionStream extends _DecompressionStream {}
|
|
17
|
+
var DecompressionStream: typeof globalThis extends {
|
|
18
|
+
onmessage: any;
|
|
19
|
+
DecompressionStream: infer T;
|
|
20
|
+
} ? T
|
|
21
|
+
: typeof webstreams.DecompressionStream;
|
|
22
|
+
}
|