@tsonic/nodejs 10.0.6 → 10.0.8
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/index/internal/index.d.ts +127 -129
- package/nodejs.Http/internal/index.d.ts +12 -12
- package/package.json +1 -1
- package/tsonic-nodejs-10.0.7.tgz +0 -0
|
@@ -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, IAsyncEnumerable_1, ICollection_1, IDictionary_2, IEnumerable_1, IEnumerator_1, KeyValuePair_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
13
|
+
import type { Dictionary_2 as Dictionary, IAsyncEnumerable_1 as IAsyncEnumerable, ICollection_1 as ICollection, IDictionary_2 as IDictionary, IEnumerable_1 as IEnumerable__System_Collections_Generic, IEnumerator_1 as IEnumerator, KeyValuePair_2 as KeyValuePair } 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, 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";
|
|
23
|
+
import type { Action, Action_1, Action_2, Action_3, AsyncCallback, Boolean as ClrBoolean, Byte, DateTime, Delegate, Double, Exception, Func_1 as Func, IAsyncResult, ICloneable, IDisposable, Int16, Int32, Int64, IntPtr, MulticastDelegate, Nullable_1 as Nullable, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, UInt64, ValueTuple_2 as ValueTuple, 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<System_Internal.Int32>;
|
|
258
|
+
port: Nullable<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<System_Internal.Int32>;
|
|
291
|
+
maxOutputLength: Nullable<System_Internal.Int32>;
|
|
292
|
+
quality: Nullable<System_Internal.Int32>;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
|
|
@@ -303,15 +303,14 @@ export type BrotliOptions = BrotliOptions$instance;
|
|
|
303
303
|
export interface Buffer$instance {
|
|
304
304
|
readonly __tsonic_type_nodejs_Buffer: never;
|
|
305
305
|
|
|
306
|
-
[index: number]: byte;
|
|
307
306
|
readonly length: int;
|
|
308
|
-
compare(target: Buffer, targetStart?:
|
|
309
|
-
copy(target: Buffer, targetStart?: int, sourceStart?:
|
|
307
|
+
compare(target: Buffer, targetStart?: Nullable<System_Internal.Int32>, targetEnd?: Nullable<System_Internal.Int32>, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
|
|
308
|
+
copy(target: Buffer, targetStart?: int, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
|
|
310
309
|
equals(otherBuffer: Buffer): boolean;
|
|
311
|
-
fill(value: unknown, offset?: int, end?:
|
|
310
|
+
fill(value: unknown, offset?: int, end?: Nullable<System_Internal.Int32>, encoding?: string): Buffer;
|
|
312
311
|
includes(value: unknown, byteOffset?: int, encoding?: string): boolean;
|
|
313
312
|
indexOf(value: unknown, byteOffset?: int, encoding?: string): int;
|
|
314
|
-
lastIndexOf(value: unknown, byteOffset?:
|
|
313
|
+
lastIndexOf(value: unknown, byteOffset?: Nullable<System_Internal.Int32>, encoding?: string): int;
|
|
315
314
|
readBigInt64BE(offset?: int): long;
|
|
316
315
|
readBigInt64LE(offset?: int): long;
|
|
317
316
|
readBigUint64BE(offset?: int): ulong;
|
|
@@ -344,14 +343,14 @@ export interface Buffer$instance {
|
|
|
344
343
|
readUintLE(offset: int, byteLength: int): ulong;
|
|
345
344
|
readUIntLE(offset: int, byteLength: int): ulong;
|
|
346
345
|
reverse(): Buffer;
|
|
347
|
-
slice(start?:
|
|
348
|
-
subarray(start?:
|
|
346
|
+
slice(start?: Nullable<System_Internal.Int32>, end?: Nullable<System_Internal.Int32>): Buffer;
|
|
347
|
+
subarray(start?: Nullable<System_Internal.Int32>, end?: Nullable<System_Internal.Int32>): Buffer;
|
|
349
348
|
swap16(): Buffer;
|
|
350
349
|
swap32(): Buffer;
|
|
351
350
|
swap64(): Buffer;
|
|
352
351
|
toJSON(): unknown;
|
|
353
|
-
toString(encoding?: string, start?: int, end?:
|
|
354
|
-
write(str: string, offset?: int, length?:
|
|
352
|
+
toString(encoding?: string, start?: int, end?: Nullable<System_Internal.Int32>): string;
|
|
353
|
+
write(str: string, offset?: int, length?: Nullable<System_Internal.Int32>, encoding?: string): int;
|
|
355
354
|
writeBigInt64BE(value: long, offset?: int): int;
|
|
356
355
|
writeBigInt64LE(value: long, offset?: int): int;
|
|
357
356
|
writeBigUint64BE(value: ulong, offset?: int): int;
|
|
@@ -393,7 +392,7 @@ export const Buffer: {
|
|
|
393
392
|
allocUnsafeSlow(size: int): Buffer;
|
|
394
393
|
byteLength(str: string, encoding?: string): int;
|
|
395
394
|
compare(buf1: Buffer, buf2: Buffer): int;
|
|
396
|
-
concat(list: Buffer[], totalLength?:
|
|
395
|
+
concat(list: Buffer[], totalLength?: Nullable<System_Internal.Int32>): Buffer;
|
|
397
396
|
from(buffer: Buffer): Buffer;
|
|
398
397
|
from(array: byte[]): Buffer;
|
|
399
398
|
from(array: int[]): Buffer;
|
|
@@ -404,7 +403,7 @@ export const Buffer: {
|
|
|
404
403
|
};
|
|
405
404
|
|
|
406
405
|
|
|
407
|
-
export type Buffer = Buffer$instance;
|
|
406
|
+
export type Buffer = Buffer$instance & { [index: number]: byte; };
|
|
408
407
|
|
|
409
408
|
export interface BufferConstants$instance {
|
|
410
409
|
readonly __tsonic_type_nodejs_BufferConstants: never;
|
|
@@ -449,7 +448,7 @@ export interface ChildProcess$instance extends EventEmitter {
|
|
|
449
448
|
readonly __tsonic_type_nodejs_ChildProcess: never;
|
|
450
449
|
|
|
451
450
|
connected: boolean;
|
|
452
|
-
exitCode:
|
|
451
|
+
exitCode: Nullable<System_Internal.Int32>;
|
|
453
452
|
readonly killed: boolean;
|
|
454
453
|
readonly pid: int;
|
|
455
454
|
referenced: boolean;
|
|
@@ -519,9 +518,9 @@ export interface CommonConnectionOptions$instance {
|
|
|
519
518
|
|
|
520
519
|
get ALPNProtocols(): string[] | undefined;
|
|
521
520
|
set ALPNProtocols(value: string[] | undefined);
|
|
522
|
-
enableTrace:
|
|
523
|
-
rejectUnauthorized:
|
|
524
|
-
requestCert:
|
|
521
|
+
enableTrace: Nullable<System_Internal.Boolean>;
|
|
522
|
+
rejectUnauthorized: Nullable<System_Internal.Boolean>;
|
|
523
|
+
requestCert: Nullable<System_Internal.Boolean>;
|
|
525
524
|
get secureContext(): SecureContext | undefined;
|
|
526
525
|
set secureContext(value: SecureContext | undefined);
|
|
527
526
|
}
|
|
@@ -547,10 +546,10 @@ export interface ConnectionOptions$instance extends CommonConnectionOptions {
|
|
|
547
546
|
set key(value: unknown | undefined);
|
|
548
547
|
get passphrase(): string | undefined;
|
|
549
548
|
set passphrase(value: string | undefined);
|
|
550
|
-
port:
|
|
549
|
+
port: Nullable<System_Internal.Int32>;
|
|
551
550
|
get servername(): string | undefined;
|
|
552
551
|
set servername(value: string | undefined);
|
|
553
|
-
timeout:
|
|
552
|
+
timeout: Nullable<System_Internal.Int32>;
|
|
554
553
|
}
|
|
555
554
|
|
|
556
555
|
|
|
@@ -590,7 +589,7 @@ export interface ConsoleConstructor$instance {
|
|
|
590
589
|
|
|
591
590
|
|
|
592
591
|
export const ConsoleConstructor: {
|
|
593
|
-
new(stdout: unknown, stderr: unknown, ignoreErrors: boolean, colorMode: unknown, inspectOptions:
|
|
592
|
+
new(stdout: unknown, stderr: unknown, ignoreErrors: boolean, colorMode: unknown, inspectOptions: Nullable<System_Internal.Int32>, groupIndentation: boolean): ConsoleConstructor;
|
|
594
593
|
};
|
|
595
594
|
|
|
596
595
|
|
|
@@ -702,13 +701,13 @@ export interface DgramSocket$instance extends EventEmitter {
|
|
|
702
701
|
getSendQueueSize(): int;
|
|
703
702
|
ref(): DgramSocket;
|
|
704
703
|
remoteAddress(): AddressInfo;
|
|
705
|
-
send(msg: byte[], port?:
|
|
706
|
-
send(msg: string, port?:
|
|
704
|
+
send(msg: byte[], port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action_2<Exception, System_Internal.Int32>): void;
|
|
705
|
+
send(msg: string, port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action_2<Exception, System_Internal.Int32>): void;
|
|
707
706
|
send(msg: byte[], port: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
708
707
|
send(msg: string, port: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
709
708
|
send(msg: byte[], callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
710
709
|
send(msg: string, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
711
|
-
send(msg: byte[], offset: int, length: int, port?:
|
|
710
|
+
send(msg: byte[], offset: int, length: int, port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action_2<Exception, System_Internal.Int32>): void;
|
|
712
711
|
send(msg: byte[], offset: int, length: int, port: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
713
712
|
send(msg: byte[], offset: int, length: int, callback: Action_2<Exception, System_Internal.Int32>): void;
|
|
714
713
|
setBroadcast(flag: boolean): void;
|
|
@@ -806,7 +805,7 @@ export interface DSAPrivateKeyObject$instance extends KeyObject {
|
|
|
806
805
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
807
806
|
|
|
808
807
|
readonly asymmetricKeyType: string | undefined;
|
|
809
|
-
readonly symmetricKeySize:
|
|
808
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
810
809
|
readonly type: string;
|
|
811
810
|
Dispose(): void;
|
|
812
811
|
export(options?: unknown): unknown;
|
|
@@ -825,7 +824,7 @@ export interface DSAPublicKeyObject$instance extends KeyObject {
|
|
|
825
824
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
826
825
|
|
|
827
826
|
readonly asymmetricKeyType: string | undefined;
|
|
828
|
-
readonly symmetricKeySize:
|
|
827
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
829
828
|
readonly type: string;
|
|
830
829
|
Dispose(): void;
|
|
831
830
|
export(options?: unknown): unknown;
|
|
@@ -896,7 +895,7 @@ export interface EdDSAPrivateKeyObject$instance extends KeyObject {
|
|
|
896
895
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
897
896
|
|
|
898
897
|
readonly asymmetricKeyType: string | undefined;
|
|
899
|
-
readonly symmetricKeySize:
|
|
898
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
900
899
|
readonly type: string;
|
|
901
900
|
Dispose(): void;
|
|
902
901
|
export(options?: unknown): unknown;
|
|
@@ -915,7 +914,7 @@ export interface EdDSAPublicKeyObject$instance extends KeyObject {
|
|
|
915
914
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
916
915
|
|
|
917
916
|
readonly asymmetricKeyType: string | undefined;
|
|
918
|
-
readonly symmetricKeySize:
|
|
917
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
919
918
|
readonly type: string;
|
|
920
919
|
Dispose(): void;
|
|
921
920
|
export(options?: unknown): unknown;
|
|
@@ -987,7 +986,7 @@ export interface ExecOptions$instance {
|
|
|
987
986
|
set encoding(value: string | undefined);
|
|
988
987
|
get env(): unknown | undefined;
|
|
989
988
|
set env(value: unknown | undefined);
|
|
990
|
-
gid:
|
|
989
|
+
gid: Nullable<System_Internal.Int32>;
|
|
991
990
|
get input(): string | undefined;
|
|
992
991
|
set input(value: string | undefined);
|
|
993
992
|
get killSignal(): string | undefined;
|
|
@@ -998,7 +997,7 @@ export interface ExecOptions$instance {
|
|
|
998
997
|
get stdio(): string | undefined;
|
|
999
998
|
set stdio(value: string | undefined);
|
|
1000
999
|
timeout: int;
|
|
1001
|
-
uid:
|
|
1000
|
+
uid: Nullable<System_Internal.Int32>;
|
|
1002
1001
|
windowsHide: boolean;
|
|
1003
1002
|
windowsVerbatimArguments: boolean;
|
|
1004
1003
|
}
|
|
@@ -1022,8 +1021,8 @@ export interface FsPromises$instance {
|
|
|
1022
1021
|
cp(src: string, dest: string, recursive?: boolean): Task;
|
|
1023
1022
|
fstat(fd: int): Task_1<Stats>;
|
|
1024
1023
|
mkdir(path: string, recursive?: boolean): Task;
|
|
1025
|
-
open(path: string, flags: string, mode?:
|
|
1026
|
-
read(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
1024
|
+
open(path: string, flags: string, mode?: Nullable<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
1025
|
+
read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
1027
1026
|
readdir(path: string, withFileTypes?: boolean): Task_1<string[]>;
|
|
1028
1027
|
readFile(path: string, encoding?: string): Task_1<System_Internal.String>;
|
|
1029
1028
|
readFileBytes(path: string): Task_1<byte[]>;
|
|
@@ -1036,8 +1035,8 @@ export interface FsPromises$instance {
|
|
|
1036
1035
|
symlink(target: string, path: string, type?: string): Task;
|
|
1037
1036
|
truncate(path: string, len?: long): Task;
|
|
1038
1037
|
unlink(path: string): Task;
|
|
1039
|
-
write(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
1040
|
-
write(fd: int, data: string, position?:
|
|
1038
|
+
write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
1039
|
+
write(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): Task_1<System_Internal.Int32>;
|
|
1041
1040
|
writeFile(path: string, data: string, encoding?: string): Task;
|
|
1042
1041
|
writeFileBytes(path: string, data: byte[]): Task;
|
|
1043
1042
|
}
|
|
@@ -1133,19 +1132,19 @@ export type Interface = Interface$instance;
|
|
|
1133
1132
|
export interface InterfaceOptions$instance {
|
|
1134
1133
|
readonly __tsonic_type_nodejs_InterfaceOptions: never;
|
|
1135
1134
|
|
|
1136
|
-
escapeCodeTimeout:
|
|
1135
|
+
escapeCodeTimeout: Nullable<System_Internal.Int32>;
|
|
1137
1136
|
get history(): string[] | undefined;
|
|
1138
1137
|
set history(value: string[] | undefined);
|
|
1139
|
-
historySize:
|
|
1138
|
+
historySize: Nullable<System_Internal.Int32>;
|
|
1140
1139
|
get input(): Readable | undefined;
|
|
1141
1140
|
set input(value: Readable | undefined);
|
|
1142
1141
|
get output(): Writable | undefined;
|
|
1143
1142
|
set output(value: Writable | undefined);
|
|
1144
1143
|
get prompt(): string | undefined;
|
|
1145
1144
|
set prompt(value: string | undefined);
|
|
1146
|
-
removeHistoryDuplicates:
|
|
1147
|
-
tabSize:
|
|
1148
|
-
terminal:
|
|
1145
|
+
removeHistoryDuplicates: Nullable<System_Internal.Boolean>;
|
|
1146
|
+
tabSize: Nullable<System_Internal.Int32>;
|
|
1147
|
+
terminal: Nullable<System_Internal.Boolean>;
|
|
1149
1148
|
}
|
|
1150
1149
|
|
|
1151
1150
|
|
|
@@ -1176,7 +1175,7 @@ export interface KeyObject$instance {
|
|
|
1176
1175
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1177
1176
|
|
|
1178
1177
|
readonly asymmetricKeyType: string | undefined;
|
|
1179
|
-
readonly symmetricKeySize:
|
|
1178
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1180
1179
|
readonly type: string;
|
|
1181
1180
|
Dispose(): void;
|
|
1182
1181
|
export(options?: unknown): unknown;
|
|
@@ -1192,13 +1191,13 @@ export type KeyObject = KeyObject$instance;
|
|
|
1192
1191
|
export interface ListenOptions$instance {
|
|
1193
1192
|
readonly __tsonic_type_nodejs_ListenOptions: never;
|
|
1194
1193
|
|
|
1195
|
-
backlog:
|
|
1194
|
+
backlog: Nullable<System_Internal.Int32>;
|
|
1196
1195
|
get host(): string | undefined;
|
|
1197
1196
|
set host(value: string | undefined);
|
|
1198
|
-
ipv6Only:
|
|
1197
|
+
ipv6Only: Nullable<System_Internal.Boolean>;
|
|
1199
1198
|
get path(): string | undefined;
|
|
1200
1199
|
set path(value: string | undefined);
|
|
1201
|
-
port:
|
|
1200
|
+
port: Nullable<System_Internal.Int32>;
|
|
1202
1201
|
}
|
|
1203
1202
|
|
|
1204
1203
|
|
|
@@ -1227,13 +1226,13 @@ export type LookupAddress = LookupAddress$instance;
|
|
|
1227
1226
|
export interface LookupOptions$instance {
|
|
1228
1227
|
readonly __tsonic_type_nodejs_LookupOptions: never;
|
|
1229
1228
|
|
|
1230
|
-
all:
|
|
1229
|
+
all: Nullable<System_Internal.Boolean>;
|
|
1231
1230
|
get family(): unknown | undefined;
|
|
1232
1231
|
set family(value: unknown | undefined);
|
|
1233
|
-
hints:
|
|
1232
|
+
hints: Nullable<System_Internal.Int32>;
|
|
1234
1233
|
get order(): string | undefined;
|
|
1235
1234
|
set order(value: string | undefined);
|
|
1236
|
-
verbatim:
|
|
1235
|
+
verbatim: Nullable<System_Internal.Boolean>;
|
|
1237
1236
|
}
|
|
1238
1237
|
|
|
1239
1238
|
|
|
@@ -1264,7 +1263,7 @@ export interface MarkOptions$instance {
|
|
|
1264
1263
|
|
|
1265
1264
|
get detail(): unknown | undefined;
|
|
1266
1265
|
set detail(value: unknown | undefined);
|
|
1267
|
-
startTime:
|
|
1266
|
+
startTime: Nullable<System_Internal.Double>;
|
|
1268
1267
|
}
|
|
1269
1268
|
|
|
1270
1269
|
|
|
@@ -1280,10 +1279,10 @@ export interface MeasureOptions$instance {
|
|
|
1280
1279
|
|
|
1281
1280
|
get detail(): unknown | undefined;
|
|
1282
1281
|
set detail(value: unknown | undefined);
|
|
1283
|
-
end:
|
|
1282
|
+
end: Nullable<System_Internal.Double>;
|
|
1284
1283
|
get endMark(): string | undefined;
|
|
1285
1284
|
set endMark(value: string | undefined);
|
|
1286
|
-
start:
|
|
1285
|
+
start: Nullable<System_Internal.Double>;
|
|
1287
1286
|
get startMark(): string | undefined;
|
|
1288
1287
|
set startMark(value: string | undefined);
|
|
1289
1288
|
}
|
|
@@ -1519,7 +1518,7 @@ export interface PrivateKeyObject$instance extends KeyObject {
|
|
|
1519
1518
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1520
1519
|
|
|
1521
1520
|
readonly asymmetricKeyType: string | undefined;
|
|
1522
|
-
readonly symmetricKeySize:
|
|
1521
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1523
1522
|
readonly type: string;
|
|
1524
1523
|
Dispose(): void;
|
|
1525
1524
|
export(options?: unknown): unknown;
|
|
@@ -1543,18 +1542,17 @@ export interface ProcessEnv$instance {
|
|
|
1543
1542
|
|
|
1544
1543
|
readonly Count: int;
|
|
1545
1544
|
readonly IsReadOnly: boolean;
|
|
1546
|
-
|
|
1547
|
-
readonly
|
|
1548
|
-
readonly Values: ICollection_1<string | undefined>;
|
|
1545
|
+
readonly Keys: ICollection<System_Internal.String>;
|
|
1546
|
+
readonly Values: ICollection<string | undefined>;
|
|
1549
1547
|
Add(key: string, value: string): void;
|
|
1550
|
-
Add(item:
|
|
1548
|
+
Add(item: KeyValuePair<System_Internal.String, System_Internal.String>): void;
|
|
1551
1549
|
Clear(): void;
|
|
1552
|
-
Contains(item:
|
|
1550
|
+
Contains(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
|
|
1553
1551
|
ContainsKey(key: string): boolean;
|
|
1554
|
-
CopyTo(array:
|
|
1555
|
-
GetEnumerator():
|
|
1552
|
+
CopyTo(array: KeyValuePair<System_Internal.String, System_Internal.String>[], arrayIndex: int): void;
|
|
1553
|
+
GetEnumerator(): IEnumerator<KeyValuePair<System_Internal.String, System_Internal.String>>;
|
|
1556
1554
|
Remove(key: string): boolean;
|
|
1557
|
-
Remove(item:
|
|
1555
|
+
Remove(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
|
|
1558
1556
|
TryGetValue(key: string, value: string): boolean;
|
|
1559
1557
|
}
|
|
1560
1558
|
|
|
@@ -1564,7 +1562,7 @@ export const ProcessEnv: {
|
|
|
1564
1562
|
};
|
|
1565
1563
|
|
|
1566
1564
|
|
|
1567
|
-
export type ProcessEnv = ProcessEnv$instance;
|
|
1565
|
+
export type ProcessEnv = ProcessEnv$instance & { [key: string]: string | undefined; };
|
|
1568
1566
|
|
|
1569
1567
|
export interface ProcessVersions$instance {
|
|
1570
1568
|
readonly __tsonic_type_nodejs_ProcessVersions: never;
|
|
@@ -1589,7 +1587,7 @@ export interface PublicKeyObject$instance extends KeyObject {
|
|
|
1589
1587
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1590
1588
|
|
|
1591
1589
|
readonly asymmetricKeyType: string | undefined;
|
|
1592
|
-
readonly symmetricKeySize:
|
|
1590
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1593
1591
|
readonly type: string;
|
|
1594
1592
|
Dispose(): void;
|
|
1595
1593
|
export(options?: unknown): unknown;
|
|
@@ -1609,14 +1607,14 @@ export interface Readable$instance extends Stream {
|
|
|
1609
1607
|
destroyed: boolean;
|
|
1610
1608
|
readonly readable: boolean;
|
|
1611
1609
|
readonly readableEnded: boolean;
|
|
1612
|
-
readonly readableFlowing:
|
|
1610
|
+
readonly readableFlowing: Nullable<System_Internal.Boolean>;
|
|
1613
1611
|
readonly readableLength: int;
|
|
1614
1612
|
_read(size: int): void;
|
|
1615
1613
|
destroy(error?: Exception): void;
|
|
1616
1614
|
isPaused(): boolean;
|
|
1617
1615
|
pause(): Readable;
|
|
1618
1616
|
push(chunk: unknown, encoding?: string): boolean;
|
|
1619
|
-
read(size?:
|
|
1617
|
+
read(size?: Nullable<System_Internal.Int32>): unknown | undefined;
|
|
1620
1618
|
resume(): Readable;
|
|
1621
1619
|
setEncoding(encoding: string): Readable;
|
|
1622
1620
|
unpipe(destination?: Stream): Readable;
|
|
@@ -1732,9 +1730,9 @@ export type Resolver = Resolver$instance;
|
|
|
1732
1730
|
export interface ResolverOptions$instance {
|
|
1733
1731
|
readonly __tsonic_type_nodejs_ResolverOptions: never;
|
|
1734
1732
|
|
|
1735
|
-
maxTimeout:
|
|
1736
|
-
timeout:
|
|
1737
|
-
tries:
|
|
1733
|
+
maxTimeout: Nullable<System_Internal.Int32>;
|
|
1734
|
+
timeout: Nullable<System_Internal.Int32>;
|
|
1735
|
+
tries: Nullable<System_Internal.Int32>;
|
|
1738
1736
|
}
|
|
1739
1737
|
|
|
1740
1738
|
|
|
@@ -1751,7 +1749,7 @@ export interface SecretKeyObject$instance extends KeyObject {
|
|
|
1751
1749
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1752
1750
|
|
|
1753
1751
|
readonly asymmetricKeyType: string | undefined;
|
|
1754
|
-
readonly symmetricKeySize:
|
|
1752
|
+
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1755
1753
|
readonly type: string;
|
|
1756
1754
|
Dispose(): void;
|
|
1757
1755
|
export(options?: unknown): unknown;
|
|
@@ -1845,8 +1843,8 @@ export type Server = Server$instance;
|
|
|
1845
1843
|
export interface ServerOpts$instance {
|
|
1846
1844
|
readonly __tsonic_type_nodejs_ServerOpts: never;
|
|
1847
1845
|
|
|
1848
|
-
allowHalfOpen:
|
|
1849
|
-
pauseOnConnect:
|
|
1846
|
+
allowHalfOpen: Nullable<System_Internal.Boolean>;
|
|
1847
|
+
pauseOnConnect: Nullable<System_Internal.Boolean>;
|
|
1850
1848
|
}
|
|
1851
1849
|
|
|
1852
1850
|
|
|
@@ -1908,13 +1906,13 @@ export interface Socket$instance extends Stream {
|
|
|
1908
1906
|
set localAddress(value: string | undefined);
|
|
1909
1907
|
get localFamily(): string | undefined;
|
|
1910
1908
|
set localFamily(value: string | undefined);
|
|
1911
|
-
localPort:
|
|
1909
|
+
localPort: Nullable<System_Internal.Int32>;
|
|
1912
1910
|
readonly readyState: string;
|
|
1913
1911
|
get remoteAddress(): string | undefined;
|
|
1914
1912
|
set remoteAddress(value: string | undefined);
|
|
1915
1913
|
get remoteFamily(): string | undefined;
|
|
1916
1914
|
set remoteFamily(value: string | undefined);
|
|
1917
|
-
remotePort:
|
|
1915
|
+
remotePort: Nullable<System_Internal.Int32>;
|
|
1918
1916
|
address(): unknown;
|
|
1919
1917
|
connect(port: int, host?: string, connectionListener?: Action): Socket;
|
|
1920
1918
|
connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
|
|
@@ -1952,7 +1950,7 @@ export interface SocketAddress$instance {
|
|
|
1952
1950
|
|
|
1953
1951
|
address: string;
|
|
1954
1952
|
family: string;
|
|
1955
|
-
flowlabel:
|
|
1953
|
+
flowlabel: Nullable<System_Internal.Int32>;
|
|
1956
1954
|
port: int;
|
|
1957
1955
|
}
|
|
1958
1956
|
|
|
@@ -1971,8 +1969,8 @@ export interface SocketAddressInitOptions$instance {
|
|
|
1971
1969
|
set address(value: string | undefined);
|
|
1972
1970
|
get family(): string | undefined;
|
|
1973
1971
|
set family(value: string | undefined);
|
|
1974
|
-
flowlabel:
|
|
1975
|
-
port:
|
|
1972
|
+
flowlabel: Nullable<System_Internal.Int32>;
|
|
1973
|
+
port: Nullable<System_Internal.Int32>;
|
|
1976
1974
|
}
|
|
1977
1975
|
|
|
1978
1976
|
|
|
@@ -1986,10 +1984,10 @@ export type SocketAddressInitOptions = SocketAddressInitOptions$instance;
|
|
|
1986
1984
|
export interface SocketConstructorOpts$instance {
|
|
1987
1985
|
readonly __tsonic_type_nodejs_SocketConstructorOpts: never;
|
|
1988
1986
|
|
|
1989
|
-
allowHalfOpen:
|
|
1990
|
-
fd:
|
|
1991
|
-
readable:
|
|
1992
|
-
writable:
|
|
1987
|
+
allowHalfOpen: Nullable<System_Internal.Boolean>;
|
|
1988
|
+
fd: Nullable<System_Internal.Int32>;
|
|
1989
|
+
readable: Nullable<System_Internal.Boolean>;
|
|
1990
|
+
writable: Nullable<System_Internal.Boolean>;
|
|
1993
1991
|
}
|
|
1994
1992
|
|
|
1995
1993
|
|
|
@@ -2004,10 +2002,10 @@ export interface SocketOptions$instance {
|
|
|
2004
2002
|
readonly __tsonic_type_nodejs_SocketOptions: never;
|
|
2005
2003
|
|
|
2006
2004
|
ipv6Only: boolean;
|
|
2007
|
-
recvBufferSize:
|
|
2005
|
+
recvBufferSize: Nullable<System_Internal.Int32>;
|
|
2008
2006
|
reuseAddr: boolean;
|
|
2009
2007
|
reusePort: boolean;
|
|
2010
|
-
sendBufferSize:
|
|
2008
|
+
sendBufferSize: Nullable<System_Internal.Int32>;
|
|
2011
2009
|
type: string;
|
|
2012
2010
|
}
|
|
2013
2011
|
|
|
@@ -2028,7 +2026,7 @@ export interface SpawnSyncReturns_1$instance<T> {
|
|
|
2028
2026
|
pid: int;
|
|
2029
2027
|
get signal(): string | undefined;
|
|
2030
2028
|
set signal(value: string | undefined);
|
|
2031
|
-
status:
|
|
2029
|
+
status: Nullable<System_Internal.Int32>;
|
|
2032
2030
|
stderr: T;
|
|
2033
2031
|
stdout: T;
|
|
2034
2032
|
}
|
|
@@ -2134,16 +2132,16 @@ export type StringDecoder = StringDecoder$instance;
|
|
|
2134
2132
|
export interface TcpSocketConnectOpts$instance {
|
|
2135
2133
|
readonly __tsonic_type_nodejs_TcpSocketConnectOpts: never;
|
|
2136
2134
|
|
|
2137
|
-
family:
|
|
2138
|
-
hints:
|
|
2135
|
+
family: Nullable<System_Internal.Int32>;
|
|
2136
|
+
hints: Nullable<System_Internal.Int32>;
|
|
2139
2137
|
get host(): string | undefined;
|
|
2140
2138
|
set host(value: string | undefined);
|
|
2141
|
-
keepAlive:
|
|
2142
|
-
keepAliveInitialDelay:
|
|
2139
|
+
keepAlive: Nullable<System_Internal.Boolean>;
|
|
2140
|
+
keepAliveInitialDelay: Nullable<System_Internal.Int32>;
|
|
2143
2141
|
get localAddress(): string | undefined;
|
|
2144
2142
|
set localAddress(value: string | undefined);
|
|
2145
|
-
localPort:
|
|
2146
|
-
noDelay:
|
|
2143
|
+
localPort: Nullable<System_Internal.Int32>;
|
|
2144
|
+
noDelay: Nullable<System_Internal.Boolean>;
|
|
2147
2145
|
port: int;
|
|
2148
2146
|
}
|
|
2149
2147
|
|
|
@@ -2180,7 +2178,7 @@ export interface TimersPromises$instance {
|
|
|
2180
2178
|
|
|
2181
2179
|
readonly scheduler: TimersScheduler;
|
|
2182
2180
|
setImmediate(value?: unknown): Task_1<unknown | undefined>;
|
|
2183
|
-
setInterval(delay?: int, value?: unknown):
|
|
2181
|
+
setInterval(delay?: int, value?: unknown): IAsyncEnumerable<unknown | undefined>;
|
|
2184
2182
|
setTimeout(delay?: int, value?: unknown): Task_1<unknown | undefined>;
|
|
2185
2183
|
}
|
|
2186
2184
|
|
|
@@ -2246,18 +2244,18 @@ export type TLSCertificateInfo = TLSCertificateInfo$instance;
|
|
|
2246
2244
|
export interface TlsOptions$instance extends CommonConnectionOptions {
|
|
2247
2245
|
readonly __tsonic_type_nodejs_TlsOptions: never;
|
|
2248
2246
|
|
|
2249
|
-
allowHalfOpen:
|
|
2247
|
+
allowHalfOpen: Nullable<System_Internal.Boolean>;
|
|
2250
2248
|
get ca(): unknown | undefined;
|
|
2251
2249
|
set ca(value: unknown | undefined);
|
|
2252
2250
|
get cert(): unknown | undefined;
|
|
2253
2251
|
set cert(value: unknown | undefined);
|
|
2254
|
-
handshakeTimeout:
|
|
2252
|
+
handshakeTimeout: Nullable<System_Internal.Int32>;
|
|
2255
2253
|
get key(): unknown | undefined;
|
|
2256
2254
|
set key(value: unknown | undefined);
|
|
2257
2255
|
get passphrase(): string | undefined;
|
|
2258
2256
|
set passphrase(value: string | undefined);
|
|
2259
|
-
pauseOnConnect:
|
|
2260
|
-
sessionTimeout:
|
|
2257
|
+
pauseOnConnect: Nullable<System_Internal.Boolean>;
|
|
2258
|
+
sessionTimeout: Nullable<System_Internal.Int32>;
|
|
2261
2259
|
}
|
|
2262
2260
|
|
|
2263
2261
|
|
|
@@ -2334,7 +2332,7 @@ export interface TLSSocketOptions$instance extends CommonConnectionOptions {
|
|
|
2334
2332
|
set ca(value: unknown | undefined);
|
|
2335
2333
|
get cert(): unknown | undefined;
|
|
2336
2334
|
set cert(value: unknown | undefined);
|
|
2337
|
-
isServer:
|
|
2335
|
+
isServer: Nullable<System_Internal.Boolean>;
|
|
2338
2336
|
get key(): unknown | undefined;
|
|
2339
2337
|
set key(value: unknown | undefined);
|
|
2340
2338
|
get passphrase(): string | undefined;
|
|
@@ -2401,7 +2399,7 @@ export type URL = URL$instance;
|
|
|
2401
2399
|
export interface URLPattern$instance {
|
|
2402
2400
|
readonly __tsonic_type_nodejs_URLPattern: never;
|
|
2403
2401
|
|
|
2404
|
-
exec(input: string):
|
|
2402
|
+
exec(input: string): Dictionary<System_Internal.String, System_Internal.String> | undefined;
|
|
2405
2403
|
test(input: string): boolean;
|
|
2406
2404
|
}
|
|
2407
2405
|
|
|
@@ -2419,16 +2417,16 @@ export interface URLSearchParams$instance {
|
|
|
2419
2417
|
readonly size: int;
|
|
2420
2418
|
append(name: string, value: string): void;
|
|
2421
2419
|
delete(name: string, value?: string): void;
|
|
2422
|
-
entries():
|
|
2420
|
+
entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
|
|
2423
2421
|
forEach(callback: Action_2<System_Internal.String, System_Internal.String>): void;
|
|
2424
2422
|
get(name: string): string | undefined;
|
|
2425
2423
|
getAll(name: string): string[];
|
|
2426
2424
|
has(name: string, value?: string): boolean;
|
|
2427
|
-
keys():
|
|
2425
|
+
keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
|
|
2428
2426
|
set(name: string, value: string): void;
|
|
2429
2427
|
sort(): void;
|
|
2430
2428
|
ToString(): string;
|
|
2431
|
-
values():
|
|
2429
|
+
values(): IEnumerable__System_Collections_Generic<System_Internal.String>;
|
|
2432
2430
|
}
|
|
2433
2431
|
|
|
2434
2432
|
|
|
@@ -2535,12 +2533,12 @@ export type X509CertificateInfo = X509CertificateInfo$instance;
|
|
|
2535
2533
|
export interface ZlibOptions$instance {
|
|
2536
2534
|
readonly __tsonic_type_nodejs_ZlibOptions: never;
|
|
2537
2535
|
|
|
2538
|
-
chunkSize:
|
|
2539
|
-
level:
|
|
2540
|
-
maxOutputLength:
|
|
2541
|
-
memLevel:
|
|
2542
|
-
strategy:
|
|
2543
|
-
windowBits:
|
|
2536
|
+
chunkSize: Nullable<System_Internal.Int32>;
|
|
2537
|
+
level: Nullable<System_Internal.Int32>;
|
|
2538
|
+
maxOutputLength: Nullable<System_Internal.Int32>;
|
|
2539
|
+
memLevel: Nullable<System_Internal.Int32>;
|
|
2540
|
+
strategy: Nullable<System_Internal.Int32>;
|
|
2541
|
+
windowBits: Nullable<System_Internal.Int32>;
|
|
2544
2542
|
}
|
|
2545
2543
|
|
|
2546
2544
|
|
|
@@ -2555,7 +2553,7 @@ export abstract class assert$instance {
|
|
|
2555
2553
|
static deepEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2556
2554
|
static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2557
2555
|
static doesNotMatch(string: string, regexp: Regex, message?: string): void;
|
|
2558
|
-
static doesNotReject(fn:
|
|
2556
|
+
static doesNotReject(fn: Func<Task>, message?: string): Task;
|
|
2559
2557
|
static doesNotThrow(fn: Action, message?: string): void;
|
|
2560
2558
|
static equal(actual: unknown, expected: unknown, message?: string): void;
|
|
2561
2559
|
static fail(message?: string): void;
|
|
@@ -2566,7 +2564,7 @@ export abstract class assert$instance {
|
|
|
2566
2564
|
static notEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2567
2565
|
static notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2568
2566
|
static ok(value: boolean, message?: string): void;
|
|
2569
|
-
static rejects(fn:
|
|
2567
|
+
static rejects(fn: Func<Task>, message?: string): Task;
|
|
2570
2568
|
static strict(actual: unknown, expected: unknown, message?: string): void;
|
|
2571
2569
|
static strictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2572
2570
|
static throws(fn: Action, message?: string): void;
|
|
@@ -2677,7 +2675,7 @@ export abstract class crypto$instance {
|
|
|
2677
2675
|
static generateKey(type: string, options: unknown, callback: Action_2<Exception, KeyObject>): void;
|
|
2678
2676
|
static generateKey(type: string, options: unknown): KeyObject;
|
|
2679
2677
|
static generateKeyPair(type: string, options: unknown, callback: Action_3<Exception, unknown, unknown>): void;
|
|
2680
|
-
static generateKeyPairSync(type: string, options?: unknown):
|
|
2678
|
+
static generateKeyPairSync(type: string, options?: unknown): ValueTuple<KeyObject, KeyObject>;
|
|
2681
2679
|
static getCiphers(): string[];
|
|
2682
2680
|
static getCurves(): string[];
|
|
2683
2681
|
static getDefaultCipherList(): string;
|
|
@@ -2701,7 +2699,7 @@ export abstract class crypto$instance {
|
|
|
2701
2699
|
static randomBytes(size: int, callback: Action_2<Exception, byte[]>): void;
|
|
2702
2700
|
static randomBytes(size: int): byte[];
|
|
2703
2701
|
static randomFill(buffer: byte[], offset: int, size: int, callback: Action_2<Exception, byte[]>): void;
|
|
2704
|
-
static randomFillSync(buffer: byte[], offset?: int, size?:
|
|
2702
|
+
static randomFillSync(buffer: byte[], offset?: int, size?: Nullable<System_Internal.Int32>): byte[];
|
|
2705
2703
|
static randomInt(min: int, max: int): int;
|
|
2706
2704
|
static randomInt(max: int): int;
|
|
2707
2705
|
static randomUUID(): string;
|
|
@@ -2798,7 +2796,7 @@ export abstract class events$instance {
|
|
|
2798
2796
|
static getEventListeners(emitter: EventEmitter, eventName: string): Function[];
|
|
2799
2797
|
static getMaxListeners(emitter: EventEmitter): int;
|
|
2800
2798
|
static listenerCount(emitter: EventEmitter, eventName: string): int;
|
|
2801
|
-
static on(emitter: EventEmitter, eventName: string):
|
|
2799
|
+
static on(emitter: EventEmitter, eventName: string): IAsyncEnumerable<(unknown | undefined)[]>;
|
|
2802
2800
|
static once(emitter: EventEmitter, eventName: string): Task_1<(unknown | undefined)[]>;
|
|
2803
2801
|
static setMaxListeners(n: int, ...emitters: EventEmitter[]): void;
|
|
2804
2802
|
}
|
|
@@ -2825,9 +2823,9 @@ export abstract class fs$instance {
|
|
|
2825
2823
|
static fstatSync(fd: int): Stats;
|
|
2826
2824
|
static mkdir(path: string, recursive?: boolean): Task;
|
|
2827
2825
|
static mkdirSync(path: string, recursive?: boolean): void;
|
|
2828
|
-
static open(path: string, flags: string, mode?:
|
|
2829
|
-
static openSync(path: string, flags: string, mode?:
|
|
2830
|
-
static read(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2826
|
+
static open(path: string, flags: string, mode?: Nullable<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2827
|
+
static openSync(path: string, flags: string, mode?: Nullable<System_Internal.Int32>): int;
|
|
2828
|
+
static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2831
2829
|
static readdir(path: string, withFileTypes?: boolean): Task_1<string[]>;
|
|
2832
2830
|
static readdirSync(path: string, withFileTypes?: boolean): string[];
|
|
2833
2831
|
static readFile(path: string, encoding?: string): Task_1<System_Internal.String>;
|
|
@@ -2836,7 +2834,7 @@ export abstract class fs$instance {
|
|
|
2836
2834
|
static readFileSyncBytes(path: string): byte[];
|
|
2837
2835
|
static readlink(path: string): Task_1<System_Internal.String>;
|
|
2838
2836
|
static readlinkSync(path: string): string;
|
|
2839
|
-
static readSync(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2837
|
+
static readSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): int;
|
|
2840
2838
|
static realpath(path: string): Task_1<System_Internal.String>;
|
|
2841
2839
|
static realpathSync(path: string): string;
|
|
2842
2840
|
static rename(oldPath: string, newPath: string): Task;
|
|
@@ -2853,14 +2851,14 @@ export abstract class fs$instance {
|
|
|
2853
2851
|
static truncateSync(path: string, len?: long): void;
|
|
2854
2852
|
static unlink(path: string): Task;
|
|
2855
2853
|
static unlinkSync(path: string): void;
|
|
2856
|
-
static write(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2857
|
-
static write(fd: int, data: string, position?:
|
|
2854
|
+
static write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2855
|
+
static write(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): Task_1<System_Internal.Int32>;
|
|
2858
2856
|
static writeFile(path: string, data: string, encoding?: string): Task;
|
|
2859
2857
|
static writeFileBytes(path: string, data: byte[]): Task;
|
|
2860
2858
|
static writeFileSync(path: string, data: string, encoding?: string): void;
|
|
2861
2859
|
static writeFileSyncBytes(path: string, data: byte[]): void;
|
|
2862
|
-
static writeSync(fd: int, buffer: byte[], offset: int, length: int, position:
|
|
2863
|
-
static writeSync(fd: int, data: string, position?:
|
|
2860
|
+
static writeSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): int;
|
|
2861
|
+
static writeSync(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): int;
|
|
2864
2862
|
}
|
|
2865
2863
|
|
|
2866
2864
|
|
|
@@ -2954,7 +2952,7 @@ export abstract class process$instance {
|
|
|
2954
2952
|
static argv0: string;
|
|
2955
2953
|
static readonly env: ProcessEnv;
|
|
2956
2954
|
static readonly execPath: string;
|
|
2957
|
-
static exitCode:
|
|
2955
|
+
static exitCode: Nullable<System_Internal.Int32>;
|
|
2958
2956
|
static readonly pid: int;
|
|
2959
2957
|
static readonly ppid: int;
|
|
2960
2958
|
static readonly platform: string;
|
|
@@ -2962,7 +2960,7 @@ export abstract class process$instance {
|
|
|
2962
2960
|
static readonly versions: ProcessVersions;
|
|
2963
2961
|
static chdir(directory: string): void;
|
|
2964
2962
|
static cwd(): string;
|
|
2965
|
-
static exit(code?:
|
|
2963
|
+
static exit(code?: Nullable<System_Internal.Int32>): void;
|
|
2966
2964
|
static kill(pid: int, signal?: unknown): boolean;
|
|
2967
2965
|
}
|
|
2968
2966
|
|
|
@@ -2970,11 +2968,11 @@ export abstract class process$instance {
|
|
|
2970
2968
|
export type process = process$instance;
|
|
2971
2969
|
|
|
2972
2970
|
export abstract class querystring$instance {
|
|
2973
|
-
static decode(str: string, sep?: string, eq?: string, maxKeys?: int):
|
|
2974
|
-
static encode(obj:
|
|
2971
|
+
static decode(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
|
|
2972
|
+
static encode(obj: Dictionary<System_Internal.String, unknown>, sep?: string, eq?: string): string;
|
|
2975
2973
|
static escape(str: string): string;
|
|
2976
|
-
static parse(str: string, sep?: string, eq?: string, maxKeys?: int):
|
|
2977
|
-
static stringify(obj:
|
|
2974
|
+
static parse(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
|
|
2975
|
+
static stringify(obj: Dictionary<System_Internal.String, unknown>, sep?: string, eq?: string): string;
|
|
2978
2976
|
static unescape(str: string): string;
|
|
2979
2977
|
}
|
|
2980
2978
|
|
|
@@ -2985,10 +2983,10 @@ export abstract class readline$instance {
|
|
|
2985
2983
|
static readonly promises: ReadlinePromises;
|
|
2986
2984
|
static clearLine(stream: Writable, dir: int, callback?: Action): boolean;
|
|
2987
2985
|
static clearScreenDown(stream: Writable, callback?: Action): boolean;
|
|
2988
|
-
static createAsyncIterator(input: Readable, options?: InterfaceOptions):
|
|
2986
|
+
static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable<System_Internal.String>;
|
|
2989
2987
|
static createInterface(options: InterfaceOptions): Interface;
|
|
2990
2988
|
static createInterface(input: Readable, output?: Writable): Interface;
|
|
2991
|
-
static cursorTo(stream: Writable, x: int, y?:
|
|
2989
|
+
static cursorTo(stream: Writable, x: int, y?: Nullable<System_Internal.Int32>, callback?: Action): boolean;
|
|
2992
2990
|
static emitKeypressEvents(stream: Readable, rl?: Interface): void;
|
|
2993
2991
|
static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action): boolean;
|
|
2994
2992
|
}
|
|
@@ -3054,7 +3052,7 @@ export abstract class url$instance {
|
|
|
3054
3052
|
static parse(input: string): URL | undefined;
|
|
3055
3053
|
static pathToFileURL(filePath: string): URL;
|
|
3056
3054
|
static resolve(from: string, to: string): string;
|
|
3057
|
-
static urlToHttpOptions(input: URL):
|
|
3055
|
+
static urlToHttpOptions(input: URL): Dictionary<System_Internal.String, unknown | undefined>;
|
|
3058
3056
|
}
|
|
3059
3057
|
|
|
3060
3058
|
|
|
@@ -3062,7 +3060,7 @@ export type url = url$instance;
|
|
|
3062
3060
|
|
|
3063
3061
|
export abstract class util$instance {
|
|
3064
3062
|
static debuglog(section: string): DebugLogFunction;
|
|
3065
|
-
static deprecate<TResult>(fn:
|
|
3063
|
+
static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string): Func<TResult>;
|
|
3066
3064
|
static deprecate(action: Action, msg: string, code?: string): Action;
|
|
3067
3065
|
static format(format: unknown, ...args: unknown[]): string;
|
|
3068
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 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
11
|
+
import type { Dictionary_2 as Dictionary } 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, Object as ClrObject, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
+
import type { Action, Action_1, Action_2, Boolean as ClrBoolean, Delegate, Exception, Int32, Nullable_1 as Nullable, 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<System_Internal.String, System_Internal.String>;
|
|
64
64
|
readonly httpVersion: string;
|
|
65
65
|
readonly method: string | undefined;
|
|
66
|
-
readonly statusCode:
|
|
66
|
+
readonly statusCode: Nullable<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<System_Internal.String, System_Internal.String> | undefined;
|
|
92
|
+
set headers(value: Dictionary<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<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<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<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<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
155
|
+
writeHead(statusCode: int, headers: Dictionary<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<System_Internal.Int32>;
|
|
182
182
|
static globalAgent_maxFreeSockets: int;
|
|
183
183
|
static globalAgent_timeout: int;
|
|
184
184
|
static maxHeaderSize: int;
|
package/package.json
CHANGED
|
Binary file
|