@tsonic/nodejs 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16402,7 +16402,13 @@
16402
16402
  "parameterCount": 2,
16403
16403
  "declaringClrType": "nodejs.ProcessEnv",
16404
16404
  "declaringAssemblyName": "nodejs",
16405
- "isExtensionMethod": false
16405
+ "isExtensionMethod": false,
16406
+ "parameterModifiers": [
16407
+ {
16408
+ "index": 1,
16409
+ "modifier": "out"
16410
+ }
16411
+ ]
16406
16412
  },
16407
16413
  {
16408
16414
  "stableId": "nodejs:nodejs.ProcessEnv::Add(System.Collections.Generic.KeyValuePair_2[[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e],[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e]]):System.Void",
@@ -6,7 +6,7 @@
6
6
  import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
7
7
 
8
8
  // Import support types from @tsonic/types
9
- import type { ptr, ref } from "@tsonic/types";
9
+ import type { ptr } from "@tsonic/types";
10
10
 
11
11
  // Import types from other namespaces
12
12
  import * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic.js";
@@ -22,31 +22,6 @@ import type { X509Certificate2, X509Certificate2Collection } from "@tsonic/dotne
22
22
  import type { Regex } from "@tsonic/dotnet/System.Text.RegularExpressions.js";
23
23
  import type { Task } from "@tsonic/dotnet/System.Threading.Tasks.js";
24
24
 
25
- // CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints
26
- // This utility is used ONLY in generic type arguments to satisfy CLR interface constraints
27
- // Value positions (parameters, return types) use lowercase primitives for ergonomics
28
- export type CLROf<T> =
29
- T extends sbyte ? System_Internal.SByte :
30
- T extends short ? System_Internal.Int16 :
31
- T extends int ? System_Internal.Int32 :
32
- T extends long ? System_Internal.Int64 :
33
- T extends int128 ? System_Internal.Int128 :
34
- T extends nint ? System_Internal.IntPtr :
35
- T extends byte ? System_Internal.Byte :
36
- T extends ushort ? System_Internal.UInt16 :
37
- T extends uint ? System_Internal.UInt32 :
38
- T extends ulong ? System_Internal.UInt64 :
39
- T extends uint128 ? System_Internal.UInt128 :
40
- T extends nuint ? System_Internal.UIntPtr :
41
- T extends half ? System_Internal.Half :
42
- T extends float ? System_Internal.Single :
43
- T extends double ? System_Internal.Double :
44
- T extends decimal ? System_Internal.Decimal :
45
- T extends char ? System_Internal.Char :
46
- T extends boolean ? System_Internal.Boolean :
47
- T extends string ? System_Internal.String :
48
- T; // Identity fallback for non-primitive types
49
-
50
25
  export type DebugLogFunction = (message: string, args: unknown[]) => void;
51
26
 
52
27
 
@@ -242,8 +217,8 @@ export type AssertionError = AssertionError$instance;
242
217
  export interface BindOptions$instance {
243
218
  address: string;
244
219
  exclusive: boolean;
245
- fd: Nullable<CLROf<int>>;
246
- port: Nullable<CLROf<int>>;
220
+ fd: Nullable<System_Internal.Int32>;
221
+ port: Nullable<System_Internal.Int32>;
247
222
  }
248
223
 
249
224
 
@@ -271,9 +246,9 @@ export const BlockList: {
271
246
  export type BlockList = BlockList$instance;
272
247
 
273
248
  export interface BrotliOptions$instance {
274
- chunkSize: Nullable<CLROf<int>>;
275
- maxOutputLength: Nullable<CLROf<int>>;
276
- quality: Nullable<CLROf<int>>;
249
+ chunkSize: Nullable<System_Internal.Int32>;
250
+ maxOutputLength: Nullable<System_Internal.Int32>;
251
+ quality: Nullable<System_Internal.Int32>;
277
252
  }
278
253
 
279
254
 
@@ -287,13 +262,13 @@ export type BrotliOptions = BrotliOptions$instance;
287
262
  export interface Buffer$instance {
288
263
  item: byte;
289
264
  readonly length: int;
290
- compare(target: Buffer, targetStart?: Nullable<CLROf<int>>, targetEnd?: Nullable<CLROf<int>>, sourceStart?: Nullable<CLROf<int>>, sourceEnd?: Nullable<CLROf<int>>): int;
291
- copy(target: Buffer, targetStart?: int, sourceStart?: Nullable<CLROf<int>>, sourceEnd?: Nullable<CLROf<int>>): int;
265
+ compare(target: Buffer, targetStart?: Nullable<System_Internal.Int32>, targetEnd?: Nullable<System_Internal.Int32>, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
266
+ copy(target: Buffer, targetStart?: int, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
292
267
  equals(otherBuffer: Buffer): boolean;
293
- fill(value: unknown, offset?: int, end?: Nullable<CLROf<int>>, encoding?: string): Buffer;
268
+ fill(value: unknown, offset?: int, end?: Nullable<System_Internal.Int32>, encoding?: string): Buffer;
294
269
  includes(value: unknown, byteOffset?: int, encoding?: string): boolean;
295
270
  indexOf(value: unknown, byteOffset?: int, encoding?: string): int;
296
- lastIndexOf(value: unknown, byteOffset?: Nullable<CLROf<int>>, encoding?: string): int;
271
+ lastIndexOf(value: unknown, byteOffset?: Nullable<System_Internal.Int32>, encoding?: string): int;
297
272
  readBigInt64BE(offset?: int): long;
298
273
  readBigInt64LE(offset?: int): long;
299
274
  readBigUint64BE(offset?: int): ulong;
@@ -326,14 +301,14 @@ export interface Buffer$instance {
326
301
  readUintLE(offset: int, byteLength: int): ulong;
327
302
  readUIntLE(offset: int, byteLength: int): ulong;
328
303
  reverse(): Buffer;
329
- slice(start?: Nullable<CLROf<int>>, end?: Nullable<CLROf<int>>): Buffer;
330
- subarray(start?: Nullable<CLROf<int>>, end?: Nullable<CLROf<int>>): Buffer;
304
+ slice(start?: Nullable<System_Internal.Int32>, end?: Nullable<System_Internal.Int32>): Buffer;
305
+ subarray(start?: Nullable<System_Internal.Int32>, end?: Nullable<System_Internal.Int32>): Buffer;
331
306
  swap16(): Buffer;
332
307
  swap32(): Buffer;
333
308
  swap64(): Buffer;
334
309
  toJSON(): unknown;
335
- toString(encoding?: string, start?: int, end?: Nullable<CLROf<int>>): string;
336
- write(str: string, offset?: int, length?: Nullable<CLROf<int>>, encoding?: string): int;
310
+ toString(encoding?: string, start?: int, end?: Nullable<System_Internal.Int32>): string;
311
+ write(str: string, offset?: int, length?: Nullable<System_Internal.Int32>, encoding?: string): int;
337
312
  writeBigInt64BE(value: long, offset?: int): int;
338
313
  writeBigInt64LE(value: long, offset?: int): int;
339
314
  writeBigUint64BE(value: ulong, offset?: int): int;
@@ -376,7 +351,7 @@ export const Buffer: {
376
351
  allocUnsafeSlow(size: int): Buffer;
377
352
  byteLength(str: string, encoding?: string): int;
378
353
  compare(buf1: Buffer, buf2: Buffer): int;
379
- concat(list: Buffer[], totalLength?: Nullable<CLROf<int>>): Buffer;
354
+ concat(list: Buffer[], totalLength?: Nullable<System_Internal.Int32>): Buffer;
380
355
  from_(buffer: Buffer): Buffer;
381
356
  from_(array: byte[]): Buffer;
382
357
  from_(array: int[]): Buffer;
@@ -408,7 +383,7 @@ export type CaaRecord = CaaRecord$instance;
408
383
 
409
384
  export interface ChildProcess$instance extends EventEmitter {
410
385
  readonly connected: boolean;
411
- readonly exitCode: Nullable<CLROf<int>>;
386
+ readonly exitCode: Nullable<System_Internal.Int32>;
412
387
  readonly killed: boolean;
413
388
  readonly pid: int;
414
389
  readonly referenced: boolean;
@@ -468,9 +443,9 @@ export type CipherNameAndProtocol = CipherNameAndProtocol$instance;
468
443
 
469
444
  export interface CommonConnectionOptions$instance {
470
445
  alpnProtocols: string[];
471
- enableTrace: Nullable<CLROf<boolean>>;
472
- rejectUnauthorized: Nullable<CLROf<boolean>>;
473
- requestCert: Nullable<CLROf<boolean>>;
446
+ enableTrace: Nullable<System_Internal.Boolean>;
447
+ rejectUnauthorized: Nullable<System_Internal.Boolean>;
448
+ requestCert: Nullable<System_Internal.Boolean>;
474
449
  secureContext: SecureContext;
475
450
  }
476
451
 
@@ -488,9 +463,9 @@ export interface ConnectionOptions$instance extends CommonConnectionOptions {
488
463
  host: string;
489
464
  key: unknown;
490
465
  passphrase: string;
491
- port: Nullable<CLROf<int>>;
466
+ port: Nullable<System_Internal.Int32>;
492
467
  servername: string;
493
- timeout: Nullable<CLROf<int>>;
468
+ timeout: Nullable<System_Internal.Int32>;
494
469
  }
495
470
 
496
471
 
@@ -594,15 +569,15 @@ export interface DgramSocket$instance extends EventEmitter {
594
569
  getSendQueueSize(): int;
595
570
  ref(): DgramSocket;
596
571
  remoteAddress(): AddressInfo;
597
- send(msg: byte[], port?: Nullable<CLROf<int>>, address?: string, callback?: Action<Exception, CLROf<int>>): void;
598
- send(msg: string, port?: Nullable<CLROf<int>>, address?: string, callback?: Action<Exception, CLROf<int>>): void;
599
- send(msg: byte[], port: int, callback: Action<Exception, CLROf<int>>): void;
600
- send(msg: string, port: int, callback: Action<Exception, CLROf<int>>): void;
601
- send(msg: byte[], callback: Action<Exception, CLROf<int>>): void;
602
- send(msg: string, callback: Action<Exception, CLROf<int>>): void;
603
- send(msg: byte[], offset: int, length: int, port?: Nullable<CLROf<int>>, address?: string, callback?: Action<Exception, CLROf<int>>): void;
604
- send(msg: byte[], offset: int, length: int, port: int, callback: Action<Exception, CLROf<int>>): void;
605
- send(msg: byte[], offset: int, length: int, callback: Action<Exception, CLROf<int>>): void;
572
+ send(msg: byte[], port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action<Exception, System_Internal.Int32>): void;
573
+ send(msg: string, port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action<Exception, System_Internal.Int32>): void;
574
+ send(msg: byte[], port: int, callback: Action<Exception, System_Internal.Int32>): void;
575
+ send(msg: string, port: int, callback: Action<Exception, System_Internal.Int32>): void;
576
+ send(msg: byte[], callback: Action<Exception, System_Internal.Int32>): void;
577
+ send(msg: string, callback: Action<Exception, System_Internal.Int32>): void;
578
+ send(msg: byte[], offset: int, length: int, port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action<Exception, System_Internal.Int32>): void;
579
+ send(msg: byte[], offset: int, length: int, port: int, callback: Action<Exception, System_Internal.Int32>): void;
580
+ send(msg: byte[], offset: int, length: int, callback: Action<Exception, System_Internal.Int32>): void;
606
581
  setBroadcast(flag: boolean): void;
607
582
  setMulticastInterface(multicastInterface: string): void;
608
583
  setMulticastLoopback(flag: boolean): boolean;
@@ -653,7 +628,7 @@ export type DiffieHellman = DiffieHellman$instance;
653
628
 
654
629
  export interface DSAPrivateKeyObject$instance extends KeyObject {
655
630
  readonly asymmetricKeyType: string;
656
- readonly symmetricKeySize: Nullable<CLROf<int>>;
631
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
657
632
  readonly type_: string;
658
633
  dispose(): void;
659
634
  export_(options?: unknown): unknown;
@@ -669,7 +644,7 @@ export type DSAPrivateKeyObject = DSAPrivateKeyObject$instance;
669
644
 
670
645
  export interface DSAPublicKeyObject$instance extends KeyObject {
671
646
  readonly asymmetricKeyType: string;
672
- readonly symmetricKeySize: Nullable<CLROf<int>>;
647
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
673
648
  readonly type_: string;
674
649
  dispose(): void;
675
650
  export_(options?: unknown): unknown;
@@ -730,7 +705,7 @@ export type ECDH = ECDH$instance;
730
705
 
731
706
  export interface EdDSAPrivateKeyObject$instance extends KeyObject {
732
707
  readonly asymmetricKeyType: string;
733
- readonly symmetricKeySize: Nullable<CLROf<int>>;
708
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
734
709
  readonly type_: string;
735
710
  dispose(): void;
736
711
  export_(options?: unknown): unknown;
@@ -746,7 +721,7 @@ export type EdDSAPrivateKeyObject = EdDSAPrivateKeyObject$instance;
746
721
 
747
722
  export interface EdDSAPublicKeyObject$instance extends KeyObject {
748
723
  readonly asymmetricKeyType: string;
749
- readonly symmetricKeySize: Nullable<CLROf<int>>;
724
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
750
725
  readonly type_: string;
751
726
  dispose(): void;
752
727
  export_(options?: unknown): unknown;
@@ -808,14 +783,14 @@ export interface ExecOptions$instance {
808
783
  detached: boolean;
809
784
  encoding: string;
810
785
  env: unknown;
811
- gid: Nullable<CLROf<int>>;
786
+ gid: Nullable<System_Internal.Int32>;
812
787
  input: string;
813
788
  killSignal: string;
814
789
  maxBuffer: int;
815
790
  shell: string;
816
791
  stdio: string;
817
792
  timeout: int;
818
- uid: Nullable<CLROf<int>>;
793
+ uid: Nullable<System_Internal.Int32>;
819
794
  windowsHide: boolean;
820
795
  windowsVerbatimArguments: boolean;
821
796
  }
@@ -885,8 +860,8 @@ export interface Interface$instance extends EventEmitter {
885
860
  getPrompt(): string;
886
861
  pause(): Interface;
887
862
  prompt(preserveCursor?: boolean): void;
888
- question(query: string, callback: Action<CLROf<string>>): void;
889
- questionAsync(query: string): Task<CLROf<string>>;
863
+ question(query: string, callback: Action<System_Internal.String>): void;
864
+ questionAsync(query: string): Task<System_Internal.String>;
890
865
  resume(): Interface;
891
866
  setPrompt(prompt: string): void;
892
867
  write(data: unknown, key?: unknown): void;
@@ -901,15 +876,15 @@ export const Interface: {
901
876
  export type Interface = Interface$instance;
902
877
 
903
878
  export interface InterfaceOptions$instance {
904
- escapeCodeTimeout: Nullable<CLROf<int>>;
879
+ escapeCodeTimeout: Nullable<System_Internal.Int32>;
905
880
  history: string[];
906
- historySize: Nullable<CLROf<int>>;
881
+ historySize: Nullable<System_Internal.Int32>;
907
882
  input: Readable;
908
883
  output: Writable;
909
884
  prompt: string;
910
- removeHistoryDuplicates: Nullable<CLROf<boolean>>;
911
- tabSize: Nullable<CLROf<int>>;
912
- terminal: Nullable<CLROf<boolean>>;
885
+ removeHistoryDuplicates: Nullable<System_Internal.Boolean>;
886
+ tabSize: Nullable<System_Internal.Int32>;
887
+ terminal: Nullable<System_Internal.Boolean>;
913
888
  }
914
889
 
915
890
 
@@ -934,7 +909,7 @@ export type IpcSocketConnectOpts = IpcSocketConnectOpts$instance;
934
909
 
935
910
  export interface KeyObject$instance {
936
911
  readonly asymmetricKeyType: string;
937
- readonly symmetricKeySize: Nullable<CLROf<int>>;
912
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
938
913
  readonly type_: string;
939
914
  dispose(): void;
940
915
  export_(options?: unknown): unknown;
@@ -948,11 +923,11 @@ export const KeyObject: {
948
923
  export type KeyObject = KeyObject$instance;
949
924
 
950
925
  export interface ListenOptions$instance {
951
- backlog: Nullable<CLROf<int>>;
926
+ backlog: Nullable<System_Internal.Int32>;
952
927
  host: string;
953
- ipv6Only: Nullable<CLROf<boolean>>;
928
+ ipv6Only: Nullable<System_Internal.Boolean>;
954
929
  path: string;
955
- port: Nullable<CLROf<int>>;
930
+ port: Nullable<System_Internal.Int32>;
956
931
  }
957
932
 
958
933
 
@@ -977,11 +952,11 @@ export const LookupAddress: {
977
952
  export type LookupAddress = LookupAddress$instance;
978
953
 
979
954
  export interface LookupOptions$instance {
980
- all: Nullable<CLROf<boolean>>;
955
+ all: Nullable<System_Internal.Boolean>;
981
956
  family: unknown;
982
- hints: Nullable<CLROf<int>>;
957
+ hints: Nullable<System_Internal.Int32>;
983
958
  order: string;
984
- verbatim: Nullable<CLROf<boolean>>;
959
+ verbatim: Nullable<System_Internal.Boolean>;
985
960
  }
986
961
 
987
962
 
@@ -994,7 +969,7 @@ export type LookupOptions = LookupOptions$instance;
994
969
 
995
970
  export interface MarkOptions$instance {
996
971
  detail: unknown;
997
- startTime: Nullable<CLROf<double>>;
972
+ startTime: Nullable<System_Internal.Double>;
998
973
  }
999
974
 
1000
975
 
@@ -1007,9 +982,9 @@ export type MarkOptions = MarkOptions$instance;
1007
982
 
1008
983
  export interface MeasureOptions$instance {
1009
984
  detail: unknown;
1010
- end: Nullable<CLROf<double>>;
985
+ end: Nullable<System_Internal.Double>;
1011
986
  endMark: string;
1012
- start: Nullable<CLROf<double>>;
987
+ start: Nullable<System_Internal.Double>;
1013
988
  startMark: string;
1014
989
  }
1015
990
 
@@ -1212,7 +1187,7 @@ export type PerformanceObserverOptions = PerformanceObserverOptions$instance;
1212
1187
 
1213
1188
  export interface PrivateKeyObject$instance extends KeyObject {
1214
1189
  readonly asymmetricKeyType: string;
1215
- readonly symmetricKeySize: Nullable<CLROf<int>>;
1190
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1216
1191
  readonly type_: string;
1217
1192
  dispose(): void;
1218
1193
  export_(options?: unknown): unknown;
@@ -1231,18 +1206,18 @@ export interface ProcessEnv$instance {
1231
1206
  readonly count: int;
1232
1207
  readonly isReadOnly: boolean;
1233
1208
  item: string;
1234
- readonly keys: ICollection<CLROf<string>>;
1235
- readonly values: ICollection<CLROf<string>>;
1209
+ readonly keys: ICollection<System_Internal.String>;
1210
+ readonly values: ICollection<System_Internal.String>;
1236
1211
  add(key: string, value: string): void;
1237
- add(item: KeyValuePair<CLROf<string>, CLROf<string>>): void;
1212
+ add(item: KeyValuePair<System_Internal.String, System_Internal.String>): void;
1238
1213
  clear(): void;
1239
- contains(item: KeyValuePair<CLROf<string>, CLROf<string>>): boolean;
1214
+ contains(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
1240
1215
  containsKey(key: string): boolean;
1241
- copyTo(array: KeyValuePair<CLROf<string>, CLROf<string>>[], arrayIndex: int): void;
1242
- getEnumerator(): IEnumerator<KeyValuePair<CLROf<string>, CLROf<string>>>;
1216
+ copyTo(array: KeyValuePair<System_Internal.String, System_Internal.String>[], arrayIndex: int): void;
1217
+ getEnumerator(): IEnumerator<KeyValuePair<System_Internal.String, System_Internal.String>>;
1243
1218
  remove(key: string): boolean;
1244
- remove(item: KeyValuePair<CLROf<string>, CLROf<string>>): boolean;
1245
- tryGetValue(key: string, value: { value: ref<string> }): boolean;
1219
+ remove(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
1220
+ tryGetValue(key: string, value: string): boolean;
1246
1221
  }
1247
1222
 
1248
1223
 
@@ -1270,7 +1245,7 @@ export type ProcessVersions = ProcessVersions$instance;
1270
1245
 
1271
1246
  export interface PublicKeyObject$instance extends KeyObject {
1272
1247
  readonly asymmetricKeyType: string;
1273
- readonly symmetricKeySize: Nullable<CLROf<int>>;
1248
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1274
1249
  readonly type_: string;
1275
1250
  dispose(): void;
1276
1251
  export_(options?: unknown): unknown;
@@ -1289,13 +1264,13 @@ export interface Readable$instance extends Stream {
1289
1264
  readonly destroyed: boolean;
1290
1265
  readonly readable: boolean;
1291
1266
  readonly readableEnded: boolean;
1292
- readonly readableFlowing: Nullable<CLROf<boolean>>;
1267
+ readonly readableFlowing: Nullable<System_Internal.Boolean>;
1293
1268
  readonly readableLength: int;
1294
1269
  destroy(error?: Exception): void;
1295
1270
  isPaused(): boolean;
1296
1271
  pause(): Readable;
1297
1272
  push(chunk: unknown, encoding?: string): boolean;
1298
- read(size?: Nullable<CLROf<int>>): unknown;
1273
+ read(size?: Nullable<System_Internal.Int32>): unknown;
1299
1274
  resume(): Readable;
1300
1275
  setEncoding(encoding: string): Readable;
1301
1276
  unpipe(destination?: Stream): Readable;
@@ -1385,9 +1360,9 @@ export const Resolver: {
1385
1360
  export type Resolver = Resolver$instance;
1386
1361
 
1387
1362
  export interface ResolverOptions$instance {
1388
- maxTimeout: Nullable<CLROf<int>>;
1389
- timeout: Nullable<CLROf<int>>;
1390
- tries: Nullable<CLROf<int>>;
1363
+ maxTimeout: Nullable<System_Internal.Int32>;
1364
+ timeout: Nullable<System_Internal.Int32>;
1365
+ tries: Nullable<System_Internal.Int32>;
1391
1366
  }
1392
1367
 
1393
1368
 
@@ -1400,7 +1375,7 @@ export type ResolverOptions = ResolverOptions$instance;
1400
1375
 
1401
1376
  export interface SecretKeyObject$instance extends KeyObject {
1402
1377
  readonly asymmetricKeyType: string;
1403
- readonly symmetricKeySize: Nullable<CLROf<int>>;
1378
+ readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1404
1379
  readonly type_: string;
1405
1380
  dispose(): void;
1406
1381
  export_(options?: unknown): unknown;
@@ -1457,7 +1432,7 @@ export interface Server$instance extends EventEmitter {
1457
1432
  maxConnections: int;
1458
1433
  address(): unknown;
1459
1434
  close(callback?: Action<Exception>): Server;
1460
- getConnections(callback: Action<Exception, CLROf<int>>): void;
1435
+ getConnections(callback: Action<Exception, System_Internal.Int32>): void;
1461
1436
  listen(port: int, hostname: string, backlog: int, listeningListener?: Action): Server;
1462
1437
  listen(port: int, hostname: string, listeningListener?: Action): Server;
1463
1438
  listen(port: int, backlog: int, listeningListener?: Action): Server;
@@ -1478,8 +1453,8 @@ export const Server: {
1478
1453
  export type Server = Server$instance;
1479
1454
 
1480
1455
  export interface ServerOpts$instance {
1481
- allowHalfOpen: Nullable<CLROf<boolean>>;
1482
- pauseOnConnect: Nullable<CLROf<boolean>>;
1456
+ allowHalfOpen: Nullable<System_Internal.Boolean>;
1457
+ pauseOnConnect: Nullable<System_Internal.Boolean>;
1483
1458
  }
1484
1459
 
1485
1460
 
@@ -1533,11 +1508,11 @@ export interface Socket$instance extends Stream {
1533
1508
  readonly destroyed: boolean;
1534
1509
  readonly localAddress: string;
1535
1510
  readonly localFamily: string;
1536
- readonly localPort: Nullable<CLROf<int>>;
1511
+ readonly localPort: Nullable<System_Internal.Int32>;
1537
1512
  readonly readyState: string;
1538
1513
  readonly remoteAddress: string;
1539
1514
  readonly remoteFamily: string;
1540
- readonly remotePort: Nullable<CLROf<int>>;
1515
+ readonly remotePort: Nullable<System_Internal.Int32>;
1541
1516
  address(): unknown;
1542
1517
  connect(port: int, host?: string, connectionListener?: Action): Socket;
1543
1518
  connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
@@ -1573,7 +1548,7 @@ export type Socket = Socket$instance;
1573
1548
  export interface SocketAddress$instance {
1574
1549
  readonly address: string;
1575
1550
  readonly family: string;
1576
- readonly flowlabel: Nullable<CLROf<int>>;
1551
+ readonly flowlabel: Nullable<System_Internal.Int32>;
1577
1552
  readonly port: int;
1578
1553
  }
1579
1554
 
@@ -1588,8 +1563,8 @@ export type SocketAddress = SocketAddress$instance;
1588
1563
  export interface SocketAddressInitOptions$instance {
1589
1564
  address: string;
1590
1565
  family: string;
1591
- flowlabel: Nullable<CLROf<int>>;
1592
- port: Nullable<CLROf<int>>;
1566
+ flowlabel: Nullable<System_Internal.Int32>;
1567
+ port: Nullable<System_Internal.Int32>;
1593
1568
  }
1594
1569
 
1595
1570
 
@@ -1601,10 +1576,10 @@ export const SocketAddressInitOptions: {
1601
1576
  export type SocketAddressInitOptions = SocketAddressInitOptions$instance;
1602
1577
 
1603
1578
  export interface SocketConstructorOpts$instance {
1604
- allowHalfOpen: Nullable<CLROf<boolean>>;
1605
- fd: Nullable<CLROf<int>>;
1606
- readable: Nullable<CLROf<boolean>>;
1607
- writable: Nullable<CLROf<boolean>>;
1579
+ allowHalfOpen: Nullable<System_Internal.Boolean>;
1580
+ fd: Nullable<System_Internal.Int32>;
1581
+ readable: Nullable<System_Internal.Boolean>;
1582
+ writable: Nullable<System_Internal.Boolean>;
1608
1583
  }
1609
1584
 
1610
1585
 
@@ -1617,10 +1592,10 @@ export type SocketConstructorOpts = SocketConstructorOpts$instance;
1617
1592
 
1618
1593
  export interface SocketOptions$instance {
1619
1594
  ipv6Only: boolean;
1620
- recvBufferSize: Nullable<CLROf<int>>;
1595
+ recvBufferSize: Nullable<System_Internal.Int32>;
1621
1596
  reuseAddr: boolean;
1622
1597
  reusePort: boolean;
1623
- sendBufferSize: Nullable<CLROf<int>>;
1598
+ sendBufferSize: Nullable<System_Internal.Int32>;
1624
1599
  type_: string;
1625
1600
  }
1626
1601
 
@@ -1637,7 +1612,7 @@ export interface SpawnSyncReturns_1$instance<T> {
1637
1612
  output: T[];
1638
1613
  pid: int;
1639
1614
  signal: string;
1640
- status: Nullable<CLROf<int>>;
1615
+ status: Nullable<System_Internal.Int32>;
1641
1616
  stderr: T;
1642
1617
  stdout: T;
1643
1618
  }
@@ -1718,14 +1693,14 @@ export const StringDecoder: {
1718
1693
  export type StringDecoder = StringDecoder$instance;
1719
1694
 
1720
1695
  export interface TcpSocketConnectOpts$instance {
1721
- family: Nullable<CLROf<int>>;
1722
- hints: Nullable<CLROf<int>>;
1696
+ family: Nullable<System_Internal.Int32>;
1697
+ hints: Nullable<System_Internal.Int32>;
1723
1698
  host: string;
1724
- keepAlive: Nullable<CLROf<boolean>>;
1725
- keepAliveInitialDelay: Nullable<CLROf<int>>;
1699
+ keepAlive: Nullable<System_Internal.Boolean>;
1700
+ keepAliveInitialDelay: Nullable<System_Internal.Int32>;
1726
1701
  localAddress: string;
1727
- localPort: Nullable<CLROf<int>>;
1728
- noDelay: Nullable<CLROf<boolean>>;
1702
+ localPort: Nullable<System_Internal.Int32>;
1703
+ noDelay: Nullable<System_Internal.Boolean>;
1729
1704
  port: int;
1730
1705
  }
1731
1706
 
@@ -1787,14 +1762,14 @@ export const TLSCertificateInfo: {
1787
1762
  export type TLSCertificateInfo = TLSCertificateInfo$instance;
1788
1763
 
1789
1764
  export interface TlsOptions$instance extends CommonConnectionOptions {
1790
- allowHalfOpen: Nullable<CLROf<boolean>>;
1765
+ allowHalfOpen: Nullable<System_Internal.Boolean>;
1791
1766
  ca: unknown;
1792
1767
  cert: unknown;
1793
- handshakeTimeout: Nullable<CLROf<int>>;
1768
+ handshakeTimeout: Nullable<System_Internal.Int32>;
1794
1769
  key: unknown;
1795
1770
  passphrase: string;
1796
- pauseOnConnect: Nullable<CLROf<boolean>>;
1797
- sessionTimeout: Nullable<CLROf<int>>;
1771
+ pauseOnConnect: Nullable<System_Internal.Boolean>;
1772
+ sessionTimeout: Nullable<System_Internal.Int32>;
1798
1773
  }
1799
1774
 
1800
1775
 
@@ -1864,7 +1839,7 @@ export type TLSSocket = TLSSocket$instance;
1864
1839
  export interface TLSSocketOptions$instance extends CommonConnectionOptions {
1865
1840
  ca: unknown;
1866
1841
  cert: unknown;
1867
- isServer: Nullable<CLROf<boolean>>;
1842
+ isServer: Nullable<System_Internal.Boolean>;
1868
1843
  key: unknown;
1869
1844
  passphrase: string;
1870
1845
  server: Server;
@@ -1921,16 +1896,16 @@ export interface URLSearchParams$instance {
1921
1896
  readonly size: int;
1922
1897
  append(name: string, value: string): void;
1923
1898
  delete_(name: string, value?: string): void;
1924
- entries(): IEnumerable__System_Collections_Generic<KeyValuePair<CLROf<string>, CLROf<string>>>;
1925
- forEach(callback: Action<CLROf<string>, CLROf<string>>): void;
1899
+ entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
1900
+ forEach(callback: Action<System_Internal.String, System_Internal.String>): void;
1926
1901
  get_(name: string): string;
1927
1902
  getAll(name: string): string[];
1928
1903
  has(name: string, value?: string): boolean;
1929
- keys(): IEnumerable__System_Collections_Generic<CLROf<string>>;
1904
+ keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
1930
1905
  set_(name: string, value: string): void;
1931
1906
  sort(): void;
1932
1907
  toString(): string;
1933
- values(): IEnumerable__System_Collections_Generic<CLROf<string>>;
1908
+ values(): IEnumerable__System_Collections_Generic<System_Internal.String>;
1934
1909
  }
1935
1910
 
1936
1911
 
@@ -2025,12 +2000,12 @@ export const X509CertificateInfo: {
2025
2000
  export type X509CertificateInfo = X509CertificateInfo$instance;
2026
2001
 
2027
2002
  export interface ZlibOptions$instance {
2028
- chunkSize: Nullable<CLROf<int>>;
2029
- level: Nullable<CLROf<int>>;
2030
- maxOutputLength: Nullable<CLROf<int>>;
2031
- memLevel: Nullable<CLROf<int>>;
2032
- strategy: Nullable<CLROf<int>>;
2033
- windowBits: Nullable<CLROf<int>>;
2003
+ chunkSize: Nullable<System_Internal.Int32>;
2004
+ level: Nullable<System_Internal.Int32>;
2005
+ maxOutputLength: Nullable<System_Internal.Int32>;
2006
+ memLevel: Nullable<System_Internal.Int32>;
2007
+ strategy: Nullable<System_Internal.Int32>;
2008
+ windowBits: Nullable<System_Internal.Int32>;
2034
2009
  }
2035
2010
 
2036
2011
 
@@ -2075,16 +2050,16 @@ export abstract class Certificate$instance {
2075
2050
  export type Certificate = Certificate$instance;
2076
2051
 
2077
2052
  export abstract class child_process$instance {
2078
- static exec(command: string, options: ExecOptions, callback: Action<Exception, CLROf<string>, CLROf<string>>): void;
2079
- static exec(command: string, callback: Action<Exception, CLROf<string>, CLROf<string>>): void;
2080
- static execFile(file: string, args: string[], options: ExecOptions, callback: Action<Exception, CLROf<string>, CLROf<string>>): void;
2053
+ static exec(command: string, options: ExecOptions, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2054
+ static exec(command: string, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2055
+ static execFile(file: string, args: string[], options: ExecOptions, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2081
2056
  static execFileSync(file: string, args?: string[], options?: ExecOptions): unknown;
2082
2057
  static execSync(command: string, options: ExecOptions): unknown;
2083
2058
  static execSync(command: string): byte[];
2084
2059
  static fork(modulePath: string, args?: string[], options?: ExecOptions): ChildProcess;
2085
2060
  static spawn(command: string, args?: string[], options?: ExecOptions): ChildProcess;
2086
2061
  static spawnSync(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<byte[]>;
2087
- static spawnSyncString(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<CLROf<string>>;
2062
+ static spawnSyncString(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<System_Internal.String>;
2088
2063
  }
2089
2064
 
2090
2065
 
@@ -2168,7 +2143,7 @@ export abstract class crypto$instance {
2168
2143
  static randomBytes(size: int, callback: Action<Exception, byte[]>): void;
2169
2144
  static randomBytes(size: int): byte[];
2170
2145
  static randomFill(buffer: byte[], offset: int, size: int, callback: Action<Exception, byte[]>): void;
2171
- static randomFillSync(buffer: byte[], offset?: int, size?: Nullable<CLROf<int>>): byte[];
2146
+ static randomFillSync(buffer: byte[], offset?: int, size?: Nullable<System_Internal.Int32>): byte[];
2172
2147
  static randomInt(min: int, max: int): int;
2173
2148
  static randomInt(max: int): int;
2174
2149
  static randomUUID(): string;
@@ -2226,10 +2201,10 @@ export abstract class dns$instance {
2226
2201
  static getDefaultResultOrder(): string;
2227
2202
  static getServers(): string[];
2228
2203
  static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, LookupAddress[]>): void;
2229
- static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, CLROf<string>, CLROf<int>>): void;
2230
- static lookup(hostname: string, callback: Action<Exception, CLROf<string>, CLROf<int>>): void;
2231
- static lookup(hostname: string, family: int, callback: Action<Exception, CLROf<string>, CLROf<int>>): void;
2232
- static lookupService(address: string, port: int, callback: Action<Exception, CLROf<string>, CLROf<string>>): void;
2204
+ static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, System_Internal.String, System_Internal.Int32>): void;
2205
+ static lookup(hostname: string, callback: Action<Exception, System_Internal.String, System_Internal.Int32>): void;
2206
+ static lookup(hostname: string, family: int, callback: Action<Exception, System_Internal.String, System_Internal.Int32>): void;
2207
+ static lookupService(address: string, port: int, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2233
2208
  static resolve(hostname: string, callback: Action<Exception, string[]>): void;
2234
2209
  static resolve(hostname: string, rrtype: string, callback: Action<Exception, unknown>): void;
2235
2210
  static resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
@@ -2273,19 +2248,19 @@ export abstract class fs$instance {
2273
2248
  static fstatSync(fd: int): Stats;
2274
2249
  static mkdir(path: string, recursive?: boolean): Task;
2275
2250
  static mkdirSync(path: string, recursive?: boolean): void;
2276
- static open(path: string, flags: string, mode?: Nullable<CLROf<int>>): Task<CLROf<int>>;
2277
- static openSync(path: string, flags: string, mode?: Nullable<CLROf<int>>): int;
2278
- static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<CLROf<int>>): Task<CLROf<int>>;
2251
+ static open(path: string, flags: string, mode?: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
2252
+ static openSync(path: string, flags: string, mode?: Nullable<System_Internal.Int32>): int;
2253
+ static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
2279
2254
  static readdir(path: string, withFileTypes?: boolean): Task<string[]>;
2280
2255
  static readdirSync(path: string, withFileTypes?: boolean): string[];
2281
- static readFile(path: string, encoding?: string): Task<CLROf<string>>;
2256
+ static readFile(path: string, encoding?: string): Task<System_Internal.String>;
2282
2257
  static readFileBytes(path: string): Task<byte[]>;
2283
2258
  static readFileSync(path: string, encoding?: string): string;
2284
2259
  static readFileSyncBytes(path: string): byte[];
2285
- static readlink(path: string): Task<CLROf<string>>;
2260
+ static readlink(path: string): Task<System_Internal.String>;
2286
2261
  static readlinkSync(path: string): string;
2287
- static readSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<CLROf<int>>): int;
2288
- static realpath(path: string): Task<CLROf<string>>;
2262
+ static readSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): int;
2263
+ static realpath(path: string): Task<System_Internal.String>;
2289
2264
  static realpathSync(path: string): string;
2290
2265
  static rename(oldPath: string, newPath: string): Task;
2291
2266
  static renameSync(oldPath: string, newPath: string): void;
@@ -2301,14 +2276,14 @@ export abstract class fs$instance {
2301
2276
  static truncateSync(path: string, len?: long): void;
2302
2277
  static unlink(path: string): Task;
2303
2278
  static unlinkSync(path: string): void;
2304
- static write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<CLROf<int>>): Task<CLROf<int>>;
2305
- static write(fd: int, data: string, position?: Nullable<CLROf<int>>, encoding?: string): Task<CLROf<int>>;
2279
+ static write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
2280
+ static write(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): Task<System_Internal.Int32>;
2306
2281
  static writeFile(path: string, data: string, encoding?: string): Task;
2307
2282
  static writeFileBytes(path: string, data: byte[]): Task;
2308
2283
  static writeFileSync(path: string, data: string, encoding?: string): void;
2309
2284
  static writeFileSyncBytes(path: string, data: byte[]): void;
2310
- static writeSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<CLROf<int>>): int;
2311
- static writeSync(fd: int, data: string, position?: Nullable<CLROf<int>>, encoding?: string): int;
2285
+ static writeSync(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): int;
2286
+ static writeSync(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): int;
2312
2287
  }
2313
2288
 
2314
2289
 
@@ -2400,7 +2375,7 @@ export abstract class process$instance {
2400
2375
  static argv0: string;
2401
2376
  static readonly env: ProcessEnv;
2402
2377
  static readonly execPath: string;
2403
- static exitCode: Nullable<CLROf<int>>;
2378
+ static exitCode: Nullable<System_Internal.Int32>;
2404
2379
  static readonly pid: int;
2405
2380
  static readonly ppid: int;
2406
2381
  static readonly platform: string;
@@ -2408,7 +2383,7 @@ export abstract class process$instance {
2408
2383
  static readonly versions: ProcessVersions;
2409
2384
  static chdir(directory: string): void;
2410
2385
  static cwd(): string;
2411
- static exit(code?: Nullable<CLROf<int>>): void;
2386
+ static exit(code?: Nullable<System_Internal.Int32>): void;
2412
2387
  static kill(pid: int, signal?: unknown): boolean;
2413
2388
  }
2414
2389
 
@@ -2416,11 +2391,11 @@ export abstract class process$instance {
2416
2391
  export type process = process$instance;
2417
2392
 
2418
2393
  export abstract class querystring$instance {
2419
- static decode(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<CLROf<string>, unknown>;
2420
- static encode(obj: Dictionary<CLROf<string>, unknown>, sep?: string, eq?: string): string;
2394
+ static decode(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
2395
+ static encode(obj: Dictionary<System_Internal.String, unknown>, sep?: string, eq?: string): string;
2421
2396
  static escape(str: string): string;
2422
- static parse(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<CLROf<string>, unknown>;
2423
- static stringify(obj: Dictionary<CLROf<string>, unknown>, sep?: string, eq?: string): string;
2397
+ static parse(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
2398
+ static stringify(obj: Dictionary<System_Internal.String, unknown>, sep?: string, eq?: string): string;
2424
2399
  static unescape(str: string): string;
2425
2400
  }
2426
2401
 
@@ -2430,10 +2405,10 @@ export type querystring = querystring$instance;
2430
2405
  export abstract class readline$instance {
2431
2406
  static clearLine(stream: Writable, dir: int, callback?: Action): boolean;
2432
2407
  static clearScreenDown(stream: Writable, callback?: Action): boolean;
2433
- static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable<CLROf<string>>;
2408
+ static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable<System_Internal.String>;
2434
2409
  static createInterface(options: InterfaceOptions): Interface;
2435
2410
  static createInterface(input: Readable, output?: Writable): Interface;
2436
- static cursorTo(stream: Writable, x: int, y?: Nullable<CLROf<int>>, callback?: Action): boolean;
2411
+ static cursorTo(stream: Writable, x: int, y?: Nullable<System_Internal.Int32>, callback?: Action): boolean;
2437
2412
  static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action): boolean;
2438
2413
  }
2439
2414
 
@@ -8616,7 +8616,13 @@
8616
8616
  "isSealed": true,
8617
8617
  "arity": 0,
8618
8618
  "parameterCount": 2,
8619
- "isExtensionMethod": false
8619
+ "isExtensionMethod": false,
8620
+ "parameterModifiers": [
8621
+ {
8622
+ "index": 1,
8623
+ "modifier": "out"
8624
+ }
8625
+ ]
8620
8626
  },
8621
8627
  {
8622
8628
  "stableId": "nodejs:nodejs.ProcessEnv::Add(System.Collections.Generic.KeyValuePair_2[[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e],[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e]]):System.Void",
@@ -15,31 +15,6 @@ import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Ru
15
15
  import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization.js";
16
16
  import type { Task } from "@tsonic/dotnet/System.Threading.Tasks.js";
17
17
 
18
- // CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints
19
- // This utility is used ONLY in generic type arguments to satisfy CLR interface constraints
20
- // Value positions (parameters, return types) use lowercase primitives for ergonomics
21
- export type CLROf<T> =
22
- T extends sbyte ? System_Internal.SByte :
23
- T extends short ? System_Internal.Int16 :
24
- T extends int ? System_Internal.Int32 :
25
- T extends long ? System_Internal.Int64 :
26
- T extends int128 ? System_Internal.Int128 :
27
- T extends nint ? System_Internal.IntPtr :
28
- T extends byte ? System_Internal.Byte :
29
- T extends ushort ? System_Internal.UInt16 :
30
- T extends uint ? System_Internal.UInt32 :
31
- T extends ulong ? System_Internal.UInt64 :
32
- T extends uint128 ? System_Internal.UInt128 :
33
- T extends nuint ? System_Internal.UIntPtr :
34
- T extends half ? System_Internal.Half :
35
- T extends float ? System_Internal.Single :
36
- T extends double ? System_Internal.Double :
37
- T extends decimal ? System_Internal.Decimal :
38
- T extends char ? System_Internal.Char :
39
- T extends boolean ? System_Internal.Boolean :
40
- T extends string ? System_Internal.String :
41
- T; // Identity fallback for non-primitive types
42
-
43
18
  export interface AddressInfo$instance {
44
19
  address: string;
45
20
  family: string;
@@ -80,17 +55,17 @@ export type ClientRequest = ClientRequest$instance;
80
55
 
81
56
  export interface IncomingMessage$instance extends EventEmitter {
82
57
  readonly complete: boolean;
83
- readonly headers: Dictionary<CLROf<string>, CLROf<string>>;
58
+ readonly headers: Dictionary<System_Internal.String, System_Internal.String>;
84
59
  readonly httpVersion: string;
85
60
  readonly method: string;
86
- readonly statusCode: Nullable<CLROf<int>>;
61
+ readonly statusCode: Nullable<System_Internal.Int32>;
87
62
  readonly statusMessage: string;
88
63
  readonly url: string;
89
64
  destroy(): void;
90
65
  onClose(callback: Action): void;
91
- onData(callback: Action<CLROf<string>>): void;
66
+ onData(callback: Action<System_Internal.String>): void;
92
67
  onEnd(callback: Action): void;
93
- readAll(): Task<CLROf<string>>;
68
+ readAll(): Task<System_Internal.String>;
94
69
  setTimeout(msecs: int, callback?: Action): IncomingMessage;
95
70
  }
96
71
 
@@ -105,14 +80,14 @@ export type IncomingMessage = IncomingMessage$instance;
105
80
  export interface RequestOptions$instance {
106
81
  agent: unknown;
107
82
  auth: string;
108
- headers: Dictionary<CLROf<string>, CLROf<string>>;
83
+ headers: Dictionary<System_Internal.String, System_Internal.String>;
109
84
  host: string;
110
85
  hostname: string;
111
86
  method: string;
112
87
  path: string;
113
88
  port: int;
114
89
  protocol: string;
115
- timeout: Nullable<CLROf<int>>;
90
+ timeout: Nullable<System_Internal.Int32>;
116
91
  }
117
92
 
118
93
 
@@ -132,7 +107,7 @@ export interface Server$instance extends EventEmitter {
132
107
  timeout: int;
133
108
  address(): AddressInfo;
134
109
  close(callback?: Action): Server;
135
- listen(port: int, hostname?: string, backlog?: Nullable<CLROf<int>>, callback?: Action): Server;
110
+ listen(port: int, hostname?: string, backlog?: Nullable<System_Internal.Int32>, callback?: Action): Server;
136
111
  listen(port: int, callback?: Action): Server;
137
112
  setTimeout(msecs: int, callback?: Action): Server;
138
113
  }
@@ -154,14 +129,14 @@ export interface ServerResponse$instance extends EventEmitter {
154
129
  flushHeaders(): Task;
155
130
  getHeader(name: string): string;
156
131
  getHeaderNames(): string[];
157
- getHeaders(): Dictionary<CLROf<string>, CLROf<string>>;
132
+ getHeaders(): Dictionary<System_Internal.String, System_Internal.String>;
158
133
  hasHeader(name: string): boolean;
159
134
  removeHeader(name: string): void;
160
135
  setHeader(name: string, value: string): ServerResponse;
161
136
  setTimeout(msecs: int, callback?: Action): ServerResponse;
162
- write(chunk: string, encoding?: string, callback?: Action): Task<CLROf<boolean>>;
163
- writeHead(statusCode: int, statusMessage?: string, headers?: Dictionary<CLROf<string>, CLROf<string>>): ServerResponse;
164
- writeHead(statusCode: int, headers: Dictionary<CLROf<string>, CLROf<string>>): ServerResponse;
137
+ write(chunk: string, encoding?: string, callback?: Action): Task<System_Internal.Boolean>;
138
+ writeHead(statusCode: int, statusMessage?: string, headers?: Dictionary<System_Internal.String, System_Internal.String>): ServerResponse;
139
+ writeHead(statusCode: int, headers: Dictionary<System_Internal.String, System_Internal.String>): ServerResponse;
165
140
  }
166
141
 
167
142
 
@@ -184,7 +159,7 @@ export const TypeError: {
184
159
  export type TypeError = TypeError$instance;
185
160
 
186
161
  export abstract class http$instance {
187
- static globalAgent_maxSockets: Nullable<CLROf<int>>;
162
+ static globalAgent_maxSockets: Nullable<System_Internal.Int32>;
188
163
  static globalAgent_maxFreeSockets: int;
189
164
  static globalAgent_timeout: int;
190
165
  static maxHeaderSize: int;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/nodejs",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript type definitions for Node.js CLR library",
5
5
  "type": "module",
6
6
  "files": [
@@ -25,7 +25,9 @@
25
25
  "url": "https://github.com/tsoniclang/nodejs.git"
26
26
  },
27
27
  "dependencies": {
28
- "@tsonic/dotnet": "^0.7.4",
29
28
  "@tsonic/types": "^0.2.0"
29
+ },
30
+ "peerDependencies": {
31
+ "@tsonic/dotnet": "^0.7.6"
30
32
  }
31
33
  }