@tsonic/nodejs 10.0.11 → 10.0.13
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.
- package/README.md +58 -18
- package/index/internal/index.d.ts +125 -125
- package/nodejs.Http/internal/index.d.ts +12 -12
- package/package.json +3 -3
- package/tsonic.bindings.json +10 -0
package/README.md
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
# @tsonic/nodejs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Node-style APIs for **Tsonic** (TypeScript → .NET).
|
|
4
|
+
|
|
5
|
+
Use `@tsonic/nodejs` when you want Node-like modules (`fs`, `path`, `events`, `crypto`, `process`, `http`, …) while still compiling to a native binary with `tsonic`.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
### New project
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
mkdir my-app && cd my-app
|
|
13
|
+
tsonic init
|
|
14
|
+
tsonic add npm @tsonic/nodejs
|
|
15
|
+
npm run dev
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Existing project
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
tsonic add npm @tsonic/nodejs
|
|
22
|
+
```
|
|
4
23
|
|
|
5
24
|
## Versioning
|
|
6
25
|
|
|
@@ -10,18 +29,10 @@ This repo is versioned by **.NET major**:
|
|
|
10
29
|
|
|
11
30
|
When publishing, run: `npm publish versions/10 --access public`
|
|
12
31
|
|
|
13
|
-
##
|
|
32
|
+
## Core Modules (what you get)
|
|
14
33
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- **Primitive aliases** - `int`, `long`, `decimal`, etc. via `@tsonic/core`
|
|
18
|
-
- **Full type safety** - Complete TypeScript declarations
|
|
19
|
-
|
|
20
|
-
## Installation
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install @tsonic/nodejs @tsonic/dotnet @tsonic/core
|
|
24
|
-
```
|
|
34
|
+
- `fs`, `path`, `events`, `crypto`, `process`
|
|
35
|
+
- `http` (separate module entrypoint)
|
|
25
36
|
|
|
26
37
|
## Usage
|
|
27
38
|
|
|
@@ -50,30 +61,59 @@ const dir = path.dirname(fullPath);
|
|
|
50
61
|
### Events
|
|
51
62
|
|
|
52
63
|
```typescript
|
|
53
|
-
import { EventEmitter } from "@tsonic/nodejs/index.js";
|
|
64
|
+
import { EventEmitter, console } from "@tsonic/nodejs/index.js";
|
|
54
65
|
|
|
55
66
|
class MyEmitter extends EventEmitter {}
|
|
56
67
|
const emitter = new MyEmitter();
|
|
57
68
|
emitter.on("data", (chunk) => console.log(chunk));
|
|
58
69
|
```
|
|
59
70
|
|
|
71
|
+
### Crypto
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
import { crypto } from "@tsonic/nodejs/index.js";
|
|
75
|
+
|
|
76
|
+
const hash = crypto.createHash("sha256").update("hello").digest("hex");
|
|
77
|
+
void hash;
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Process
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import { process } from "@tsonic/nodejs/index.js";
|
|
84
|
+
|
|
85
|
+
const cwd = process.cwd();
|
|
86
|
+
void cwd;
|
|
87
|
+
```
|
|
88
|
+
|
|
60
89
|
### HTTP
|
|
61
90
|
|
|
62
91
|
```typescript
|
|
63
92
|
import { http } from "@tsonic/nodejs/nodejs.Http.js";
|
|
64
93
|
```
|
|
65
94
|
|
|
95
|
+
## Imports (important)
|
|
96
|
+
|
|
97
|
+
This is an ESM package. Import from the explicit entrypoints:
|
|
98
|
+
|
|
99
|
+
- `@tsonic/nodejs/index.js` for most Node-style APIs (`fs`, `path`, `crypto`, `process`, …)
|
|
100
|
+
- submodules like `@tsonic/nodejs/nodejs.Http.js` for separately emitted namespaces
|
|
101
|
+
|
|
102
|
+
Node’s built-in specifiers like `node:fs` are **not** supported here.
|
|
103
|
+
|
|
104
|
+
## Relationship to `@tsonic/js`
|
|
105
|
+
|
|
106
|
+
- `@tsonic/js` provides JavaScript runtime APIs (JS-style `console`, `JSON`, timers, etc.)
|
|
107
|
+
- `@tsonic/nodejs` provides Node-style modules (`fs`, `path`, `crypto`, `http`, etc.)
|
|
108
|
+
|
|
66
109
|
## Documentation
|
|
67
110
|
|
|
68
|
-
-
|
|
111
|
+
- https://github.com/tsoniclang/nodejs/blob/main/docs/README.md
|
|
69
112
|
- https://tsonic.org/nodejs/
|
|
70
113
|
|
|
71
114
|
## Naming Conventions
|
|
72
115
|
|
|
73
|
-
- **
|
|
74
|
-
- **Members**: camelCase (TypeScript convention)
|
|
75
|
-
|
|
76
|
-
To generate CLR/PascalCase member names, regenerate with `--naming clr` (or omit `--naming js`).
|
|
116
|
+
- `@tsonic/nodejs` intentionally uses **Node/JS-style naming** (camelCase members).
|
|
77
117
|
|
|
78
118
|
## Development
|
|
79
119
|
|
|
@@ -10,7 +10,7 @@ import type { ptr } from "@tsonic/core/types.js";
|
|
|
10
10
|
|
|
11
11
|
// Import types from other namespaces
|
|
12
12
|
import * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
13
|
-
import type { Dictionary_2
|
|
13
|
+
import type { Dictionary_2, IAsyncEnumerable_1, ICollection_1, IDictionary_2, IEnumerable_1, IEnumerator_1, KeyValuePair_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
14
14
|
import * as System_Collections_Internal from "@tsonic/dotnet/System.Collections/internal/index.js";
|
|
15
15
|
import type { IEnumerable } from "@tsonic/dotnet/System.Collections/internal/index.js";
|
|
16
16
|
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
@@ -20,7 +20,7 @@ import type { X509Certificate2, X509Certificate2Collection } from "@tsonic/dotne
|
|
|
20
20
|
import type { Regex } from "@tsonic/dotnet/System.Text.RegularExpressions/internal/index.js";
|
|
21
21
|
import type { Task, Task_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
22
22
|
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
23
|
-
import type { Action, Action_1, Action_2, Action_3, AsyncCallback, Boolean as ClrBoolean, Byte, DateTime, Delegate, Double, Exception, Func_1
|
|
23
|
+
import type { Action, Action_1, Action_2, Action_3, AsyncCallback, Boolean as ClrBoolean, Byte, DateTime, Delegate, Double, Exception, Func_1, IAsyncResult, ICloneable, IDisposable, Int16, Int32, Int64, IntPtr, MulticastDelegate, Nullable_1, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, UInt64, ValueTuple_2, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
24
24
|
|
|
25
25
|
export type DebugLogFunction = (message: string, args: unknown[]) => void;
|
|
26
26
|
|
|
@@ -254,8 +254,8 @@ export interface BindOptions$instance {
|
|
|
254
254
|
get address(): string | undefined;
|
|
255
255
|
set address(value: string | undefined);
|
|
256
256
|
exclusive: boolean;
|
|
257
|
-
fd:
|
|
258
|
-
port:
|
|
257
|
+
fd: Nullable_1<System_Internal.Int32>;
|
|
258
|
+
port: Nullable_1<System_Internal.Int32>;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
|
|
@@ -287,9 +287,9 @@ export type BlockList = BlockList$instance;
|
|
|
287
287
|
export interface BrotliOptions$instance {
|
|
288
288
|
readonly __tsonic_type_nodejs_BrotliOptions: never;
|
|
289
289
|
|
|
290
|
-
chunkSize:
|
|
291
|
-
maxOutputLength:
|
|
292
|
-
quality:
|
|
290
|
+
chunkSize: Nullable_1<System_Internal.Int32>;
|
|
291
|
+
maxOutputLength: Nullable_1<System_Internal.Int32>;
|
|
292
|
+
quality: Nullable_1<System_Internal.Int32>;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
|
|
@@ -304,13 +304,13 @@ export interface Buffer$instance {
|
|
|
304
304
|
readonly __tsonic_type_nodejs_Buffer: never;
|
|
305
305
|
|
|
306
306
|
readonly length: int;
|
|
307
|
-
compare(target: Buffer, targetStart?:
|
|
308
|
-
copy(target: Buffer, targetStart?: int, sourceStart?:
|
|
307
|
+
compare(target: Buffer, targetStart?: Nullable_1<System_Internal.Int32>, targetEnd?: Nullable_1<System_Internal.Int32>, sourceStart?: Nullable_1<System_Internal.Int32>, sourceEnd?: Nullable_1<System_Internal.Int32>): int;
|
|
308
|
+
copy(target: Buffer, targetStart?: int, sourceStart?: Nullable_1<System_Internal.Int32>, sourceEnd?: Nullable_1<System_Internal.Int32>): int;
|
|
309
309
|
equals(otherBuffer: Buffer): boolean;
|
|
310
|
-
fill(value: unknown, offset?: int, end?:
|
|
310
|
+
fill(value: unknown, offset?: int, end?: Nullable_1<System_Internal.Int32>, encoding?: string): Buffer;
|
|
311
311
|
includes(value: unknown, byteOffset?: int, encoding?: string): boolean;
|
|
312
312
|
indexOf(value: unknown, byteOffset?: int, encoding?: string): int;
|
|
313
|
-
lastIndexOf(value: unknown, byteOffset?:
|
|
313
|
+
lastIndexOf(value: unknown, byteOffset?: Nullable_1<System_Internal.Int32>, encoding?: string): int;
|
|
314
314
|
readBigInt64BE(offset?: int): long;
|
|
315
315
|
readBigInt64LE(offset?: int): long;
|
|
316
316
|
readBigUint64BE(offset?: int): ulong;
|
|
@@ -343,14 +343,14 @@ export interface Buffer$instance {
|
|
|
343
343
|
readUintLE(offset: int, byteLength: int): ulong;
|
|
344
344
|
readUIntLE(offset: int, byteLength: int): ulong;
|
|
345
345
|
reverse(): Buffer;
|
|
346
|
-
slice(start?:
|
|
347
|
-
subarray(start?:
|
|
346
|
+
slice(start?: Nullable_1<System_Internal.Int32>, end?: Nullable_1<System_Internal.Int32>): Buffer;
|
|
347
|
+
subarray(start?: Nullable_1<System_Internal.Int32>, end?: Nullable_1<System_Internal.Int32>): Buffer;
|
|
348
348
|
swap16(): Buffer;
|
|
349
349
|
swap32(): Buffer;
|
|
350
350
|
swap64(): Buffer;
|
|
351
351
|
toJSON(): unknown;
|
|
352
|
-
toString(encoding?: string, start?: int, end?:
|
|
353
|
-
write(str: string, offset?: int, length?:
|
|
352
|
+
toString(encoding?: string, start?: int, end?: Nullable_1<System_Internal.Int32>): string;
|
|
353
|
+
write(str: string, offset?: int, length?: Nullable_1<System_Internal.Int32>, encoding?: string): int;
|
|
354
354
|
writeBigInt64BE(value: long, offset?: int): int;
|
|
355
355
|
writeBigInt64LE(value: long, offset?: int): int;
|
|
356
356
|
writeBigUint64BE(value: ulong, offset?: int): int;
|
|
@@ -392,7 +392,7 @@ export const Buffer: {
|
|
|
392
392
|
allocUnsafeSlow(size: int): Buffer;
|
|
393
393
|
byteLength(str: string, encoding?: string): int;
|
|
394
394
|
compare(buf1: Buffer, buf2: Buffer): int;
|
|
395
|
-
concat(list: Buffer[], totalLength?:
|
|
395
|
+
concat(list: Buffer[], totalLength?: Nullable_1<System_Internal.Int32>): Buffer;
|
|
396
396
|
from(buffer: Buffer): Buffer;
|
|
397
397
|
from(array: byte[]): Buffer;
|
|
398
398
|
from(array: int[]): Buffer;
|
|
@@ -448,7 +448,7 @@ export interface ChildProcess$instance extends EventEmitter {
|
|
|
448
448
|
readonly __tsonic_type_nodejs_ChildProcess: never;
|
|
449
449
|
|
|
450
450
|
connected: boolean;
|
|
451
|
-
exitCode:
|
|
451
|
+
exitCode: Nullable_1<System_Internal.Int32>;
|
|
452
452
|
readonly killed: boolean;
|
|
453
453
|
readonly pid: int;
|
|
454
454
|
referenced: boolean;
|
|
@@ -518,9 +518,9 @@ export interface CommonConnectionOptions$instance {
|
|
|
518
518
|
|
|
519
519
|
get ALPNProtocols(): string[] | undefined;
|
|
520
520
|
set ALPNProtocols(value: string[] | undefined);
|
|
521
|
-
enableTrace:
|
|
522
|
-
rejectUnauthorized:
|
|
523
|
-
requestCert:
|
|
521
|
+
enableTrace: Nullable_1<System_Internal.Boolean>;
|
|
522
|
+
rejectUnauthorized: Nullable_1<System_Internal.Boolean>;
|
|
523
|
+
requestCert: Nullable_1<System_Internal.Boolean>;
|
|
524
524
|
get secureContext(): SecureContext | undefined;
|
|
525
525
|
set secureContext(value: SecureContext | undefined);
|
|
526
526
|
}
|
|
@@ -546,10 +546,10 @@ export interface ConnectionOptions$instance extends CommonConnectionOptions {
|
|
|
546
546
|
set key(value: unknown | undefined);
|
|
547
547
|
get passphrase(): string | undefined;
|
|
548
548
|
set passphrase(value: string | undefined);
|
|
549
|
-
port:
|
|
549
|
+
port: Nullable_1<System_Internal.Int32>;
|
|
550
550
|
get servername(): string | undefined;
|
|
551
551
|
set servername(value: string | undefined);
|
|
552
|
-
timeout:
|
|
552
|
+
timeout: Nullable_1<System_Internal.Int32>;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
|
|
@@ -589,7 +589,7 @@ export interface ConsoleConstructor$instance {
|
|
|
589
589
|
|
|
590
590
|
|
|
591
591
|
export const ConsoleConstructor: {
|
|
592
|
-
new(stdout: unknown, stderr: unknown, ignoreErrors: boolean, colorMode: unknown, inspectOptions:
|
|
592
|
+
new(stdout: unknown, stderr: unknown, ignoreErrors: boolean, colorMode: unknown, inspectOptions: Nullable_1<System_Internal.Int32>, groupIndentation: boolean): ConsoleConstructor;
|
|
593
593
|
};
|
|
594
594
|
|
|
595
595
|
|
|
@@ -701,13 +701,13 @@ export interface DgramSocket$instance extends EventEmitter {
|
|
|
701
701
|
getSendQueueSize(): int;
|
|
702
702
|
ref(): DgramSocket;
|
|
703
703
|
remoteAddress(): AddressInfo;
|
|
704
|
-
send(msg: byte[], port?:
|
|
705
|
-
send(msg: string, port?:
|
|
704
|
+
send(msg: byte[], port?: Nullable_1<System_Internal.Int32>, address?: string, callback?: Action_2<Exception, System_Internal.Int32>): void;
|
|
705
|
+
send(msg: string, port?: Nullable_1<System_Internal.Int32>, address?: string, callback?: Action_2<Exception, System_Internal.Int32>): void;
|
|
706
706
|
send(msg: byte[], port: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
707
707
|
send(msg: string, port: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
708
708
|
send(msg: byte[], callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
709
709
|
send(msg: string, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
710
|
-
send(msg: byte[], offset: int, length: int, port?:
|
|
710
|
+
send(msg: byte[], offset: int, length: int, port?: Nullable_1<System_Internal.Int32>, address?: string, callback?: Action_2<Exception, System_Internal.Int32>): void;
|
|
711
711
|
send(msg: byte[], offset: int, length: int, port: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
712
712
|
send(msg: byte[], offset: int, length: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
713
713
|
setBroadcast(flag: boolean): void;
|
|
@@ -805,7 +805,7 @@ export interface DSAPrivateKeyObject$instance extends KeyObject {
|
|
|
805
805
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
806
806
|
|
|
807
807
|
readonly asymmetricKeyType: string | undefined;
|
|
808
|
-
readonly symmetricKeySize:
|
|
808
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
809
809
|
readonly type: string;
|
|
810
810
|
Dispose(): void;
|
|
811
811
|
export(options?: unknown): unknown;
|
|
@@ -824,7 +824,7 @@ export interface DSAPublicKeyObject$instance extends KeyObject {
|
|
|
824
824
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
825
825
|
|
|
826
826
|
readonly asymmetricKeyType: string | undefined;
|
|
827
|
-
readonly symmetricKeySize:
|
|
827
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
828
828
|
readonly type: string;
|
|
829
829
|
Dispose(): void;
|
|
830
830
|
export(options?: unknown): unknown;
|
|
@@ -895,7 +895,7 @@ export interface EdDSAPrivateKeyObject$instance extends KeyObject {
|
|
|
895
895
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
896
896
|
|
|
897
897
|
readonly asymmetricKeyType: string | undefined;
|
|
898
|
-
readonly symmetricKeySize:
|
|
898
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
899
899
|
readonly type: string;
|
|
900
900
|
Dispose(): void;
|
|
901
901
|
export(options?: unknown): unknown;
|
|
@@ -914,7 +914,7 @@ export interface EdDSAPublicKeyObject$instance extends KeyObject {
|
|
|
914
914
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
915
915
|
|
|
916
916
|
readonly asymmetricKeyType: string | undefined;
|
|
917
|
-
readonly symmetricKeySize:
|
|
917
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
918
918
|
readonly type: string;
|
|
919
919
|
Dispose(): void;
|
|
920
920
|
export(options?: unknown): unknown;
|
|
@@ -986,7 +986,7 @@ export interface ExecOptions$instance {
|
|
|
986
986
|
set encoding(value: string | undefined);
|
|
987
987
|
get env(): unknown | undefined;
|
|
988
988
|
set env(value: unknown | undefined);
|
|
989
|
-
gid:
|
|
989
|
+
gid: Nullable_1<System_Internal.Int32>;
|
|
990
990
|
get input(): string | undefined;
|
|
991
991
|
set input(value: string | undefined);
|
|
992
992
|
get killSignal(): string | undefined;
|
|
@@ -997,7 +997,7 @@ export interface ExecOptions$instance {
|
|
|
997
997
|
get stdio(): string | undefined;
|
|
998
998
|
set stdio(value: string | undefined);
|
|
999
999
|
timeout: int;
|
|
1000
|
-
uid:
|
|
1000
|
+
uid: Nullable_1<System_Internal.Int32>;
|
|
1001
1001
|
windowsHide: boolean;
|
|
1002
1002
|
windowsVerbatimArguments: boolean;
|
|
1003
1003
|
}
|
|
@@ -1021,8 +1021,8 @@ export interface FsPromises$instance {
|
|
|
1021
1021
|
cp(src: string, dest: string, recursive?: boolean): Task;
|
|
1022
1022
|
fstat(fd: int): Task_1<Stats>;
|
|
1023
1023
|
mkdir(path: string, recursive?: boolean): Task;
|
|
1024
|
-
open(path: string, flags: string, mode?:
|
|
1025
|
-
read(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
1024
|
+
open(path: string, flags: string, mode?: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
1025
|
+
read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
1026
1026
|
readdir(path: string, withFileTypes?: boolean): Task_1<string[]>;
|
|
1027
1027
|
readFile(path: string, encoding?: string): Task_1<System_Internal.String>;
|
|
1028
1028
|
readFileBytes(path: string): Task_1<byte[]>;
|
|
@@ -1035,8 +1035,8 @@ export interface FsPromises$instance {
|
|
|
1035
1035
|
symlink(target: string, path: string, type?: string): Task;
|
|
1036
1036
|
truncate(path: string, len?: long): Task;
|
|
1037
1037
|
unlink(path: string): Task;
|
|
1038
|
-
write(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
1039
|
-
write(fd: int, data: string, position?:
|
|
1038
|
+
write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
1039
|
+
write(fd: int, data: string, position?: Nullable_1<System_Internal.Int32>, encoding?: string): Task_1<System_Internal.Int32>;
|
|
1040
1040
|
writeFile(path: string, data: string, encoding?: string): Task;
|
|
1041
1041
|
writeFileBytes(path: string, data: byte[]): Task;
|
|
1042
1042
|
}
|
|
@@ -1132,19 +1132,19 @@ export type Interface = Interface$instance;
|
|
|
1132
1132
|
export interface InterfaceOptions$instance {
|
|
1133
1133
|
readonly __tsonic_type_nodejs_InterfaceOptions: never;
|
|
1134
1134
|
|
|
1135
|
-
escapeCodeTimeout:
|
|
1135
|
+
escapeCodeTimeout: Nullable_1<System_Internal.Int32>;
|
|
1136
1136
|
get history(): string[] | undefined;
|
|
1137
1137
|
set history(value: string[] | undefined);
|
|
1138
|
-
historySize:
|
|
1138
|
+
historySize: Nullable_1<System_Internal.Int32>;
|
|
1139
1139
|
get input(): Readable | undefined;
|
|
1140
1140
|
set input(value: Readable | undefined);
|
|
1141
1141
|
get output(): Writable | undefined;
|
|
1142
1142
|
set output(value: Writable | undefined);
|
|
1143
1143
|
get prompt(): string | undefined;
|
|
1144
1144
|
set prompt(value: string | undefined);
|
|
1145
|
-
removeHistoryDuplicates:
|
|
1146
|
-
tabSize:
|
|
1147
|
-
terminal:
|
|
1145
|
+
removeHistoryDuplicates: Nullable_1<System_Internal.Boolean>;
|
|
1146
|
+
tabSize: Nullable_1<System_Internal.Int32>;
|
|
1147
|
+
terminal: Nullable_1<System_Internal.Boolean>;
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
1150
|
|
|
@@ -1175,7 +1175,7 @@ export interface KeyObject$instance {
|
|
|
1175
1175
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1176
1176
|
|
|
1177
1177
|
readonly asymmetricKeyType: string | undefined;
|
|
1178
|
-
readonly symmetricKeySize:
|
|
1178
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
1179
1179
|
readonly type: string;
|
|
1180
1180
|
Dispose(): void;
|
|
1181
1181
|
export(options?: unknown): unknown;
|
|
@@ -1191,13 +1191,13 @@ export type KeyObject = KeyObject$instance;
|
|
|
1191
1191
|
export interface ListenOptions$instance {
|
|
1192
1192
|
readonly __tsonic_type_nodejs_ListenOptions: never;
|
|
1193
1193
|
|
|
1194
|
-
backlog:
|
|
1194
|
+
backlog: Nullable_1<System_Internal.Int32>;
|
|
1195
1195
|
get host(): string | undefined;
|
|
1196
1196
|
set host(value: string | undefined);
|
|
1197
|
-
ipv6Only:
|
|
1197
|
+
ipv6Only: Nullable_1<System_Internal.Boolean>;
|
|
1198
1198
|
get path(): string | undefined;
|
|
1199
1199
|
set path(value: string | undefined);
|
|
1200
|
-
port:
|
|
1200
|
+
port: Nullable_1<System_Internal.Int32>;
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
1203
|
|
|
@@ -1226,13 +1226,13 @@ export type LookupAddress = LookupAddress$instance;
|
|
|
1226
1226
|
export interface LookupOptions$instance {
|
|
1227
1227
|
readonly __tsonic_type_nodejs_LookupOptions: never;
|
|
1228
1228
|
|
|
1229
|
-
all:
|
|
1229
|
+
all: Nullable_1<System_Internal.Boolean>;
|
|
1230
1230
|
get family(): unknown | undefined;
|
|
1231
1231
|
set family(value: unknown | undefined);
|
|
1232
|
-
hints:
|
|
1232
|
+
hints: Nullable_1<System_Internal.Int32>;
|
|
1233
1233
|
get order(): string | undefined;
|
|
1234
1234
|
set order(value: string | undefined);
|
|
1235
|
-
verbatim:
|
|
1235
|
+
verbatim: Nullable_1<System_Internal.Boolean>;
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
|
|
@@ -1263,7 +1263,7 @@ export interface MarkOptions$instance {
|
|
|
1263
1263
|
|
|
1264
1264
|
get detail(): unknown | undefined;
|
|
1265
1265
|
set detail(value: unknown | undefined);
|
|
1266
|
-
startTime:
|
|
1266
|
+
startTime: Nullable_1<System_Internal.Double>;
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
1269
|
|
|
@@ -1279,10 +1279,10 @@ export interface MeasureOptions$instance {
|
|
|
1279
1279
|
|
|
1280
1280
|
get detail(): unknown | undefined;
|
|
1281
1281
|
set detail(value: unknown | undefined);
|
|
1282
|
-
end:
|
|
1282
|
+
end: Nullable_1<System_Internal.Double>;
|
|
1283
1283
|
get endMark(): string | undefined;
|
|
1284
1284
|
set endMark(value: string | undefined);
|
|
1285
|
-
start:
|
|
1285
|
+
start: Nullable_1<System_Internal.Double>;
|
|
1286
1286
|
get startMark(): string | undefined;
|
|
1287
1287
|
set startMark(value: string | undefined);
|
|
1288
1288
|
}
|
|
@@ -1518,7 +1518,7 @@ export interface PrivateKeyObject$instance extends KeyObject {
|
|
|
1518
1518
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1519
1519
|
|
|
1520
1520
|
readonly asymmetricKeyType: string | undefined;
|
|
1521
|
-
readonly symmetricKeySize:
|
|
1521
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
1522
1522
|
readonly type: string;
|
|
1523
1523
|
Dispose(): void;
|
|
1524
1524
|
export(options?: unknown): unknown;
|
|
@@ -1542,17 +1542,17 @@ export interface ProcessEnv$instance {
|
|
|
1542
1542
|
|
|
1543
1543
|
readonly Count: int;
|
|
1544
1544
|
readonly IsReadOnly: boolean;
|
|
1545
|
-
readonly Keys:
|
|
1546
|
-
readonly Values:
|
|
1545
|
+
readonly Keys: ICollection_1<System_Internal.String>;
|
|
1546
|
+
readonly Values: ICollection_1<string | undefined>;
|
|
1547
1547
|
Add(key: string, value: string): void;
|
|
1548
|
-
Add(item:
|
|
1548
|
+
Add(item: KeyValuePair_2<System_Internal.String, System_Internal.String>): void;
|
|
1549
1549
|
Clear(): void;
|
|
1550
|
-
Contains(item:
|
|
1550
|
+
Contains(item: KeyValuePair_2<System_Internal.String, System_Internal.String>): boolean;
|
|
1551
1551
|
ContainsKey(key: string): boolean;
|
|
1552
|
-
CopyTo(array:
|
|
1553
|
-
GetEnumerator():
|
|
1552
|
+
CopyTo(array: KeyValuePair_2<System_Internal.String, System_Internal.String>[], arrayIndex: int): void;
|
|
1553
|
+
GetEnumerator(): IEnumerator_1<KeyValuePair_2<System_Internal.String, System_Internal.String>>;
|
|
1554
1554
|
Remove(key: string): boolean;
|
|
1555
|
-
Remove(item:
|
|
1555
|
+
Remove(item: KeyValuePair_2<System_Internal.String, System_Internal.String>): boolean;
|
|
1556
1556
|
TryGetValue(key: string, value: string): boolean;
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
@@ -1587,7 +1587,7 @@ export interface PublicKeyObject$instance extends KeyObject {
|
|
|
1587
1587
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1588
1588
|
|
|
1589
1589
|
readonly asymmetricKeyType: string | undefined;
|
|
1590
|
-
readonly symmetricKeySize:
|
|
1590
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
1591
1591
|
readonly type: string;
|
|
1592
1592
|
Dispose(): void;
|
|
1593
1593
|
export(options?: unknown): unknown;
|
|
@@ -1607,14 +1607,14 @@ export interface Readable$instance extends Stream {
|
|
|
1607
1607
|
destroyed: boolean;
|
|
1608
1608
|
readonly readable: boolean;
|
|
1609
1609
|
readonly readableEnded: boolean;
|
|
1610
|
-
readonly readableFlowing:
|
|
1610
|
+
readonly readableFlowing: Nullable_1<System_Internal.Boolean>;
|
|
1611
1611
|
readonly readableLength: int;
|
|
1612
1612
|
_read(size: int): void;
|
|
1613
1613
|
destroy(error?: Exception): void;
|
|
1614
1614
|
isPaused(): boolean;
|
|
1615
1615
|
pause(): Readable;
|
|
1616
1616
|
push(chunk: unknown, encoding?: string): boolean;
|
|
1617
|
-
read(size?:
|
|
1617
|
+
read(size?: Nullable_1<System_Internal.Int32>): unknown | undefined;
|
|
1618
1618
|
resume(): Readable;
|
|
1619
1619
|
setEncoding(encoding: string): Readable;
|
|
1620
1620
|
unpipe(destination?: Stream): Readable;
|
|
@@ -1730,9 +1730,9 @@ export type Resolver = Resolver$instance;
|
|
|
1730
1730
|
export interface ResolverOptions$instance {
|
|
1731
1731
|
readonly __tsonic_type_nodejs_ResolverOptions: never;
|
|
1732
1732
|
|
|
1733
|
-
maxTimeout:
|
|
1734
|
-
timeout:
|
|
1735
|
-
tries:
|
|
1733
|
+
maxTimeout: Nullable_1<System_Internal.Int32>;
|
|
1734
|
+
timeout: Nullable_1<System_Internal.Int32>;
|
|
1735
|
+
tries: Nullable_1<System_Internal.Int32>;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
1738
|
|
|
@@ -1749,7 +1749,7 @@ export interface SecretKeyObject$instance extends KeyObject {
|
|
|
1749
1749
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1750
1750
|
|
|
1751
1751
|
readonly asymmetricKeyType: string | undefined;
|
|
1752
|
-
readonly symmetricKeySize:
|
|
1752
|
+
readonly symmetricKeySize: Nullable_1<System_Internal.Int32>;
|
|
1753
1753
|
readonly type: string;
|
|
1754
1754
|
Dispose(): void;
|
|
1755
1755
|
export(options?: unknown): unknown;
|
|
@@ -1843,8 +1843,8 @@ export type Server = Server$instance;
|
|
|
1843
1843
|
export interface ServerOpts$instance {
|
|
1844
1844
|
readonly __tsonic_type_nodejs_ServerOpts: never;
|
|
1845
1845
|
|
|
1846
|
-
allowHalfOpen:
|
|
1847
|
-
pauseOnConnect:
|
|
1846
|
+
allowHalfOpen: Nullable_1<System_Internal.Boolean>;
|
|
1847
|
+
pauseOnConnect: Nullable_1<System_Internal.Boolean>;
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
1850
|
|
|
@@ -1906,13 +1906,13 @@ export interface Socket$instance extends Stream {
|
|
|
1906
1906
|
set localAddress(value: string | undefined);
|
|
1907
1907
|
get localFamily(): string | undefined;
|
|
1908
1908
|
set localFamily(value: string | undefined);
|
|
1909
|
-
localPort:
|
|
1909
|
+
localPort: Nullable_1<System_Internal.Int32>;
|
|
1910
1910
|
readonly readyState: string;
|
|
1911
1911
|
get remoteAddress(): string | undefined;
|
|
1912
1912
|
set remoteAddress(value: string | undefined);
|
|
1913
1913
|
get remoteFamily(): string | undefined;
|
|
1914
1914
|
set remoteFamily(value: string | undefined);
|
|
1915
|
-
remotePort:
|
|
1915
|
+
remotePort: Nullable_1<System_Internal.Int32>;
|
|
1916
1916
|
address(): unknown;
|
|
1917
1917
|
connect(port: int, host?: string, connectionListener?: Action): Socket;
|
|
1918
1918
|
connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
|
|
@@ -1950,7 +1950,7 @@ export interface SocketAddress$instance {
|
|
|
1950
1950
|
|
|
1951
1951
|
address: string;
|
|
1952
1952
|
family: string;
|
|
1953
|
-
flowlabel:
|
|
1953
|
+
flowlabel: Nullable_1<System_Internal.Int32>;
|
|
1954
1954
|
port: int;
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
@@ -1969,8 +1969,8 @@ export interface SocketAddressInitOptions$instance {
|
|
|
1969
1969
|
set address(value: string | undefined);
|
|
1970
1970
|
get family(): string | undefined;
|
|
1971
1971
|
set family(value: string | undefined);
|
|
1972
|
-
flowlabel:
|
|
1973
|
-
port:
|
|
1972
|
+
flowlabel: Nullable_1<System_Internal.Int32>;
|
|
1973
|
+
port: Nullable_1<System_Internal.Int32>;
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
1976
|
|
|
@@ -1984,10 +1984,10 @@ export type SocketAddressInitOptions = SocketAddressInitOptions$instance;
|
|
|
1984
1984
|
export interface SocketConstructorOpts$instance {
|
|
1985
1985
|
readonly __tsonic_type_nodejs_SocketConstructorOpts: never;
|
|
1986
1986
|
|
|
1987
|
-
allowHalfOpen:
|
|
1988
|
-
fd:
|
|
1989
|
-
readable:
|
|
1990
|
-
writable:
|
|
1987
|
+
allowHalfOpen: Nullable_1<System_Internal.Boolean>;
|
|
1988
|
+
fd: Nullable_1<System_Internal.Int32>;
|
|
1989
|
+
readable: Nullable_1<System_Internal.Boolean>;
|
|
1990
|
+
writable: Nullable_1<System_Internal.Boolean>;
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
1993
|
|
|
@@ -2002,10 +2002,10 @@ export interface SocketOptions$instance {
|
|
|
2002
2002
|
readonly __tsonic_type_nodejs_SocketOptions: never;
|
|
2003
2003
|
|
|
2004
2004
|
ipv6Only: boolean;
|
|
2005
|
-
recvBufferSize:
|
|
2005
|
+
recvBufferSize: Nullable_1<System_Internal.Int32>;
|
|
2006
2006
|
reuseAddr: boolean;
|
|
2007
2007
|
reusePort: boolean;
|
|
2008
|
-
sendBufferSize:
|
|
2008
|
+
sendBufferSize: Nullable_1<System_Internal.Int32>;
|
|
2009
2009
|
type: string;
|
|
2010
2010
|
}
|
|
2011
2011
|
|
|
@@ -2026,7 +2026,7 @@ export interface SpawnSyncReturns_1$instance<T> {
|
|
|
2026
2026
|
pid: int;
|
|
2027
2027
|
get signal(): string | undefined;
|
|
2028
2028
|
set signal(value: string | undefined);
|
|
2029
|
-
status:
|
|
2029
|
+
status: Nullable_1<System_Internal.Int32>;
|
|
2030
2030
|
stderr: T;
|
|
2031
2031
|
stdout: T;
|
|
2032
2032
|
}
|
|
@@ -2132,16 +2132,16 @@ export type StringDecoder = StringDecoder$instance;
|
|
|
2132
2132
|
export interface TcpSocketConnectOpts$instance {
|
|
2133
2133
|
readonly __tsonic_type_nodejs_TcpSocketConnectOpts: never;
|
|
2134
2134
|
|
|
2135
|
-
family:
|
|
2136
|
-
hints:
|
|
2135
|
+
family: Nullable_1<System_Internal.Int32>;
|
|
2136
|
+
hints: Nullable_1<System_Internal.Int32>;
|
|
2137
2137
|
get host(): string | undefined;
|
|
2138
2138
|
set host(value: string | undefined);
|
|
2139
|
-
keepAlive:
|
|
2140
|
-
keepAliveInitialDelay:
|
|
2139
|
+
keepAlive: Nullable_1<System_Internal.Boolean>;
|
|
2140
|
+
keepAliveInitialDelay: Nullable_1<System_Internal.Int32>;
|
|
2141
2141
|
get localAddress(): string | undefined;
|
|
2142
2142
|
set localAddress(value: string | undefined);
|
|
2143
|
-
localPort:
|
|
2144
|
-
noDelay:
|
|
2143
|
+
localPort: Nullable_1<System_Internal.Int32>;
|
|
2144
|
+
noDelay: Nullable_1<System_Internal.Boolean>;
|
|
2145
2145
|
port: int;
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
@@ -2178,7 +2178,7 @@ export interface TimersPromises$instance {
|
|
|
2178
2178
|
|
|
2179
2179
|
readonly scheduler: TimersScheduler;
|
|
2180
2180
|
setImmediate(value?: unknown): Task_1<unknown | undefined>;
|
|
2181
|
-
setInterval(delay?: int, value?: unknown):
|
|
2181
|
+
setInterval(delay?: int, value?: unknown): IAsyncEnumerable_1<unknown | undefined>;
|
|
2182
2182
|
setTimeout(delay?: int, value?: unknown): Task_1<unknown | undefined>;
|
|
2183
2183
|
}
|
|
2184
2184
|
|
|
@@ -2244,18 +2244,18 @@ export type TLSCertificateInfo = TLSCertificateInfo$instance;
|
|
|
2244
2244
|
export interface TlsOptions$instance extends CommonConnectionOptions {
|
|
2245
2245
|
readonly __tsonic_type_nodejs_TlsOptions: never;
|
|
2246
2246
|
|
|
2247
|
-
allowHalfOpen:
|
|
2247
|
+
allowHalfOpen: Nullable_1<System_Internal.Boolean>;
|
|
2248
2248
|
get ca(): unknown | undefined;
|
|
2249
2249
|
set ca(value: unknown | undefined);
|
|
2250
2250
|
get cert(): unknown | undefined;
|
|
2251
2251
|
set cert(value: unknown | undefined);
|
|
2252
|
-
handshakeTimeout:
|
|
2252
|
+
handshakeTimeout: Nullable_1<System_Internal.Int32>;
|
|
2253
2253
|
get key(): unknown | undefined;
|
|
2254
2254
|
set key(value: unknown | undefined);
|
|
2255
2255
|
get passphrase(): string | undefined;
|
|
2256
2256
|
set passphrase(value: string | undefined);
|
|
2257
|
-
pauseOnConnect:
|
|
2258
|
-
sessionTimeout:
|
|
2257
|
+
pauseOnConnect: Nullable_1<System_Internal.Boolean>;
|
|
2258
|
+
sessionTimeout: Nullable_1<System_Internal.Int32>;
|
|
2259
2259
|
}
|
|
2260
2260
|
|
|
2261
2261
|
|
|
@@ -2332,7 +2332,7 @@ export interface TLSSocketOptions$instance extends CommonConnectionOptions {
|
|
|
2332
2332
|
set ca(value: unknown | undefined);
|
|
2333
2333
|
get cert(): unknown | undefined;
|
|
2334
2334
|
set cert(value: unknown | undefined);
|
|
2335
|
-
isServer:
|
|
2335
|
+
isServer: Nullable_1<System_Internal.Boolean>;
|
|
2336
2336
|
get key(): unknown | undefined;
|
|
2337
2337
|
set key(value: unknown | undefined);
|
|
2338
2338
|
get passphrase(): string | undefined;
|
|
@@ -2399,7 +2399,7 @@ export type URL = URL$instance;
|
|
|
2399
2399
|
export interface URLPattern$instance {
|
|
2400
2400
|
readonly __tsonic_type_nodejs_URLPattern: never;
|
|
2401
2401
|
|
|
2402
|
-
exec(input: string):
|
|
2402
|
+
exec(input: string): Dictionary_2<System_Internal.String, System_Internal.String> | undefined;
|
|
2403
2403
|
test(input: string): boolean;
|
|
2404
2404
|
}
|
|
2405
2405
|
|
|
@@ -2417,16 +2417,16 @@ export interface URLSearchParams$instance {
|
|
|
2417
2417
|
readonly size: int;
|
|
2418
2418
|
append(name: string, value: string): void;
|
|
2419
2419
|
delete(name: string, value?: string): void;
|
|
2420
|
-
entries():
|
|
2420
|
+
entries(): IEnumerable_1<KeyValuePair_2<System_Internal.String, System_Internal.String>>;
|
|
2421
2421
|
forEach(callback: Action_2<System_Internal.String, System_Internal.String>): void;
|
|
2422
2422
|
get(name: string): string | undefined;
|
|
2423
2423
|
getAll(name: string): string[];
|
|
2424
2424
|
has(name: string, value?: string): boolean;
|
|
2425
|
-
keys():
|
|
2425
|
+
keys(): IEnumerable_1<System_Internal.String>;
|
|
2426
2426
|
set(name: string, value: string): void;
|
|
2427
2427
|
sort(): void;
|
|
2428
2428
|
ToString(): string;
|
|
2429
|
-
values():
|
|
2429
|
+
values(): IEnumerable_1<System_Internal.String>;
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
2432
|
|
|
@@ -2533,12 +2533,12 @@ export type X509CertificateInfo = X509CertificateInfo$instance;
|
|
|
2533
2533
|
export interface ZlibOptions$instance {
|
|
2534
2534
|
readonly __tsonic_type_nodejs_ZlibOptions: never;
|
|
2535
2535
|
|
|
2536
|
-
chunkSize:
|
|
2537
|
-
level:
|
|
2538
|
-
maxOutputLength:
|
|
2539
|
-
memLevel:
|
|
2540
|
-
strategy:
|
|
2541
|
-
windowBits:
|
|
2536
|
+
chunkSize: Nullable_1<System_Internal.Int32>;
|
|
2537
|
+
level: Nullable_1<System_Internal.Int32>;
|
|
2538
|
+
maxOutputLength: Nullable_1<System_Internal.Int32>;
|
|
2539
|
+
memLevel: Nullable_1<System_Internal.Int32>;
|
|
2540
|
+
strategy: Nullable_1<System_Internal.Int32>;
|
|
2541
|
+
windowBits: Nullable_1<System_Internal.Int32>;
|
|
2542
2542
|
}
|
|
2543
2543
|
|
|
2544
2544
|
|
|
@@ -2553,7 +2553,7 @@ export abstract class assert$instance {
|
|
|
2553
2553
|
static deepEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2554
2554
|
static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2555
2555
|
static doesNotMatch(string: string, regexp: Regex, message?: string): void;
|
|
2556
|
-
static doesNotReject(fn:
|
|
2556
|
+
static doesNotReject(fn: Func_1<Task>, message?: string): Task;
|
|
2557
2557
|
static doesNotThrow(fn: Action, message?: string): void;
|
|
2558
2558
|
static equal(actual: unknown, expected: unknown, message?: string): void;
|
|
2559
2559
|
static fail(message?: string): void;
|
|
@@ -2564,7 +2564,7 @@ export abstract class assert$instance {
|
|
|
2564
2564
|
static notEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2565
2565
|
static notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2566
2566
|
static ok(value: boolean, message?: string): void;
|
|
2567
|
-
static rejects(fn:
|
|
2567
|
+
static rejects(fn: Func_1<Task>, message?: string): Task;
|
|
2568
2568
|
static strict(actual: unknown, expected: unknown, message?: string): void;
|
|
2569
2569
|
static strictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2570
2570
|
static throws(fn: Action, message?: string): void;
|
|
@@ -2675,7 +2675,7 @@ export abstract class crypto$instance {
|
|
|
2675
2675
|
static generateKey(type: string, options: unknown, callback: Action_2<Exception, KeyObject>): void;
|
|
2676
2676
|
static generateKey(type: string, options: unknown): KeyObject;
|
|
2677
2677
|
static generateKeyPair(type: string, options: unknown, callback: Action_3<Exception, unknown, unknown>): void;
|
|
2678
|
-
static generateKeyPairSync(type: string, options?: unknown):
|
|
2678
|
+
static generateKeyPairSync(type: string, options?: unknown): ValueTuple_2<KeyObject, KeyObject>;
|
|
2679
2679
|
static getCiphers(): string[];
|
|
2680
2680
|
static getCurves(): string[];
|
|
2681
2681
|
static getDefaultCipherList(): string;
|
|
@@ -2699,7 +2699,7 @@ export abstract class crypto$instance {
|
|
|
2699
2699
|
static randomBytes(size: int, callback: Action_2<Exception, byte[]>): void;
|
|
2700
2700
|
static randomBytes(size: int): byte[];
|
|
2701
2701
|
static randomFill(buffer: byte[], offset: int, size: int, callback: Action_2<Exception, byte[]>): void;
|
|
2702
|
-
static randomFillSync(buffer: byte[], offset?: int, size?:
|
|
2702
|
+
static randomFillSync(buffer: byte[], offset?: int, size?: Nullable_1<System_Internal.Int32>): byte[];
|
|
2703
2703
|
static randomInt(min: int, max: int): int;
|
|
2704
2704
|
static randomInt(max: int): int;
|
|
2705
2705
|
static randomUUID(): string;
|
|
@@ -2796,7 +2796,7 @@ export abstract class events$instance {
|
|
|
2796
2796
|
static getEventListeners(emitter: EventEmitter, eventName: string): Function[];
|
|
2797
2797
|
static getMaxListeners(emitter: EventEmitter): int;
|
|
2798
2798
|
static listenerCount(emitter: EventEmitter, eventName: string): int;
|
|
2799
|
-
static on(emitter: EventEmitter, eventName: string):
|
|
2799
|
+
static on(emitter: EventEmitter, eventName: string): IAsyncEnumerable_1<(unknown | undefined)[]>;
|
|
2800
2800
|
static once(emitter: EventEmitter, eventName: string): Task_1<(unknown | undefined)[]>;
|
|
2801
2801
|
static setMaxListeners(n: int, ...emitters: EventEmitter[]): void;
|
|
2802
2802
|
}
|
|
@@ -2823,9 +2823,9 @@ export abstract class fs$instance {
|
|
|
2823
2823
|
static fstatSync(fd: int): Stats;
|
|
2824
2824
|
static mkdir(path: string, recursive?: boolean): Task;
|
|
2825
2825
|
static mkdirSync(path: string, recursive?: boolean): void;
|
|
2826
|
-
static open(path: string, flags: string, mode?:
|
|
2827
|
-
static openSync(path: string, flags: string, mode?:
|
|
2828
|
-
static read(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2826
|
+
static open(path: string, flags: string, mode?: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2827
|
+
static openSync(path: string, flags: string, mode?: Nullable_1<System_Internal.Int32>): int;
|
|
2828
|
+
static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2829
2829
|
static readdir(path: string, withFileTypes?: boolean): Task_1<string[]>;
|
|
2830
2830
|
static readdirSync(path: string, withFileTypes?: boolean): string[];
|
|
2831
2831
|
static readFile(path: string, encoding?: string): Task_1<System_Internal.String>;
|
|
@@ -2834,7 +2834,7 @@ export abstract class fs$instance {
|
|
|
2834
2834
|
static readFileSyncBytes(path: string): byte[];
|
|
2835
2835
|
static readlink(path: string): Task_1<System_Internal.String>;
|
|
2836
2836
|
static readlinkSync(path: string): string;
|
|
2837
|
-
static readSync(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2837
|
+
static readSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): int;
|
|
2838
2838
|
static realpath(path: string): Task_1<System_Internal.String>;
|
|
2839
2839
|
static realpathSync(path: string): string;
|
|
2840
2840
|
static rename(oldPath: string, newPath: string): Task;
|
|
@@ -2851,14 +2851,14 @@ export abstract class fs$instance {
|
|
|
2851
2851
|
static truncateSync(path: string, len?: long): void;
|
|
2852
2852
|
static unlink(path: string): Task;
|
|
2853
2853
|
static unlinkSync(path: string): void;
|
|
2854
|
-
static write(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2855
|
-
static write(fd: int, data: string, position?:
|
|
2854
|
+
static write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2855
|
+
static write(fd: int, data: string, position?: Nullable_1<System_Internal.Int32>, encoding?: string): Task_1<System_Internal.Int32>;
|
|
2856
2856
|
static writeFile(path: string, data: string, encoding?: string): Task;
|
|
2857
2857
|
static writeFileBytes(path: string, data: byte[]): Task;
|
|
2858
2858
|
static writeFileSync(path: string, data: string, encoding?: string): void;
|
|
2859
2859
|
static writeFileSyncBytes(path: string, data: byte[]): void;
|
|
2860
|
-
static writeSync(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2861
|
-
static writeSync(fd: int, data: string, position?:
|
|
2860
|
+
static writeSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): int;
|
|
2861
|
+
static writeSync(fd: int, data: string, position?: Nullable_1<System_Internal.Int32>, encoding?: string): int;
|
|
2862
2862
|
}
|
|
2863
2863
|
|
|
2864
2864
|
|
|
@@ -2952,7 +2952,7 @@ export abstract class process$instance {
|
|
|
2952
2952
|
static argv0: string;
|
|
2953
2953
|
static readonly env: ProcessEnv;
|
|
2954
2954
|
static readonly execPath: string;
|
|
2955
|
-
static exitCode:
|
|
2955
|
+
static exitCode: Nullable_1<System_Internal.Int32>;
|
|
2956
2956
|
static readonly pid: int;
|
|
2957
2957
|
static readonly ppid: int;
|
|
2958
2958
|
static readonly platform: string;
|
|
@@ -2960,7 +2960,7 @@ export abstract class process$instance {
|
|
|
2960
2960
|
static readonly versions: ProcessVersions;
|
|
2961
2961
|
static chdir(directory: string): void;
|
|
2962
2962
|
static cwd(): string;
|
|
2963
|
-
static exit(code?:
|
|
2963
|
+
static exit(code?: Nullable_1<System_Internal.Int32>): void;
|
|
2964
2964
|
static kill(pid: int, signal?: unknown): boolean;
|
|
2965
2965
|
}
|
|
2966
2966
|
|
|
@@ -2968,11 +2968,11 @@ export abstract class process$instance {
|
|
|
2968
2968
|
export type process = process$instance;
|
|
2969
2969
|
|
|
2970
2970
|
export abstract class querystring$instance {
|
|
2971
|
-
static decode(str: string, sep?: string, eq?: string, maxKeys?: int):
|
|
2972
|
-
static encode(obj:
|
|
2971
|
+
static decode(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary_2<System_Internal.String, unknown>;
|
|
2972
|
+
static encode(obj: Dictionary_2<System_Internal.String, unknown>, sep?: string, eq?: string): string;
|
|
2973
2973
|
static escape(str: string): string;
|
|
2974
|
-
static parse(str: string, sep?: string, eq?: string, maxKeys?: int):
|
|
2975
|
-
static stringify(obj:
|
|
2974
|
+
static parse(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary_2<System_Internal.String, unknown>;
|
|
2975
|
+
static stringify(obj: Dictionary_2<System_Internal.String, unknown>, sep?: string, eq?: string): string;
|
|
2976
2976
|
static unescape(str: string): string;
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
@@ -2983,10 +2983,10 @@ export abstract class readline$instance {
|
|
|
2983
2983
|
static readonly promises: ReadlinePromises;
|
|
2984
2984
|
static clearLine(stream: Writable, dir: int, callback?: Action): boolean;
|
|
2985
2985
|
static clearScreenDown(stream: Writable, callback?: Action): boolean;
|
|
2986
|
-
static createAsyncIterator(input: Readable, options?: InterfaceOptions):
|
|
2986
|
+
static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable_1<System_Internal.String>;
|
|
2987
2987
|
static createInterface(options: InterfaceOptions): Interface;
|
|
2988
2988
|
static createInterface(input: Readable, output?: Writable): Interface;
|
|
2989
|
-
static cursorTo(stream: Writable, x: int, y?:
|
|
2989
|
+
static cursorTo(stream: Writable, x: int, y?: Nullable_1<System_Internal.Int32>, callback?: Action): boolean;
|
|
2990
2990
|
static emitKeypressEvents(stream: Readable, rl?: Interface): void;
|
|
2991
2991
|
static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action): boolean;
|
|
2992
2992
|
}
|
|
@@ -3052,7 +3052,7 @@ export abstract class url$instance {
|
|
|
3052
3052
|
static parse(input: string): URL | undefined;
|
|
3053
3053
|
static pathToFileURL(filePath: string): URL;
|
|
3054
3054
|
static resolve(from: string, to: string): string;
|
|
3055
|
-
static urlToHttpOptions(input: URL):
|
|
3055
|
+
static urlToHttpOptions(input: URL): Dictionary_2<System_Internal.String, unknown | undefined>;
|
|
3056
3056
|
}
|
|
3057
3057
|
|
|
3058
3058
|
|
|
@@ -3060,7 +3060,7 @@ export type url = url$instance;
|
|
|
3060
3060
|
|
|
3061
3061
|
export abstract class util$instance {
|
|
3062
3062
|
static debuglog(section: string): DebugLogFunction;
|
|
3063
|
-
static deprecate<TResult>(fn:
|
|
3063
|
+
static deprecate<TResult>(fn: Func_1<TResult>, msg: string, code?: string): Func_1<TResult>;
|
|
3064
3064
|
static deprecate(action: Action, msg: string, code?: string): Action;
|
|
3065
3065
|
static format(format: unknown, ...args: unknown[]): string;
|
|
3066
3066
|
static formatWithOptions(inspectOptions: unknown, formatValue: unknown, ...args: unknown[]): string;
|
|
@@ -8,12 +8,12 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
8
8
|
// Import types from other namespaces
|
|
9
9
|
import * as nodejs_Internal from "../../index/internal/index.js";
|
|
10
10
|
import type { EventEmitter } from "../../index/internal/index.js";
|
|
11
|
-
import type { Dictionary_2
|
|
11
|
+
import type { Dictionary_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
12
12
|
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
13
13
|
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
14
14
|
import type { Task, Task_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
15
15
|
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
-
import type { Action, Action_1, Action_2, Boolean as ClrBoolean, Delegate, Exception, Int32, Nullable_1
|
|
16
|
+
import type { Action, Action_1, Action_2, Boolean as ClrBoolean, Delegate, Exception, Int32, Nullable_1, Object as ClrObject, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
17
17
|
|
|
18
18
|
export interface AddressInfo$instance {
|
|
19
19
|
readonly __tsonic_type_nodejs_Http_AddressInfo: never;
|
|
@@ -60,10 +60,10 @@ export interface IncomingMessage$instance extends EventEmitter {
|
|
|
60
60
|
readonly __tsonic_type_nodejs_Http_IncomingMessage: never;
|
|
61
61
|
|
|
62
62
|
complete: boolean;
|
|
63
|
-
readonly headers:
|
|
63
|
+
readonly headers: Dictionary_2<System_Internal.String, System_Internal.String>;
|
|
64
64
|
readonly httpVersion: string;
|
|
65
65
|
readonly method: string | undefined;
|
|
66
|
-
readonly statusCode:
|
|
66
|
+
readonly statusCode: Nullable_1<System_Internal.Int32>;
|
|
67
67
|
readonly statusMessage: string | undefined;
|
|
68
68
|
readonly url: string | undefined;
|
|
69
69
|
destroy(): void;
|
|
@@ -88,8 +88,8 @@ export interface RequestOptions$instance {
|
|
|
88
88
|
set agent(value: unknown | undefined);
|
|
89
89
|
get auth(): string | undefined;
|
|
90
90
|
set auth(value: string | undefined);
|
|
91
|
-
get headers():
|
|
92
|
-
set headers(value:
|
|
91
|
+
get headers(): Dictionary_2<System_Internal.String, System_Internal.String> | undefined;
|
|
92
|
+
set headers(value: Dictionary_2<System_Internal.String, System_Internal.String> | undefined);
|
|
93
93
|
get host(): string | undefined;
|
|
94
94
|
set host(value: string | undefined);
|
|
95
95
|
get hostname(): string | undefined;
|
|
@@ -99,7 +99,7 @@ export interface RequestOptions$instance {
|
|
|
99
99
|
set path(value: string | undefined);
|
|
100
100
|
port: int;
|
|
101
101
|
protocol: string;
|
|
102
|
-
timeout:
|
|
102
|
+
timeout: Nullable_1<System_Internal.Int32>;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
|
|
@@ -121,7 +121,7 @@ export interface Server$instance extends EventEmitter {
|
|
|
121
121
|
timeout: int;
|
|
122
122
|
address(): AddressInfo | undefined;
|
|
123
123
|
close(callback?: Action): Server;
|
|
124
|
-
listen(port: int, hostname?: string, backlog?:
|
|
124
|
+
listen(port: int, hostname?: string, backlog?: Nullable_1<System_Internal.Int32>, callback?: Action): Server;
|
|
125
125
|
listen(port: int, callback: Action): Server;
|
|
126
126
|
setTimeout(msecs: int, callback?: Action): Server;
|
|
127
127
|
}
|
|
@@ -145,14 +145,14 @@ export interface ServerResponse$instance extends EventEmitter {
|
|
|
145
145
|
flushHeaders(): void;
|
|
146
146
|
getHeader(name: string): string | undefined;
|
|
147
147
|
getHeaderNames(): string[];
|
|
148
|
-
getHeaders():
|
|
148
|
+
getHeaders(): Dictionary_2<System_Internal.String, System_Internal.String>;
|
|
149
149
|
hasHeader(name: string): boolean;
|
|
150
150
|
removeHeader(name: string): void;
|
|
151
151
|
setHeader(name: string, value: string): ServerResponse;
|
|
152
152
|
setTimeout(msecs: int, callback?: Action): ServerResponse;
|
|
153
153
|
write(chunk: string, encoding?: string, callback?: Action): boolean;
|
|
154
|
-
writeHead(statusCode: int, statusMessage?: string, headers?:
|
|
155
|
-
writeHead(statusCode: int, headers:
|
|
154
|
+
writeHead(statusCode: int, statusMessage?: string, headers?: Dictionary_2<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
155
|
+
writeHead(statusCode: int, headers: Dictionary_2<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
|
|
@@ -178,7 +178,7 @@ export const TypeError: {
|
|
|
178
178
|
export type TypeError = TypeError$instance;
|
|
179
179
|
|
|
180
180
|
export abstract class http$instance {
|
|
181
|
-
static globalAgent_maxSockets:
|
|
181
|
+
static globalAgent_maxSockets: Nullable_1<System_Internal.Int32>;
|
|
182
182
|
static globalAgent_maxFreeSockets: int;
|
|
183
183
|
static globalAgent_timeout: int;
|
|
184
184
|
static maxHeaderSize: int;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/nodejs",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.13",
|
|
4
4
|
"description": "TypeScript type definitions for Node.js CLR library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/tsoniclang/nodejs.git"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@tsonic/dotnet": "10.0.
|
|
23
|
-
"@tsonic/core": "10.0.
|
|
22
|
+
"@tsonic/dotnet": "10.0.12",
|
|
23
|
+
"@tsonic/core": "10.0.12"
|
|
24
24
|
}
|
|
25
25
|
}
|