@tsonic/nodejs 0.4.2 → 0.4.4

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.
@@ -199,16 +199,18 @@ export const AnyTxtRecord: {
199
199
  export type AnyTxtRecord = AnyTxtRecord$instance;
200
200
 
201
201
  export interface AssertionError$instance extends Exception {
202
- actual: unknown | undefined;
202
+ get actual(): unknown | undefined;
203
+ set actual(value: unknown);
203
204
  readonly code: string;
204
- expected: unknown | undefined;
205
+ get expected(): unknown | undefined;
206
+ set expected(value: unknown);
205
207
  generatedMessage: boolean;
206
208
  operator: string;
207
209
  }
208
210
 
209
211
 
210
212
  export const AssertionError: {
211
- new(message: string | undefined, actual: unknown | undefined, expected: unknown | undefined, operator: string): AssertionError;
213
+ new(message: string, actual: unknown, expected: unknown, operator: string): AssertionError;
212
214
  };
213
215
 
214
216
 
@@ -365,12 +367,17 @@ export const Buffer: {
365
367
  export type Buffer = Buffer$instance;
366
368
 
367
369
  export interface CaaRecord$instance {
368
- contactemail: string | undefined;
369
- contactphone: string | undefined;
370
+ get contactemail(): string | undefined;
371
+ set contactemail(value: string);
372
+ get contactphone(): string | undefined;
373
+ set contactphone(value: string);
370
374
  critical: int;
371
- iodef: string | undefined;
372
- issue: string | undefined;
373
- issuewild: string | undefined;
375
+ get iodef(): string | undefined;
376
+ set iodef(value: string);
377
+ get issue(): string | undefined;
378
+ set issue(value: string);
379
+ get issuewild(): string | undefined;
380
+ set issuewild(value: string);
374
381
  }
375
382
 
376
383
 
@@ -394,9 +401,9 @@ export interface ChildProcess$instance extends EventEmitter {
394
401
  readonly stdin: Writable | undefined;
395
402
  readonly stdout: Readable;
396
403
  disconnect(): void;
397
- kill(signal?: string | undefined): boolean;
404
+ kill(signal?: string): boolean;
398
405
  ref(): void;
399
- send(message: unknown, sendHandle?: unknown | undefined, options?: unknown | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
406
+ send(message: unknown, sendHandle?: unknown, options?: unknown, callback?: Action<Exception>): boolean;
400
407
  unref(): void;
401
408
  }
402
409
 
@@ -410,13 +417,13 @@ export type ChildProcess = ChildProcess$instance;
410
417
 
411
418
  export interface Cipher$instance extends Transform {
412
419
  dispose(): void;
413
- final(outputEncoding?: string | undefined): string;
420
+ final(outputEncoding?: string): string;
414
421
  final(): byte[];
415
422
  getAuthTag(): byte[];
416
423
  setAAD(buffer: byte[]): void;
417
424
  setAuthTag(tagLength: int): void;
418
- update(data: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
419
- update(data: byte[], outputEncoding?: string | undefined): string;
425
+ update(data: string, inputEncoding?: string, outputEncoding?: string): string;
426
+ update(data: byte[], outputEncoding?: string): string;
420
427
  }
421
428
 
422
429
 
@@ -442,11 +449,13 @@ export const CipherNameAndProtocol: {
442
449
  export type CipherNameAndProtocol = CipherNameAndProtocol$instance;
443
450
 
444
451
  export interface CommonConnectionOptions$instance {
445
- alpnProtocols: string[] | undefined;
452
+ get alpnProtocols(): string[] | undefined;
453
+ set alpnProtocols(value: string[]);
446
454
  enableTrace: Nullable<System_Internal.Boolean>;
447
455
  rejectUnauthorized: Nullable<System_Internal.Boolean>;
448
456
  requestCert: Nullable<System_Internal.Boolean>;
449
- secureContext: SecureContext | undefined;
457
+ get secureContext(): SecureContext | undefined;
458
+ set secureContext(value: SecureContext);
450
459
  }
451
460
 
452
461
 
@@ -458,13 +467,18 @@ export const CommonConnectionOptions: {
458
467
  export type CommonConnectionOptions = CommonConnectionOptions$instance;
459
468
 
460
469
  export interface ConnectionOptions$instance extends CommonConnectionOptions {
461
- ca: unknown | undefined;
462
- cert: unknown | undefined;
470
+ get ca(): unknown | undefined;
471
+ set ca(value: unknown);
472
+ get cert(): unknown | undefined;
473
+ set cert(value: unknown);
463
474
  host: string;
464
- key: unknown | undefined;
465
- passphrase: string | undefined;
475
+ get key(): unknown | undefined;
476
+ set key(value: unknown);
477
+ get passphrase(): string | undefined;
478
+ set passphrase(value: string);
466
479
  port: Nullable<System_Internal.Int32>;
467
- servername: string | undefined;
480
+ get servername(): string | undefined;
481
+ set servername(value: string);
468
482
  timeout: Nullable<System_Internal.Int32>;
469
483
  }
470
484
 
@@ -521,12 +535,12 @@ export type CursorPosition = CursorPosition$instance;
521
535
 
522
536
  export interface Decipher$instance extends Transform {
523
537
  dispose(): void;
524
- final(outputEncoding?: string | undefined): string;
538
+ final(outputEncoding?: string): string;
525
539
  final(): byte[];
526
540
  setAAD(buffer: byte[]): void;
527
541
  setAuthTag(buffer: byte[]): void;
528
- update(data: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
529
- update(data: byte[], outputEncoding?: string | undefined): string;
542
+ update(data: string, inputEncoding?: string, outputEncoding?: string): string;
543
+ update(data: byte[], outputEncoding?: string): string;
530
544
  }
531
545
 
532
546
 
@@ -538,7 +552,8 @@ export const Decipher: {
538
552
  export type Decipher = Decipher$instance;
539
553
 
540
554
  export interface DetailedPeerCertificate$instance extends PeerCertificate {
541
- issuerCertificate: DetailedPeerCertificate | undefined;
555
+ get issuerCertificate(): DetailedPeerCertificate | undefined;
556
+ set issuerCertificate(value: DetailedPeerCertificate);
542
557
  }
543
558
 
544
559
 
@@ -550,19 +565,19 @@ export const DetailedPeerCertificate: {
550
565
  export type DetailedPeerCertificate = DetailedPeerCertificate$instance;
551
566
 
552
567
  export interface DgramSocket$instance extends EventEmitter {
553
- addMembership(multicastAddress: string, multicastInterface?: string | undefined): void;
568
+ addMembership(multicastAddress: string, multicastInterface?: string): void;
554
569
  address(): AddressInfo;
555
- addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
570
+ addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
556
571
  bind(port?: int, address?: string, callback?: Action): DgramSocket;
557
- bind(port: int, callback: Action | undefined): DgramSocket;
558
- bind(callback: Action | undefined): DgramSocket;
559
- bind(options: BindOptions, callback?: Action | undefined): DgramSocket;
560
- close(callback?: Action | undefined): DgramSocket;
572
+ bind(port: int, callback: Action): DgramSocket;
573
+ bind(callback: Action): DgramSocket;
574
+ bind(options: BindOptions, callback?: Action): DgramSocket;
575
+ close(callback?: Action): DgramSocket;
561
576
  connect(port: int, address?: string, callback?: Action): void;
562
577
  connect(port: int, callback: Action): void;
563
578
  disconnect(): void;
564
579
  dropMembership(multicastAddress: string): void;
565
- dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
580
+ dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
566
581
  getRecvBufferSize(): int;
567
582
  getSendBufferSize(): int;
568
583
  getSendQueueCount(): int;
@@ -571,13 +586,13 @@ export interface DgramSocket$instance extends EventEmitter {
571
586
  remoteAddress(): AddressInfo;
572
587
  send(msg: byte[], port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action<Exception, System_Internal.Int32>): void;
573
588
  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 | undefined, System_Internal.Int32> | undefined): void;
575
- send(msg: string, port: int, callback: Action<Exception | undefined, System_Internal.Int32> | undefined): void;
576
- send(msg: byte[], callback: Action<Exception | undefined, System_Internal.Int32> | undefined): void;
577
- send(msg: string, callback: Action<Exception | undefined, System_Internal.Int32> | undefined): void;
589
+ send(msg: byte[], port: int, callback: Action<Exception, System_Internal.Int32>): void;
590
+ send(msg: string, port: int, callback: Action<Exception, System_Internal.Int32>): void;
591
+ send(msg: byte[], callback: Action<Exception, System_Internal.Int32>): void;
592
+ send(msg: string, callback: Action<Exception, System_Internal.Int32>): void;
578
593
  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 | undefined, System_Internal.Int32> | undefined): void;
580
- send(msg: byte[], offset: int, length: int, callback: Action<Exception | undefined, System_Internal.Int32> | undefined): void;
594
+ send(msg: byte[], offset: int, length: int, port: int, callback: Action<Exception, System_Internal.Int32>): void;
595
+ send(msg: byte[], offset: int, length: int, callback: Action<Exception, System_Internal.Int32>): void;
581
596
  setBroadcast(flag: boolean): void;
582
597
  setMulticastInterface(multicastInterface: string): void;
583
598
  setMulticastLoopback(flag: boolean): boolean;
@@ -597,24 +612,24 @@ export const DgramSocket: {
597
612
  export type DgramSocket = DgramSocket$instance;
598
613
 
599
614
  export interface DiffieHellman$instance {
600
- computeSecret(otherPublicKey: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
601
- computeSecret(otherPublicKey: byte[], outputEncoding?: string | undefined): string;
615
+ computeSecret(otherPublicKey: string, inputEncoding?: string, outputEncoding?: string): string;
616
+ computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
602
617
  computeSecret(otherPublicKey: byte[]): byte[];
603
618
  dispose(): void;
604
- generateKeys(encoding?: string | undefined): string;
619
+ generateKeys(encoding?: string): string;
605
620
  generateKeys(): byte[];
606
- getGenerator(encoding?: string | undefined): string;
621
+ getGenerator(encoding?: string): string;
607
622
  getGenerator(): byte[];
608
- getPrime(encoding?: string | undefined): string;
623
+ getPrime(encoding?: string): string;
609
624
  getPrime(): byte[];
610
- getPrivateKey(encoding?: string | undefined): string;
625
+ getPrivateKey(encoding?: string): string;
611
626
  getPrivateKey(): byte[];
612
- getPublicKey(encoding?: string | undefined): string;
627
+ getPublicKey(encoding?: string): string;
613
628
  getPublicKey(): byte[];
614
629
  getVerifyError(): int;
615
- setPrivateKey(privateKey: string, encoding?: string | undefined): void;
630
+ setPrivateKey(privateKey: string, encoding?: string): void;
616
631
  setPrivateKey(privateKey: byte[]): void;
617
- setPublicKey(publicKey: string, encoding?: string | undefined): void;
632
+ setPublicKey(publicKey: string, encoding?: string): void;
618
633
  setPublicKey(publicKey: byte[]): void;
619
634
  }
620
635
 
@@ -631,7 +646,7 @@ export interface DSAPrivateKeyObject$instance extends KeyObject {
631
646
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
632
647
  readonly type_: string;
633
648
  dispose(): void;
634
- export_(options?: unknown | undefined): unknown;
649
+ export_(options?: unknown): unknown;
635
650
  }
636
651
 
637
652
 
@@ -647,7 +662,7 @@ export interface DSAPublicKeyObject$instance extends KeyObject {
647
662
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
648
663
  readonly type_: string;
649
664
  dispose(): void;
650
- export_(options?: unknown | undefined): unknown;
665
+ export_(options?: unknown): unknown;
651
666
  }
652
667
 
653
668
 
@@ -664,10 +679,10 @@ export interface Duplex$instance extends Readable {
664
679
  readonly writableEnded: boolean;
665
680
  readonly writableLength: int;
666
681
  cork(): void;
667
- destroy(error?: Exception | undefined): void;
668
- end(chunk?: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): void;
682
+ destroy(error?: Exception): void;
683
+ end(chunk?: unknown, encoding?: string, callback?: Action): void;
669
684
  uncork(): void;
670
- write(chunk: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): boolean;
685
+ write(chunk: unknown, encoding?: string, callback?: Action): boolean;
671
686
  }
672
687
 
673
688
 
@@ -679,19 +694,19 @@ export const Duplex: {
679
694
  export type Duplex = Duplex$instance;
680
695
 
681
696
  export interface ECDH$instance {
682
- computeSecret(otherPublicKey: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
683
- computeSecret(otherPublicKey: byte[], outputEncoding?: string | undefined): string;
697
+ computeSecret(otherPublicKey: string, inputEncoding?: string, outputEncoding?: string): string;
698
+ computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
684
699
  computeSecret(otherPublicKey: byte[]): byte[];
685
700
  dispose(): void;
686
701
  generateKeys(encoding?: string, format?: string): string;
687
702
  generateKeys(): byte[];
688
- getPrivateKey(encoding?: string | undefined): string;
703
+ getPrivateKey(encoding?: string): string;
689
704
  getPrivateKey(): byte[];
690
705
  getPublicKey(encoding?: string, format?: string): string;
691
706
  getPublicKey(): byte[];
692
- setPrivateKey(privateKey: string, encoding?: string | undefined): void;
707
+ setPrivateKey(privateKey: string, encoding?: string): void;
693
708
  setPrivateKey(privateKey: byte[]): void;
694
- setPublicKey(publicKey: string, encoding?: string | undefined): void;
709
+ setPublicKey(publicKey: string, encoding?: string): void;
695
710
  setPublicKey(publicKey: byte[]): void;
696
711
  }
697
712
 
@@ -708,7 +723,7 @@ export interface EdDSAPrivateKeyObject$instance extends KeyObject {
708
723
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
709
724
  readonly type_: string;
710
725
  dispose(): void;
711
- export_(options?: unknown | undefined): unknown;
726
+ export_(options?: unknown): unknown;
712
727
  }
713
728
 
714
729
 
@@ -724,7 +739,7 @@ export interface EdDSAPublicKeyObject$instance extends KeyObject {
724
739
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
725
740
  readonly type_: string;
726
741
  dispose(): void;
727
- export_(options?: unknown | undefined): unknown;
742
+ export_(options?: unknown): unknown;
728
743
  }
729
744
 
730
745
 
@@ -762,7 +777,7 @@ export interface EventEmitter$instance {
762
777
  prependListener(eventName: string, listener: Function): EventEmitter;
763
778
  prependOnceListener(eventName: string, listener: Function): EventEmitter;
764
779
  rawListeners(eventName: string): Function[];
765
- removeAllListeners(eventName?: string | undefined): EventEmitter;
780
+ removeAllListeners(eventName?: string): EventEmitter;
766
781
  removeListener(eventName: string, listener: Function): EventEmitter;
767
782
  setMaxListeners(n: int): EventEmitter;
768
783
  }
@@ -778,17 +793,25 @@ export const EventEmitter: {
778
793
  export type EventEmitter = EventEmitter$instance;
779
794
 
780
795
  export interface ExecOptions$instance {
781
- argv0: string | undefined;
782
- cwd: string | undefined;
796
+ get argv0(): string | undefined;
797
+ set argv0(value: string);
798
+ get cwd(): string | undefined;
799
+ set cwd(value: string);
783
800
  detached: boolean;
784
- encoding: string | undefined;
785
- env: unknown | undefined;
801
+ get encoding(): string | undefined;
802
+ set encoding(value: string);
803
+ get env(): unknown | undefined;
804
+ set env(value: unknown);
786
805
  gid: Nullable<System_Internal.Int32>;
787
- input: string | undefined;
788
- killSignal: string | undefined;
806
+ get input(): string | undefined;
807
+ set input(value: string);
808
+ get killSignal(): string | undefined;
809
+ set killSignal(value: string);
789
810
  maxBuffer: int;
790
- shell: string | undefined;
791
- stdio: string | undefined;
811
+ get shell(): string | undefined;
812
+ set shell(value: string);
813
+ get stdio(): string | undefined;
814
+ set stdio(value: string);
792
815
  timeout: int;
793
816
  uid: Nullable<System_Internal.Int32>;
794
817
  windowsHide: boolean;
@@ -805,11 +828,11 @@ export type ExecOptions = ExecOptions$instance;
805
828
 
806
829
  export interface Hash$instance extends Transform {
807
830
  copy(): Hash;
808
- digest(encoding: string | undefined): string;
831
+ digest(encoding: string): string;
809
832
  digest(): byte[];
810
833
  digest(outputLength: int): byte[];
811
834
  dispose(): void;
812
- update(data: string, inputEncoding?: string | undefined): Hash;
835
+ update(data: string, inputEncoding?: string): Hash;
813
836
  update(data: byte[]): Hash;
814
837
  }
815
838
 
@@ -822,10 +845,10 @@ export const Hash: {
822
845
  export type Hash = Hash$instance;
823
846
 
824
847
  export interface Hmac$instance extends Transform {
825
- digest(encoding?: string | undefined): string;
848
+ digest(encoding?: string): string;
826
849
  digest(): byte[];
827
850
  dispose(): void;
828
- update(data: string, inputEncoding?: string | undefined): Hmac;
851
+ update(data: string, inputEncoding?: string): Hmac;
829
852
  update(data: byte[]): Hmac;
830
853
  }
831
854
 
@@ -877,11 +900,14 @@ export type Interface = Interface$instance;
877
900
 
878
901
  export interface InterfaceOptions$instance {
879
902
  escapeCodeTimeout: Nullable<System_Internal.Int32>;
880
- history: string[] | undefined;
903
+ get history(): string[] | undefined;
904
+ set history(value: string[]);
881
905
  historySize: Nullable<System_Internal.Int32>;
882
- input: Readable | undefined;
906
+ get input(): Readable | undefined;
907
+ set input(value: Readable);
883
908
  output: Writable;
884
- prompt: string | undefined;
909
+ get prompt(): string | undefined;
910
+ set prompt(value: string);
885
911
  removeHistoryDuplicates: Nullable<System_Internal.Boolean>;
886
912
  tabSize: Nullable<System_Internal.Int32>;
887
913
  terminal: Nullable<System_Internal.Boolean>;
@@ -912,7 +938,7 @@ export interface KeyObject$instance {
912
938
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
913
939
  readonly type_: string;
914
940
  dispose(): void;
915
- export_(options?: unknown | undefined): unknown;
941
+ export_(options?: unknown): unknown;
916
942
  }
917
943
 
918
944
 
@@ -955,7 +981,8 @@ export interface LookupOptions$instance {
955
981
  all: Nullable<System_Internal.Boolean>;
956
982
  family: unknown;
957
983
  hints: Nullable<System_Internal.Int32>;
958
- order: string | undefined;
984
+ get order(): string | undefined;
985
+ set order(value: string);
959
986
  verbatim: Nullable<System_Internal.Boolean>;
960
987
  }
961
988
 
@@ -968,7 +995,8 @@ export const LookupOptions: {
968
995
  export type LookupOptions = LookupOptions$instance;
969
996
 
970
997
  export interface MarkOptions$instance {
971
- detail: unknown | undefined;
998
+ get detail(): unknown | undefined;
999
+ set detail(value: unknown);
972
1000
  startTime: Nullable<System_Internal.Double>;
973
1001
  }
974
1002
 
@@ -981,11 +1009,14 @@ export const MarkOptions: {
981
1009
  export type MarkOptions = MarkOptions$instance;
982
1010
 
983
1011
  export interface MeasureOptions$instance {
984
- detail: unknown | undefined;
1012
+ get detail(): unknown | undefined;
1013
+ set detail(value: unknown);
985
1014
  end: Nullable<System_Internal.Double>;
986
- endMark: string | undefined;
1015
+ get endMark(): string | undefined;
1016
+ set endMark(value: string);
987
1017
  start: Nullable<System_Internal.Double>;
988
- startMark: string | undefined;
1018
+ get startMark(): string | undefined;
1019
+ set startMark(value: string);
989
1020
  }
990
1021
 
991
1022
 
@@ -1058,7 +1089,7 @@ export interface PathModule$instance {
1058
1089
  readonly posix: PathModule;
1059
1090
  readonly sep: string;
1060
1091
  readonly win32: PathModule;
1061
- basename(path: string, suffix?: string | undefined): string;
1092
+ basename(path: string, suffix?: string): string;
1062
1093
  dirname(path: string): string;
1063
1094
  extname(path: string): string;
1064
1095
  format(pathObject: ParsedPath): string;
@@ -1083,7 +1114,8 @@ export type PathModule = PathModule$instance;
1083
1114
 
1084
1115
  export interface PeerCertificate$instance {
1085
1116
  ca: boolean;
1086
- ext_key_usage: string[] | undefined;
1117
+ get ext_key_usage(): string[] | undefined;
1118
+ set ext_key_usage(value: string[]);
1087
1119
  fingerprint: string;
1088
1120
  fingerprint256: string;
1089
1121
  fingerprint512: string;
@@ -1091,7 +1123,8 @@ export interface PeerCertificate$instance {
1091
1123
  raw: byte[];
1092
1124
  serialNumber: string;
1093
1125
  subject: TLSCertificateInfo;
1094
- subjectaltname: string | undefined;
1126
+ get subjectaltname(): string | undefined;
1127
+ set subjectaltname(value: string);
1095
1128
  valid_from: string;
1096
1129
  valid_to: string;
1097
1130
  }
@@ -1125,7 +1158,7 @@ export interface PerformanceMark$instance extends PerformanceEntry {
1125
1158
 
1126
1159
 
1127
1160
  export const PerformanceMark: {
1128
- new(name: string | undefined, startTime: double, detail: unknown | undefined): PerformanceMark;
1161
+ new(name: string, startTime: double, detail: unknown): PerformanceMark;
1129
1162
  };
1130
1163
 
1131
1164
 
@@ -1137,7 +1170,7 @@ export interface PerformanceMeasure$instance extends PerformanceEntry {
1137
1170
 
1138
1171
 
1139
1172
  export const PerformanceMeasure: {
1140
- new(name: string | undefined, startTime: double, duration: double, detail: unknown | undefined): PerformanceMeasure;
1173
+ new(name: string, startTime: double, duration: double, detail: unknown): PerformanceMeasure;
1141
1174
  };
1142
1175
 
1143
1176
 
@@ -1160,7 +1193,7 @@ export type PerformanceObserver = PerformanceObserver$instance;
1160
1193
 
1161
1194
  export interface PerformanceObserverEntryList$instance {
1162
1195
  getEntries(): PerformanceEntry[];
1163
- getEntriesByName(name: string, type_?: string | undefined): PerformanceEntry[];
1196
+ getEntriesByName(name: string, type_?: string): PerformanceEntry[];
1164
1197
  getEntriesByType(type_: string): PerformanceEntry[];
1165
1198
  }
1166
1199
 
@@ -1174,7 +1207,8 @@ export type PerformanceObserverEntryList = PerformanceObserverEntryList$instance
1174
1207
 
1175
1208
  export interface PerformanceObserverOptions$instance {
1176
1209
  buffered: boolean;
1177
- entryTypes: string[] | undefined;
1210
+ get entryTypes(): string[] | undefined;
1211
+ set entryTypes(value: string[]);
1178
1212
  }
1179
1213
 
1180
1214
 
@@ -1190,7 +1224,7 @@ export interface PrivateKeyObject$instance extends KeyObject {
1190
1224
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1191
1225
  readonly type_: string;
1192
1226
  dispose(): void;
1193
- export_(options?: unknown | undefined): unknown;
1227
+ export_(options?: unknown): unknown;
1194
1228
  export_(format: string, type_?: string, cipher?: string, passphrase?: string): string;
1195
1229
  }
1196
1230
 
@@ -1205,10 +1239,11 @@ export type PrivateKeyObject = PrivateKeyObject$instance;
1205
1239
  export interface ProcessEnv$instance {
1206
1240
  readonly count: int;
1207
1241
  readonly isReadOnly: boolean;
1208
- item: string | undefined;
1242
+ get item(): string | undefined;
1243
+ set item(value: string);
1209
1244
  readonly keys: ICollection<System_Internal.String>;
1210
1245
  readonly values: ICollection<string | undefined>;
1211
- add(key: string, value: string | undefined): void;
1246
+ add(key: string, value: string): void;
1212
1247
  add(item: KeyValuePair<System_Internal.String, System_Internal.String>): void;
1213
1248
  clear(): void;
1214
1249
  contains(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
@@ -1217,7 +1252,7 @@ export interface ProcessEnv$instance {
1217
1252
  getEnumerator(): IEnumerator<KeyValuePair<System_Internal.String, System_Internal.String>>;
1218
1253
  remove(key: string): boolean;
1219
1254
  remove(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
1220
- tryGetValue(key: string, value: string | undefined): boolean;
1255
+ tryGetValue(key: string, value: string): boolean;
1221
1256
  }
1222
1257
 
1223
1258
 
@@ -1248,8 +1283,8 @@ export interface PublicKeyObject$instance extends KeyObject {
1248
1283
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1249
1284
  readonly type_: string;
1250
1285
  dispose(): void;
1251
- export_(options?: unknown | undefined): unknown;
1252
- export_(format: string, type_?: string | undefined): string;
1286
+ export_(options?: unknown): unknown;
1287
+ export_(format: string, type_?: string): string;
1253
1288
  }
1254
1289
 
1255
1290
 
@@ -1266,15 +1301,15 @@ export interface Readable$instance extends Stream {
1266
1301
  readonly readableEnded: boolean;
1267
1302
  readonly readableFlowing: Nullable<System_Internal.Boolean>;
1268
1303
  readonly readableLength: int;
1269
- destroy(error?: Exception | undefined): void;
1304
+ destroy(error?: Exception): void;
1270
1305
  isPaused(): boolean;
1271
1306
  pause(): Readable;
1272
- push(chunk: unknown | undefined, encoding?: string | undefined): boolean;
1307
+ push(chunk: unknown, encoding?: string): boolean;
1273
1308
  read(size?: Nullable<System_Internal.Int32>): unknown | undefined;
1274
1309
  resume(): Readable;
1275
- setEncoding(encoding: string | undefined): Readable | undefined;
1276
- unpipe(destination?: Stream | undefined): Readable | undefined;
1277
- unshift(chunk: unknown | undefined): void;
1310
+ setEncoding(encoding: string): Readable;
1311
+ unpipe(destination?: Stream): Readable;
1312
+ unshift(chunk: unknown): void;
1278
1313
  }
1279
1314
 
1280
1315
 
@@ -1328,24 +1363,24 @@ export type ResolveOptions = ResolveOptions$instance;
1328
1363
  export interface Resolver$instance {
1329
1364
  cancel(): void;
1330
1365
  getServers(): string[];
1331
- resolve(hostname: string, callback: Action<Exception | undefined, string[]>): void;
1332
- resolve(hostname: string, rrtype: string, callback: Action<Exception | undefined, unknown>): void;
1333
- resolve4(hostname: string, callback: Action<Exception | undefined, string[]>): void;
1334
- resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception | undefined, unknown>): void;
1335
- resolve6(hostname: string, callback: Action<Exception | undefined, string[]>): void;
1336
- resolve6(hostname: string, options: ResolveOptions, callback: Action<Exception | undefined, unknown>): void;
1337
- resolveAny(hostname: string, callback: Action<Exception | undefined, unknown[]>): void;
1338
- resolveCaa(hostname: string, callback: Action<Exception | undefined, CaaRecord[]>): void;
1339
- resolveCname(hostname: string, callback: Action<Exception | undefined, string[]>): void;
1340
- resolveMx(hostname: string, callback: Action<Exception | undefined, MxRecord[]>): void;
1341
- resolveNaptr(hostname: string, callback: Action<Exception | undefined, NaptrRecord[]>): void;
1342
- resolveNs(hostname: string, callback: Action<Exception | undefined, string[]>): void;
1343
- resolvePtr(hostname: string, callback: Action<Exception | undefined, string[]>): void;
1344
- resolveSoa(hostname: string, callback: Action<Exception | undefined, SoaRecord>): void;
1345
- resolveSrv(hostname: string, callback: Action<Exception | undefined, SrvRecord[]>): void;
1346
- resolveTlsa(hostname: string, callback: Action<Exception | undefined, TlsaRecord[]>): void;
1347
- resolveTxt(hostname: string, callback: Action<Exception | undefined, string[][]>): void;
1348
- reverse(ip: string, callback: Action<Exception | undefined, string[]>): void;
1366
+ resolve(hostname: string, callback: Action<Exception, string[]>): void;
1367
+ resolve(hostname: string, rrtype: string, callback: Action<Exception, unknown>): void;
1368
+ resolve4(hostname: string, callback: Action<Exception, string[]>): void;
1369
+ resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
1370
+ resolve6(hostname: string, callback: Action<Exception, string[]>): void;
1371
+ resolve6(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
1372
+ resolveAny(hostname: string, callback: Action<Exception, unknown[]>): void;
1373
+ resolveCaa(hostname: string, callback: Action<Exception, CaaRecord[]>): void;
1374
+ resolveCname(hostname: string, callback: Action<Exception, string[]>): void;
1375
+ resolveMx(hostname: string, callback: Action<Exception, MxRecord[]>): void;
1376
+ resolveNaptr(hostname: string, callback: Action<Exception, NaptrRecord[]>): void;
1377
+ resolveNs(hostname: string, callback: Action<Exception, string[]>): void;
1378
+ resolvePtr(hostname: string, callback: Action<Exception, string[]>): void;
1379
+ resolveSoa(hostname: string, callback: Action<Exception, SoaRecord>): void;
1380
+ resolveSrv(hostname: string, callback: Action<Exception, SrvRecord[]>): void;
1381
+ resolveTlsa(hostname: string, callback: Action<Exception, TlsaRecord[]>): void;
1382
+ resolveTxt(hostname: string, callback: Action<Exception, string[][]>): void;
1383
+ reverse(ip: string, callback: Action<Exception, string[]>): void;
1349
1384
  setLocalAddress(ipv4?: string, ipv6?: string): void;
1350
1385
  setServers(servers: string[]): void;
1351
1386
  }
@@ -1378,7 +1413,7 @@ export interface SecretKeyObject$instance extends KeyObject {
1378
1413
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1379
1414
  readonly type_: string;
1380
1415
  dispose(): void;
1381
- export_(options?: unknown | undefined): unknown;
1416
+ export_(options?: unknown): unknown;
1382
1417
  export_(): byte[];
1383
1418
  }
1384
1419
 
@@ -1393,11 +1428,12 @@ export type SecretKeyObject = SecretKeyObject$instance;
1393
1428
  export interface SecureContext$instance {
1394
1429
  readonly caCertificates: X509Certificate2Collection | undefined;
1395
1430
  readonly certificate: X509Certificate2 | undefined;
1396
- context: unknown | undefined;
1431
+ get context(): unknown | undefined;
1432
+ set context(value: unknown);
1397
1433
  readonly protocols: SslProtocols;
1398
- loadCACertificates(ca: unknown | undefined): void;
1399
- loadCertificate(cert: unknown | undefined, key: unknown | undefined, passphrase: string | undefined): void;
1400
- setProtocols(minVersion: string | undefined, maxVersion: string | undefined): void;
1434
+ loadCACertificates(ca: unknown): void;
1435
+ loadCertificate(cert: unknown, key: unknown, passphrase: string): void;
1436
+ setProtocols(minVersion: string, maxVersion: string): void;
1401
1437
  }
1402
1438
 
1403
1439
 
@@ -1409,14 +1445,22 @@ export const SecureContext: {
1409
1445
  export type SecureContext = SecureContext$instance;
1410
1446
 
1411
1447
  export interface SecureContextOptions$instance {
1412
- ca: unknown | undefined;
1413
- cert: unknown | undefined;
1414
- ciphers: string | undefined;
1415
- key: unknown | undefined;
1416
- maxVersion: string | undefined;
1417
- minVersion: string | undefined;
1418
- passphrase: string | undefined;
1419
- pfx: unknown | undefined;
1448
+ get ca(): unknown | undefined;
1449
+ set ca(value: unknown);
1450
+ get cert(): unknown | undefined;
1451
+ set cert(value: unknown);
1452
+ get ciphers(): string | undefined;
1453
+ set ciphers(value: string);
1454
+ get key(): unknown | undefined;
1455
+ set key(value: unknown);
1456
+ get maxVersion(): string | undefined;
1457
+ set maxVersion(value: string);
1458
+ get minVersion(): string | undefined;
1459
+ set minVersion(value: string);
1460
+ get passphrase(): string | undefined;
1461
+ set passphrase(value: string);
1462
+ get pfx(): unknown | undefined;
1463
+ set pfx(value: unknown);
1420
1464
  }
1421
1465
 
1422
1466
 
@@ -1431,13 +1475,13 @@ export interface Server$instance extends EventEmitter {
1431
1475
  readonly listening: boolean;
1432
1476
  maxConnections: int;
1433
1477
  address(): unknown;
1434
- close(callback?: Action<Exception | undefined> | undefined): Server;
1435
- getConnections(callback: Action<Exception | undefined, System_Internal.Int32>): void;
1436
- listen(port: int, hostname: string, backlog: int, listeningListener?: Action | undefined): Server;
1437
- listen(port: int, hostname: string, listeningListener?: Action | undefined): Server;
1438
- listen(port: int, backlog: int, listeningListener?: Action | undefined): Server;
1439
- listen(port: int, listeningListener?: Action | undefined): Server;
1440
- listen(options: ListenOptions, listeningListener?: Action | undefined): Server;
1478
+ close(callback?: Action<Exception>): Server;
1479
+ getConnections(callback: Action<Exception, System_Internal.Int32>): void;
1480
+ listen(port: int, hostname: string, backlog: int, listeningListener?: Action): Server;
1481
+ listen(port: int, hostname: string, listeningListener?: Action): Server;
1482
+ listen(port: int, backlog: int, listeningListener?: Action): Server;
1483
+ listen(port: int, listeningListener?: Action): Server;
1484
+ listen(options: ListenOptions, listeningListener?: Action): Server;
1441
1485
  ref(): Server;
1442
1486
  unref(): Server;
1443
1487
  }
@@ -1445,8 +1489,8 @@ export interface Server$instance extends EventEmitter {
1445
1489
 
1446
1490
  export const Server: {
1447
1491
  new(): Server;
1448
- new(connectionListener: Action<Socket> | undefined): Server;
1449
- new(options: ServerOpts, connectionListener: Action<Socket> | undefined): Server;
1492
+ new(connectionListener: Action<Socket>): Server;
1493
+ new(options: ServerOpts, connectionListener: Action<Socket>): Server;
1450
1494
  };
1451
1495
 
1452
1496
 
@@ -1467,11 +1511,11 @@ export type ServerOpts = ServerOpts$instance;
1467
1511
 
1468
1512
  export interface Sign$instance extends Transform {
1469
1513
  dispose(): void;
1470
- sign(privateKey: string, outputEncoding?: string | undefined): string;
1514
+ sign(privateKey: string, outputEncoding?: string): string;
1471
1515
  sign(privateKey: string): byte[];
1472
- sign(privateKey: unknown, outputEncoding?: string | undefined): string;
1516
+ sign(privateKey: unknown, outputEncoding?: string): string;
1473
1517
  sign(privateKey: unknown): byte[];
1474
- update(data: string, inputEncoding?: string | undefined): Sign;
1518
+ update(data: string, inputEncoding?: string): Sign;
1475
1519
  update(data: byte[]): Sign;
1476
1520
  }
1477
1521
 
@@ -1514,32 +1558,32 @@ export interface Socket$instance extends Stream {
1514
1558
  readonly remoteFamily: string | undefined;
1515
1559
  readonly remotePort: Nullable<System_Internal.Int32>;
1516
1560
  address(): unknown;
1517
- connect(port: int, host?: string | undefined, connectionListener?: Action | undefined): Socket;
1518
- connect(options: TcpSocketConnectOpts | undefined, connectionListener?: Action | undefined): Socket | undefined;
1519
- connect(path: string | undefined, connectionListener?: Action | undefined): Socket | undefined;
1520
- destroy(error?: Exception | undefined): Socket | undefined;
1561
+ connect(port: int, host?: string, connectionListener?: Action): Socket;
1562
+ connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
1563
+ connect(path: string, connectionListener?: Action): Socket;
1564
+ destroy(error?: Exception): Socket;
1521
1565
  destroy(error?: Exception): void;
1522
1566
  destroySoon(): void;
1523
- end(callback?: Action | undefined): Socket | undefined;
1524
- end(data: byte[] | undefined, callback?: Action | undefined): Socket | undefined;
1525
- end(data: string | undefined, encoding?: string | undefined, callback?: Action | undefined): Socket;
1567
+ end(callback?: Action): Socket;
1568
+ end(data: byte[], callback?: Action): Socket;
1569
+ end(data: string, encoding?: string, callback?: Action): Socket;
1526
1570
  pause(): Socket;
1527
1571
  ref(): Socket;
1528
- resetAndDestroy(): Socket | undefined;
1572
+ resetAndDestroy(): Socket;
1529
1573
  resume(): Socket;
1530
- setEncoding(encoding?: string | undefined): Socket | undefined;
1531
- setKeepAlive(enable?: boolean, initialDelay?: int): Socket | undefined;
1532
- setNoDelay(noDelay?: boolean): Socket | undefined;
1533
- setTimeout(timeout: int, callback?: Action | undefined): Socket;
1574
+ setEncoding(encoding?: string): Socket;
1575
+ setKeepAlive(enable?: boolean, initialDelay?: int): Socket;
1576
+ setNoDelay(noDelay?: boolean): Socket;
1577
+ setTimeout(timeout: int, callback?: Action): Socket;
1534
1578
  unref(): Socket;
1535
- write(data: byte[] | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1536
- write(data: string, encoding?: string | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1579
+ write(data: byte[], callback?: Action<Exception>): boolean;
1580
+ write(data: string, encoding?: string, callback?: Action<Exception>): boolean;
1537
1581
  }
1538
1582
 
1539
1583
 
1540
1584
  export const Socket: {
1541
1585
  new(): Socket;
1542
- new(options: SocketConstructorOpts | undefined): Socket;
1586
+ new(options: SocketConstructorOpts): Socket;
1543
1587
  };
1544
1588
 
1545
1589
 
@@ -1608,10 +1652,12 @@ export const SocketOptions: {
1608
1652
  export type SocketOptions = SocketOptions$instance;
1609
1653
 
1610
1654
  export interface SpawnSyncReturns_1$instance<T> {
1611
- error: Exception | undefined;
1655
+ get error(): Exception | undefined;
1656
+ set error(value: Exception);
1612
1657
  output: (T | undefined)[];
1613
1658
  pid: int;
1614
- signal: string | undefined;
1659
+ get signal(): string | undefined;
1660
+ set signal(value: string);
1615
1661
  status: Nullable<System_Internal.Int32>;
1616
1662
  stderr: T;
1617
1663
  stdout: T;
@@ -1680,7 +1726,7 @@ export const Stream: {
1680
1726
  export type Stream = Stream$instance;
1681
1727
 
1682
1728
  export interface StringDecoder$instance {
1683
- end(buffer?: byte[] | undefined): string;
1729
+ end(buffer?: byte[]): string;
1684
1730
  write(buffer: byte[]): string;
1685
1731
  }
1686
1732
 
@@ -1698,7 +1744,8 @@ export interface TcpSocketConnectOpts$instance {
1698
1744
  host: string;
1699
1745
  keepAlive: Nullable<System_Internal.Boolean>;
1700
1746
  keepAliveInitialDelay: Nullable<System_Internal.Int32>;
1701
- localAddress: string | undefined;
1747
+ get localAddress(): string | undefined;
1748
+ set localAddress(value: string);
1702
1749
  localPort: Nullable<System_Internal.Int32>;
1703
1750
  noDelay: Nullable<System_Internal.Boolean>;
1704
1751
  port: int;
@@ -1763,11 +1810,15 @@ export type TLSCertificateInfo = TLSCertificateInfo$instance;
1763
1810
 
1764
1811
  export interface TlsOptions$instance extends CommonConnectionOptions {
1765
1812
  allowHalfOpen: Nullable<System_Internal.Boolean>;
1766
- ca: unknown | undefined;
1767
- cert: unknown | undefined;
1813
+ get ca(): unknown | undefined;
1814
+ set ca(value: unknown);
1815
+ get cert(): unknown | undefined;
1816
+ set cert(value: unknown);
1768
1817
  handshakeTimeout: Nullable<System_Internal.Int32>;
1769
- key: unknown | undefined;
1770
- passphrase: string | undefined;
1818
+ get key(): unknown | undefined;
1819
+ set key(value: unknown);
1820
+ get passphrase(): string | undefined;
1821
+ set passphrase(value: string);
1771
1822
  pauseOnConnect: Nullable<System_Internal.Boolean>;
1772
1823
  sessionTimeout: Nullable<System_Internal.Int32>;
1773
1824
  }
@@ -1781,17 +1832,17 @@ export const TlsOptions: {
1781
1832
  export type TlsOptions = TlsOptions$instance;
1782
1833
 
1783
1834
  export interface TLSServer$instance extends Server {
1784
- addContext(hostname: string | undefined, context: unknown | undefined): void;
1785
- getTicketKeys(): byte[] | undefined;
1786
- setSecureContext(options: SecureContextOptions | undefined): void;
1787
- setTicketKeys(keys: byte[] | undefined): void;
1835
+ addContext(hostname: string, context: unknown): void;
1836
+ getTicketKeys(): byte[];
1837
+ setSecureContext(options: SecureContextOptions): void;
1838
+ setTicketKeys(keys: byte[]): void;
1788
1839
  }
1789
1840
 
1790
1841
 
1791
1842
  export const TLSServer: {
1792
1843
  new(): TLSServer;
1793
- new(secureConnectionListener: Action<TLSSocket> | undefined): TLSServer;
1794
- new(options: TlsOptions | undefined, secureConnectionListener: Action<TLSSocket> | undefined): TLSServer;
1844
+ new(secureConnectionListener: Action<TLSSocket>): TLSServer;
1845
+ new(options: TlsOptions, secureConnectionListener: Action<TLSSocket>): TLSServer;
1795
1846
  };
1796
1847
 
1797
1848
 
@@ -1804,9 +1855,9 @@ export interface TLSSocket$instance extends Socket {
1804
1855
  readonly encrypted: boolean;
1805
1856
  disableRenegotiation(): void;
1806
1857
  enableTrace(): void;
1807
- exportKeyingMaterial(length: int, label: string | undefined, context: byte[] | undefined): byte[] | undefined;
1858
+ exportKeyingMaterial(length: int, label: string, context: byte[]): byte[];
1808
1859
  getCertificate(): PeerCertificate | undefined;
1809
- getCipher(): CipherNameAndProtocol | undefined;
1860
+ getCipher(): CipherNameAndProtocol;
1810
1861
  getEphemeralKeyInfo(): EphemeralKeyInfo | undefined;
1811
1862
  getFinished(): byte[] | undefined;
1812
1863
  getPeerCertificate(detailed?: boolean): PeerCertificate | undefined;
@@ -1814,36 +1865,41 @@ export interface TLSSocket$instance extends Socket {
1814
1865
  getPeerX509Certificate(): unknown | undefined;
1815
1866
  getProtocol(): string | undefined;
1816
1867
  getSession(): byte[] | undefined;
1817
- getSharedSigalgs(): (string | undefined)[] | undefined;
1868
+ getSharedSigalgs(): string[];
1818
1869
  getTLSTicket(): byte[] | undefined;
1819
1870
  getX509Certificate(): unknown | undefined;
1820
1871
  isSessionReused(): boolean;
1821
- renegotiate(options: unknown | undefined, callback: Action<Exception | undefined>): boolean;
1822
- setKeyCert(context: unknown | undefined): void;
1872
+ renegotiate(options: unknown, callback: Action<Exception>): boolean;
1873
+ setKeyCert(context: unknown): void;
1823
1874
  setMaxSendFragment(size: int): boolean;
1824
- startReading(): void;
1825
- write(data: byte[] | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1826
- write(data: string, encoding?: string | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1827
- write(data: byte[] | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1828
- write(data: string, encoding?: string | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1875
+ write(data: byte[], callback?: Action<Exception>): boolean;
1876
+ write(data: string, encoding?: string, callback?: Action<Exception>): boolean;
1877
+ write(data: byte[], callback?: Action<Exception>): boolean;
1878
+ write(data: string, encoding?: string, callback?: Action<Exception>): boolean;
1829
1879
  }
1830
1880
 
1831
1881
 
1832
1882
  export const TLSSocket: {
1833
- new(socket: Socket | undefined, options: TLSSocketOptions | undefined): TLSSocket;
1883
+ new(socket: Socket, options: TLSSocketOptions): TLSSocket;
1834
1884
  };
1835
1885
 
1836
1886
 
1837
1887
  export type TLSSocket = TLSSocket$instance;
1838
1888
 
1839
1889
  export interface TLSSocketOptions$instance extends CommonConnectionOptions {
1840
- ca: unknown | undefined;
1841
- cert: unknown | undefined;
1890
+ get ca(): unknown | undefined;
1891
+ set ca(value: unknown);
1892
+ get cert(): unknown | undefined;
1893
+ set cert(value: unknown);
1842
1894
  isServer: Nullable<System_Internal.Boolean>;
1843
- key: unknown | undefined;
1844
- passphrase: string | undefined;
1845
- server: Server | undefined;
1846
- servername: string | undefined;
1895
+ get key(): unknown | undefined;
1896
+ set key(value: unknown);
1897
+ get passphrase(): string | undefined;
1898
+ set passphrase(value: string);
1899
+ get server(): Server | undefined;
1900
+ set server(value: Server);
1901
+ get servername(): string | undefined;
1902
+ set servername(value: string);
1847
1903
  }
1848
1904
 
1849
1905
 
@@ -1884,9 +1940,9 @@ export interface URL$instance {
1884
1940
 
1885
1941
 
1886
1942
  export const URL: {
1887
- new(input: string, base: string | undefined): URL;
1888
- canParse(input: string, base?: string | undefined): boolean;
1889
- parse(input: string, base?: string): URL;
1943
+ new(input: string, base: string): URL;
1944
+ canParse(input: string, base?: string): boolean;
1945
+ parse(input: string, base?: string): URL | undefined;
1890
1946
  };
1891
1947
 
1892
1948
 
@@ -1895,12 +1951,12 @@ export type URL = URL$instance;
1895
1951
  export interface URLSearchParams$instance {
1896
1952
  readonly size: int;
1897
1953
  append(name: string, value: string): void;
1898
- delete_(name: string, value?: string | undefined): void;
1954
+ delete_(name: string, value?: string): void;
1899
1955
  entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
1900
1956
  forEach(callback: Action<System_Internal.String, System_Internal.String>): void;
1901
1957
  get_(name: string): string | undefined;
1902
1958
  getAll(name: string): string[];
1903
- has(name: string, value?: string | undefined): boolean;
1959
+ has(name: string, value?: string): boolean;
1904
1960
  keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
1905
1961
  set_(name: string, value: string): void;
1906
1962
  sort(): void;
@@ -1919,7 +1975,8 @@ export type URLSearchParams = URLSearchParams$instance;
1919
1975
  export interface UserInfo$instance {
1920
1976
  gid: int;
1921
1977
  homedir: string;
1922
- shell: string | undefined;
1978
+ get shell(): string | undefined;
1979
+ set shell(value: string);
1923
1980
  uid: int;
1924
1981
  username: string;
1925
1982
  }
@@ -1934,11 +1991,11 @@ export type UserInfo = UserInfo$instance;
1934
1991
 
1935
1992
  export interface Verify$instance extends Transform {
1936
1993
  dispose(): void;
1937
- update(data: string, inputEncoding?: string | undefined): Verify;
1994
+ update(data: string, inputEncoding?: string): Verify;
1938
1995
  update(data: byte[]): Verify;
1939
- verify(publicKey: string, signature: string, signatureEncoding?: string | undefined): boolean;
1996
+ verify(publicKey: string, signature: string, signatureEncoding?: string): boolean;
1940
1997
  verify(publicKey: string, signature: byte[]): boolean;
1941
- verify(publicKey: unknown, signature: string, signatureEncoding?: string | undefined): boolean;
1998
+ verify(publicKey: unknown, signature: string, signatureEncoding?: string): boolean;
1942
1999
  verify(publicKey: unknown, signature: byte[]): boolean;
1943
2000
  }
1944
2001
 
@@ -1957,10 +2014,10 @@ export interface Writable$instance extends Stream {
1957
2014
  readonly writableEnded: boolean;
1958
2015
  readonly writableLength: int;
1959
2016
  cork(): void;
1960
- destroy(error?: Exception | undefined): void;
1961
- end(chunk?: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): void;
2017
+ destroy(error?: Exception): void;
2018
+ end(chunk?: unknown, encoding?: string, callback?: Action): void;
1962
2019
  uncork(): void;
1963
- write(chunk: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): boolean;
2020
+ write(chunk: unknown, encoding?: string, callback?: Action): boolean;
1964
2021
  }
1965
2022
 
1966
2023
 
@@ -2017,21 +2074,21 @@ export const ZlibOptions: {
2017
2074
  export type ZlibOptions = ZlibOptions$instance;
2018
2075
 
2019
2076
  export abstract class assert$instance {
2020
- static deepEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2021
- static deepStrictEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2022
- static doesNotMatch(string_: string | undefined, regexp: Regex | undefined, message?: string | undefined): void;
2023
- static doesNotThrow(fn: Action | undefined, message?: string | undefined): void;
2024
- static equal(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2025
- static fail(message?: string | undefined): void;
2026
- static ifError(value: unknown | undefined): void;
2027
- static match(string_: string | undefined, regexp: Regex | undefined, message?: string | undefined): void;
2028
- static notDeepEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2029
- static notDeepStrictEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2030
- static notEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2031
- static notStrictEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2032
- static ok(value: boolean, message?: string | undefined): void;
2033
- static strictEqual(actual: unknown | undefined, expected: unknown | undefined, message?: string | undefined): void;
2034
- static throws(fn: Action | undefined, message?: string | undefined): void;
2077
+ static deepEqual(actual: unknown, expected: unknown, message?: string): void;
2078
+ static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2079
+ static doesNotMatch(string_: string, regexp: Regex, message?: string): void;
2080
+ static doesNotThrow(fn: Action, message?: string): void;
2081
+ static equal(actual: unknown, expected: unknown, message?: string): void;
2082
+ static fail(message?: string): void;
2083
+ static ifError(value: unknown): void;
2084
+ static match(string_: string, regexp: Regex, message?: string): void;
2085
+ static notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
2086
+ static notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2087
+ static notEqual(actual: unknown, expected: unknown, message?: string): void;
2088
+ static notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2089
+ static ok(value: boolean, message?: string): void;
2090
+ static strictEqual(actual: unknown, expected: unknown, message?: string): void;
2091
+ static throws(fn: Action, message?: string): void;
2035
2092
  }
2036
2093
 
2037
2094
 
@@ -2050,54 +2107,54 @@ export abstract class Certificate$instance {
2050
2107
  export type Certificate = Certificate$instance;
2051
2108
 
2052
2109
  export abstract class child_process$instance {
2053
- static exec(command: string, options: ExecOptions | undefined, callback: Action<Exception | undefined, System_Internal.String, System_Internal.String>): void;
2054
- static exec(command: string, callback: Action<Exception | undefined, System_Internal.String, System_Internal.String>): void;
2055
- static execFile(file: string, args: string[] | undefined, options: ExecOptions | undefined, callback: Action<Exception | undefined, System_Internal.String, System_Internal.String>): void;
2056
- static execFileSync(file: string, args?: string[] | undefined, options?: ExecOptions | undefined): unknown;
2057
- static execSync(command: string, options: ExecOptions | undefined): unknown;
2110
+ static exec(command: string, options: ExecOptions, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2111
+ static exec(command: string, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2112
+ static execFile(file: string, args: string[], options: ExecOptions, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2113
+ static execFileSync(file: string, args?: string[], options?: ExecOptions): unknown;
2114
+ static execSync(command: string, options: ExecOptions): unknown;
2058
2115
  static execSync(command: string): byte[];
2059
- static fork(modulePath: string, args?: string[] | undefined, options?: ExecOptions | undefined): ChildProcess;
2060
- static spawn(command: string, args?: string[] | undefined, options?: ExecOptions | undefined): ChildProcess;
2061
- static spawnSync(command: string, args?: string[] | undefined, options?: ExecOptions | undefined): SpawnSyncReturns_1<byte[]>;
2062
- static spawnSyncString(command: string, args?: string[] | undefined, options?: ExecOptions | undefined): SpawnSyncReturns_1<System_Internal.String>;
2116
+ static fork(modulePath: string, args?: string[], options?: ExecOptions): ChildProcess;
2117
+ static spawn(command: string, args?: string[], options?: ExecOptions): ChildProcess;
2118
+ static spawnSync(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<byte[]>;
2119
+ static spawnSyncString(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<System_Internal.String>;
2063
2120
  }
2064
2121
 
2065
2122
 
2066
2123
  export type child_process = child_process$instance;
2067
2124
 
2068
2125
  export abstract class console$instance {
2069
- static assert(value: boolean, message?: string | undefined, ...optionalParams: unknown[]): void;
2126
+ static assert(value: boolean, message?: string, ...optionalParams: unknown[]): void;
2070
2127
  static clear(): void;
2071
2128
  static count(label?: string): void;
2072
2129
  static countReset(label?: string): void;
2073
- static debug(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2074
- static dir(obj: unknown | undefined, ...options: unknown[]): void;
2130
+ static debug(message?: unknown, ...optionalParams: unknown[]): void;
2131
+ static dir(obj: unknown, ...options: unknown[]): void;
2075
2132
  static dirxml(...data: unknown[]): void;
2076
- static error(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2133
+ static error(message?: unknown, ...optionalParams: unknown[]): void;
2077
2134
  static group(...label: unknown[]): void;
2078
2135
  static groupCollapsed(...label: unknown[]): void;
2079
2136
  static groupEnd(): void;
2080
- static info(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2081
- static log(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2137
+ static info(message?: unknown, ...optionalParams: unknown[]): void;
2138
+ static log(message?: unknown, ...optionalParams: unknown[]): void;
2082
2139
  static profile(label?: string): void;
2083
2140
  static profileEnd(label?: string): void;
2084
- static table(tabularData: unknown, properties?: string[] | undefined): void;
2141
+ static table(tabularData: unknown, properties?: string[]): void;
2085
2142
  static time(label?: string): void;
2086
2143
  static timeEnd(label?: string): void;
2087
- static timeLog(label?: string | undefined, ...data: unknown[]): void;
2144
+ static timeLog(label?: string, ...data: unknown[]): void;
2088
2145
  static timeStamp(label?: string): void;
2089
- static trace(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2090
- static warn(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2146
+ static trace(message?: unknown, ...optionalParams: unknown[]): void;
2147
+ static warn(message?: unknown, ...optionalParams: unknown[]): void;
2091
2148
  }
2092
2149
 
2093
2150
 
2094
2151
  export type console = console$instance;
2095
2152
 
2096
2153
  export abstract class crypto$instance {
2097
- static createCipheriv(algorithm: string, key: byte[], iv: byte[] | undefined): Cipher;
2098
- static createCipheriv(algorithm: string, key: string, iv: string | undefined): Cipher;
2099
- static createDecipheriv(algorithm: string, key: byte[], iv: byte[] | undefined): Decipher;
2100
- static createDecipheriv(algorithm: string, key: string, iv: string | undefined): Decipher;
2154
+ static createCipheriv(algorithm: string, key: byte[], iv: byte[]): Cipher;
2155
+ static createCipheriv(algorithm: string, key: string, iv: string): Cipher;
2156
+ static createDecipheriv(algorithm: string, key: byte[], iv: byte[]): Decipher;
2157
+ static createDecipheriv(algorithm: string, key: string, iv: string): Decipher;
2101
2158
  static createDiffieHellman(prime: byte[], generator: byte[]): DiffieHellman;
2102
2159
  static createDiffieHellman(prime: byte[], generator?: int): DiffieHellman;
2103
2160
  static createDiffieHellman(primeLength: int, generator?: int): DiffieHellman;
@@ -2113,23 +2170,23 @@ export abstract class crypto$instance {
2113
2170
  static createPublicKey(key: byte[]): KeyObject;
2114
2171
  static createPublicKey(key: string): KeyObject;
2115
2172
  static createSecretKey(key: byte[]): KeyObject;
2116
- static createSecretKey(key: string, encoding?: string | undefined): KeyObject;
2173
+ static createSecretKey(key: string, encoding?: string): KeyObject;
2117
2174
  static createSign(algorithm: string): Sign;
2118
2175
  static createVerify(algorithm: string): Verify;
2119
- static generateKey(type_: string, options: unknown, callback: Action<Exception | undefined, KeyObject | undefined>): void;
2176
+ static generateKey(type_: string, options: unknown, callback: Action<Exception, KeyObject>): void;
2120
2177
  static generateKey(type_: string, options: unknown): KeyObject;
2121
- static generateKeyPair(type_: string, options: unknown | undefined, callback: Action<Exception | undefined, unknown | undefined, unknown | undefined>): void;
2122
- static generateKeyPairSync(type_: string, options?: unknown | undefined): ValueTuple<KeyObject, KeyObject>;
2178
+ static generateKeyPair(type_: string, options: unknown, callback: Action<Exception, unknown, unknown>): void;
2179
+ static generateKeyPairSync(type_: string, options?: unknown): ValueTuple<KeyObject, KeyObject>;
2123
2180
  static getCiphers(): string[];
2124
2181
  static getCurves(): string[];
2125
2182
  static getDefaultCipherList(): string;
2126
2183
  static getDiffieHellman(groupName: string): DiffieHellman;
2127
2184
  static getFips(): boolean;
2128
2185
  static getHashes(): string[];
2129
- static hash(algorithm: string, data: byte[], outputEncoding?: string | undefined): byte[];
2130
- static hkdf(digest: string, ikm: byte[], salt: byte[], info: byte[], keylen: int, callback: Action<Exception | undefined, byte[] | undefined>): void;
2186
+ static hash(algorithm: string, data: byte[], outputEncoding?: string): byte[];
2187
+ static hkdf(digest: string, ikm: byte[], salt: byte[], info: byte[], keylen: int, callback: Action<Exception, byte[]>): void;
2131
2188
  static hkdfSync(digest: string, ikm: byte[], salt: byte[], info: byte[], keylen: int): byte[];
2132
- static pbkdf2(password: string, salt: string, iterations: int, keylen: int, digest: string, callback: Action<Exception | undefined, byte[] | undefined>): void;
2189
+ static pbkdf2(password: string, salt: string, iterations: int, keylen: int, digest: string, callback: Action<Exception, byte[]>): void;
2133
2190
  static pbkdf2Sync(password: byte[], salt: byte[], iterations: int, keylen: int, digest: string): byte[];
2134
2191
  static pbkdf2Sync(password: string, salt: string, iterations: int, keylen: int, digest: string): byte[];
2135
2192
  static privateDecrypt(key: unknown, buffer: byte[]): byte[];
@@ -2140,31 +2197,31 @@ export abstract class crypto$instance {
2140
2197
  static publicDecrypt(key: string, buffer: byte[]): byte[];
2141
2198
  static publicEncrypt(key: unknown, buffer: byte[]): byte[];
2142
2199
  static publicEncrypt(key: string, buffer: byte[]): byte[];
2143
- static randomBytes(size: int, callback: Action<Exception | undefined, byte[] | undefined>): void;
2200
+ static randomBytes(size: int, callback: Action<Exception, byte[]>): void;
2144
2201
  static randomBytes(size: int): byte[];
2145
- static randomFill(buffer: byte[], offset: int, size: int, callback: Action<Exception | undefined, byte[] | undefined>): void;
2202
+ static randomFill(buffer: byte[], offset: int, size: int, callback: Action<Exception, byte[]>): void;
2146
2203
  static randomFillSync(buffer: byte[], offset?: int, size?: Nullable<System_Internal.Int32>): byte[];
2147
2204
  static randomInt(min: int, max: int): int;
2148
2205
  static randomInt(max: int): int;
2149
2206
  static randomUUID(): string;
2150
- static scrypt(password: string, salt: string, keylen: int, options: unknown | undefined, callback: Action<Exception | undefined, byte[] | undefined>): void;
2151
- static scryptSync(password: byte[], salt: byte[], keylen: int, options?: unknown | undefined): byte[];
2152
- static scryptSync(password: string, salt: string, keylen: int, options?: unknown | undefined): byte[];
2207
+ static scrypt(password: string, salt: string, keylen: int, options: unknown, callback: Action<Exception, byte[]>): void;
2208
+ static scryptSync(password: byte[], salt: byte[], keylen: int, options?: unknown): byte[];
2209
+ static scryptSync(password: string, salt: string, keylen: int, options?: unknown): byte[];
2153
2210
  static setDefaultEncoding(encoding: string): void;
2154
2211
  static setFips(enabled: boolean): void;
2155
- static sign(algorithm: string | undefined, data: byte[], privateKey: KeyObject): byte[];
2156
- static sign(algorithm: string | undefined, data: byte[], privateKey: string): byte[];
2212
+ static sign(algorithm: string, data: byte[], privateKey: KeyObject): byte[];
2213
+ static sign(algorithm: string, data: byte[], privateKey: string): byte[];
2157
2214
  static timingSafeEqual(a: byte[], b: byte[]): boolean;
2158
- static verify(algorithm: string | undefined, data: byte[], publicKey: KeyObject, signature: byte[]): boolean;
2159
- static verify(algorithm: string | undefined, data: byte[], publicKey: string, signature: byte[]): boolean;
2215
+ static verify(algorithm: string, data: byte[], publicKey: KeyObject, signature: byte[]): boolean;
2216
+ static verify(algorithm: string, data: byte[], publicKey: string, signature: byte[]): boolean;
2160
2217
  }
2161
2218
 
2162
2219
 
2163
2220
  export type crypto = crypto$instance;
2164
2221
 
2165
2222
  export abstract class dgram$instance {
2166
- static createSocket(options: SocketOptions, callback?: Action<byte[], RemoteInfo> | undefined): DgramSocket;
2167
- static createSocket(type_: string, callback?: Action<byte[], RemoteInfo> | undefined): DgramSocket;
2223
+ static createSocket(options: SocketOptions, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2224
+ static createSocket(type_: string, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2168
2225
  }
2169
2226
 
2170
2227
 
@@ -2200,29 +2257,29 @@ export abstract class dns$instance {
2200
2257
  static readonly CANCELLED: string;
2201
2258
  static getDefaultResultOrder(): string;
2202
2259
  static getServers(): string[];
2203
- static lookup(hostname: string, options: LookupOptions | undefined, callback: Action<Exception | undefined, LookupAddress[]>): void;
2204
- static lookup(hostname: string, options: LookupOptions | undefined, callback: Action<Exception | undefined, System_Internal.String, System_Internal.Int32>): void;
2205
- static lookup(hostname: string, callback: Action<Exception | undefined, System_Internal.String, System_Internal.Int32>): void;
2206
- static lookup(hostname: string, family: int, callback: Action<Exception | undefined, System_Internal.String, System_Internal.Int32>): void;
2207
- static lookupService(address: string, port: int, callback: Action<Exception | undefined, System_Internal.String, System_Internal.String>): void;
2208
- static resolve(hostname: string, callback: Action<Exception | undefined, string[]>): void;
2209
- static resolve(hostname: string, rrtype: string, callback: Action<Exception | undefined, unknown>): void;
2210
- static resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception | undefined, unknown>): void;
2211
- static resolve4(hostname: string, callback: Action<Exception | undefined, string[]>): void;
2212
- static resolve6(hostname: string, options: ResolveOptions, callback: Action<Exception | undefined, unknown>): void;
2213
- static resolve6(hostname: string, callback: Action<Exception | undefined, string[]>): void;
2214
- static resolveAny(hostname: string, callback: Action<Exception | undefined, unknown[]>): void;
2215
- static resolveCaa(hostname: string, callback: Action<Exception | undefined, CaaRecord[]>): void;
2216
- static resolveCname(hostname: string, callback: Action<Exception | undefined, string[]>): void;
2217
- static resolveMx(hostname: string, callback: Action<Exception | undefined, MxRecord[]>): void;
2218
- static resolveNaptr(hostname: string, callback: Action<Exception | undefined, NaptrRecord[]>): void;
2219
- static resolveNs(hostname: string, callback: Action<Exception | undefined, string[]>): void;
2220
- static resolvePtr(hostname: string, callback: Action<Exception | undefined, string[]>): void;
2221
- static resolveSoa(hostname: string, callback: Action<Exception | undefined, SoaRecord>): void;
2222
- static resolveSrv(hostname: string, callback: Action<Exception | undefined, SrvRecord[]>): void;
2223
- static resolveTlsa(hostname: string, callback: Action<Exception | undefined, TlsaRecord[]>): void;
2224
- static resolveTxt(hostname: string, callback: Action<Exception | undefined, string[][]>): void;
2225
- static reverse(ip: string, callback: Action<Exception | undefined, string[]>): void;
2260
+ static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, LookupAddress[]>): void;
2261
+ static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, System_Internal.String, System_Internal.Int32>): void;
2262
+ static lookup(hostname: string, callback: Action<Exception, System_Internal.String, System_Internal.Int32>): void;
2263
+ static lookup(hostname: string, family: int, callback: Action<Exception, System_Internal.String, System_Internal.Int32>): void;
2264
+ static lookupService(address: string, port: int, callback: Action<Exception, System_Internal.String, System_Internal.String>): void;
2265
+ static resolve(hostname: string, callback: Action<Exception, string[]>): void;
2266
+ static resolve(hostname: string, rrtype: string, callback: Action<Exception, unknown>): void;
2267
+ static resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
2268
+ static resolve4(hostname: string, callback: Action<Exception, string[]>): void;
2269
+ static resolve6(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
2270
+ static resolve6(hostname: string, callback: Action<Exception, string[]>): void;
2271
+ static resolveAny(hostname: string, callback: Action<Exception, unknown[]>): void;
2272
+ static resolveCaa(hostname: string, callback: Action<Exception, CaaRecord[]>): void;
2273
+ static resolveCname(hostname: string, callback: Action<Exception, string[]>): void;
2274
+ static resolveMx(hostname: string, callback: Action<Exception, MxRecord[]>): void;
2275
+ static resolveNaptr(hostname: string, callback: Action<Exception, NaptrRecord[]>): void;
2276
+ static resolveNs(hostname: string, callback: Action<Exception, string[]>): void;
2277
+ static resolvePtr(hostname: string, callback: Action<Exception, string[]>): void;
2278
+ static resolveSoa(hostname: string, callback: Action<Exception, SoaRecord>): void;
2279
+ static resolveSrv(hostname: string, callback: Action<Exception, SrvRecord[]>): void;
2280
+ static resolveTlsa(hostname: string, callback: Action<Exception, TlsaRecord[]>): void;
2281
+ static resolveTxt(hostname: string, callback: Action<Exception, string[][]>): void;
2282
+ static reverse(ip: string, callback: Action<Exception, string[]>): void;
2226
2283
  static setDefaultResultOrder(order: string): void;
2227
2284
  static setServers(servers: string[]): void;
2228
2285
  }
@@ -2233,8 +2290,8 @@ export type dns = dns$instance;
2233
2290
  export abstract class fs$instance {
2234
2291
  static access(path: string, mode?: int): Task;
2235
2292
  static accessSync(path: string, mode?: int): void;
2236
- static appendFile(path: string, data: string, encoding?: string | undefined): Task;
2237
- static appendFileSync(path: string, data: string, encoding?: string | undefined): void;
2293
+ static appendFile(path: string, data: string, encoding?: string): Task;
2294
+ static appendFileSync(path: string, data: string, encoding?: string): void;
2238
2295
  static chmod(path: string, mode: int): Task;
2239
2296
  static chmodSync(path: string, mode: int): void;
2240
2297
  static close(fd: int): Task;
@@ -2253,9 +2310,9 @@ export abstract class fs$instance {
2253
2310
  static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
2254
2311
  static readdir(path: string, withFileTypes?: boolean): Task<string[]>;
2255
2312
  static readdirSync(path: string, withFileTypes?: boolean): string[];
2256
- static readFile(path: string, encoding?: string | undefined): Task<System_Internal.String>;
2313
+ static readFile(path: string, encoding?: string): Task<System_Internal.String>;
2257
2314
  static readFileBytes(path: string): Task<byte[]>;
2258
- static readFileSync(path: string, encoding?: string | undefined): string;
2315
+ static readFileSync(path: string, encoding?: string): string;
2259
2316
  static readFileSyncBytes(path: string): byte[];
2260
2317
  static readlink(path: string): Task<System_Internal.String>;
2261
2318
  static readlinkSync(path: string): string;
@@ -2270,34 +2327,34 @@ export abstract class fs$instance {
2270
2327
  static rmSync(path: string, recursive?: boolean): void;
2271
2328
  static stat(path: string): Task<Stats>;
2272
2329
  static statSync(path: string): Stats;
2273
- static symlink(target: string, path: string, type_?: string | undefined): Task;
2274
- static symlinkSync(target: string, path: string, type_?: string | undefined): void;
2330
+ static symlink(target: string, path: string, type_?: string): Task;
2331
+ static symlinkSync(target: string, path: string, type_?: string): void;
2275
2332
  static truncate(path: string, len?: long): Task;
2276
2333
  static truncateSync(path: string, len?: long): void;
2277
2334
  static unlink(path: string): Task;
2278
2335
  static unlinkSync(path: string): void;
2279
2336
  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 | undefined): Task<System_Internal.Int32>;
2281
- static writeFile(path: string, data: string, encoding?: string | undefined): Task;
2337
+ static write(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): Task<System_Internal.Int32>;
2338
+ static writeFile(path: string, data: string, encoding?: string): Task;
2282
2339
  static writeFileBytes(path: string, data: byte[]): Task;
2283
- static writeFileSync(path: string, data: string, encoding?: string | undefined): void;
2340
+ static writeFileSync(path: string, data: string, encoding?: string): void;
2284
2341
  static writeFileSyncBytes(path: string, data: byte[]): void;
2285
2342
  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 | undefined): int;
2343
+ static writeSync(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): int;
2287
2344
  }
2288
2345
 
2289
2346
 
2290
2347
  export type fs = fs$instance;
2291
2348
 
2292
2349
  export abstract class net$instance {
2293
- static connect(options: TcpSocketConnectOpts, connectionListener?: Action | undefined): Socket;
2350
+ static connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
2294
2351
  static connect(port: int, host?: string, connectionListener?: Action): Socket;
2295
- static connect(path: string, connectionListener?: Action | undefined): Socket;
2296
- static createConnection(options: TcpSocketConnectOpts, connectionListener?: Action | undefined): Socket;
2352
+ static connect(path: string, connectionListener?: Action): Socket;
2353
+ static createConnection(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
2297
2354
  static createConnection(port: int, host?: string, connectionListener?: Action): Socket;
2298
- static createConnection(path: string, connectionListener?: Action | undefined): Socket;
2299
- static createServer(options: ServerOpts, connectionListener?: Action<Socket> | undefined): Server;
2300
- static createServer(connectionListener?: Action<Socket> | undefined): Server;
2355
+ static createConnection(path: string, connectionListener?: Action): Socket;
2356
+ static createServer(options: ServerOpts, connectionListener?: Action<Socket>): Server;
2357
+ static createServer(connectionListener?: Action<Socket>): Server;
2301
2358
  static getDefaultAutoSelectFamily(): boolean;
2302
2359
  static getDefaultAutoSelectFamilyAttemptTimeout(): int;
2303
2360
  static isIP(input: string): int;
@@ -2338,7 +2395,7 @@ export abstract class path$instance {
2338
2395
  static readonly delimiter: string;
2339
2396
  static readonly posix: PathModule;
2340
2397
  static readonly win32: PathModule;
2341
- static basename(path: string, suffix?: string | undefined): string;
2398
+ static basename(path: string, suffix?: string): string;
2342
2399
  static dirname(path: string): string;
2343
2400
  static extname(path: string): string;
2344
2401
  static format(pathObject: ParsedPath): string;
@@ -2359,10 +2416,10 @@ export abstract class performance$instance {
2359
2416
  static clearMarks(name?: string): void;
2360
2417
  static clearMeasures(name?: string): void;
2361
2418
  static getEntries(): PerformanceEntry[];
2362
- static getEntriesByName(name: string, type_?: string | undefined): PerformanceEntry[];
2419
+ static getEntriesByName(name: string, type_?: string): PerformanceEntry[];
2363
2420
  static getEntriesByType(type_: string): PerformanceEntry[];
2364
- static mark(name: string, options?: MarkOptions | undefined): PerformanceMark;
2365
- static measure(name: string, startOrOptions?: unknown | undefined, endMark?: string | undefined): PerformanceMeasure;
2421
+ static mark(name: string, options?: MarkOptions): PerformanceMark;
2422
+ static measure(name: string, startOrOptions?: unknown, endMark?: string): PerformanceMeasure;
2366
2423
  static now(): double;
2367
2424
  }
2368
2425
 
@@ -2391,11 +2448,11 @@ export abstract class process$instance {
2391
2448
  export type process = process$instance;
2392
2449
 
2393
2450
  export abstract class querystring$instance {
2394
- static decode(str: string, sep?: string | undefined, eq?: string | undefined, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
2395
- static encode(obj: Dictionary<System_Internal.String, unknown | undefined> | undefined, sep?: string, eq?: string): string;
2451
+ static decode(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
2452
+ static encode(obj: Dictionary<System_Internal.String, unknown>, sep?: string, eq?: string): string;
2396
2453
  static escape(str: string): string;
2397
- static parse(str: string, sep?: string | undefined, eq?: string | undefined, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
2398
- static stringify(obj: Dictionary<System_Internal.String, unknown | undefined> | undefined, sep?: string, eq?: string): string;
2454
+ static parse(str: string, sep?: string, eq?: string, maxKeys?: int): Dictionary<System_Internal.String, unknown>;
2455
+ static stringify(obj: Dictionary<System_Internal.String, unknown>, sep?: string, eq?: string): string;
2399
2456
  static unescape(str: string): string;
2400
2457
  }
2401
2458
 
@@ -2403,20 +2460,20 @@ export abstract class querystring$instance {
2403
2460
  export type querystring = querystring$instance;
2404
2461
 
2405
2462
  export abstract class readline$instance {
2406
- static clearLine(stream: Writable, dir: int, callback?: Action | undefined): boolean;
2407
- static clearScreenDown(stream: Writable, callback?: Action | undefined): boolean;
2408
- static createAsyncIterator(input: Readable, options?: InterfaceOptions | undefined): IAsyncEnumerable<System_Internal.String>;
2463
+ static clearLine(stream: Writable, dir: int, callback?: Action): boolean;
2464
+ static clearScreenDown(stream: Writable, callback?: Action): boolean;
2465
+ static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable<System_Internal.String>;
2409
2466
  static createInterface(options: InterfaceOptions): Interface;
2410
- static createInterface(input: Readable, output?: Writable | undefined): Interface;
2411
- static cursorTo(stream: Writable, x: int, y?: Nullable<System_Internal.Int32>, callback?: Action | undefined): boolean;
2412
- static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action | undefined): boolean;
2467
+ static createInterface(input: Readable, output?: Writable): Interface;
2468
+ static cursorTo(stream: Writable, x: int, y?: Nullable<System_Internal.Int32>, callback?: Action): boolean;
2469
+ static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action): boolean;
2413
2470
  }
2414
2471
 
2415
2472
 
2416
2473
  export type readline = readline$instance;
2417
2474
 
2418
2475
  export abstract class stream$instance {
2419
- static finished(stream: Stream, callback: Action<Exception | undefined>): void;
2476
+ static finished(stream: Stream, callback: Action<Exception>): void;
2420
2477
  static finished(stream: Stream): Task;
2421
2478
  static pipeline(...streams: unknown[]): void;
2422
2479
  }
@@ -2446,12 +2503,12 @@ export abstract class tls$instance {
2446
2503
  static DEFAULT_CIPHERS: string;
2447
2504
  static readonly rootCertificates: string[];
2448
2505
  static checkServerIdentity(hostname: string, cert: PeerCertificate): Exception | undefined;
2449
- static connect(options: ConnectionOptions, secureConnectListener?: Action | undefined): TLSSocket;
2506
+ static connect(options: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
2450
2507
  static connect(port: int, options?: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
2451
2508
  static connect(port: int, host?: string, options?: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
2452
- static createSecureContext(options?: SecureContextOptions | undefined): SecureContext;
2453
- static createServer(options: TlsOptions, secureConnectionListener?: Action<TLSSocket> | undefined): TLSServer;
2454
- static createServer(secureConnectionListener?: Action<TLSSocket> | undefined): TLSServer;
2509
+ static createSecureContext(options?: SecureContextOptions): SecureContext;
2510
+ static createServer(options: TlsOptions, secureConnectionListener?: Action<TLSSocket>): TLSServer;
2511
+ static createServer(secureConnectionListener?: Action<TLSSocket>): TLSServer;
2455
2512
  static getCACertificates(type_?: string): string[];
2456
2513
  static getCiphers(): string[];
2457
2514
  static setDefaultCACertificates(certs: string[]): void;
@@ -2462,11 +2519,11 @@ export type tls = tls$instance;
2462
2519
 
2463
2520
  export abstract class util$instance {
2464
2521
  static debuglog(section: string): DebugLogFunction;
2465
- static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string | undefined): Func<TResult>;
2466
- static deprecate(action: Action, msg: string, code?: string | undefined): Action;
2467
- static format(format: unknown | undefined, ...args: unknown[]): string;
2522
+ static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string): Func<TResult>;
2523
+ static deprecate(action: Action, msg: string, code?: string): Action;
2524
+ static format(format: unknown, ...args: unknown[]): string;
2468
2525
  static inherits(constructor_: unknown, superConstructor: unknown): void;
2469
- static inspect(obj: unknown | undefined): string;
2526
+ static inspect(obj: unknown): string;
2470
2527
  static isArray(obj: unknown): boolean;
2471
2528
  static isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
2472
2529
  }
@@ -2483,17 +2540,17 @@ export abstract class X509CertificateExtensions$instance {
2483
2540
  export type X509CertificateExtensions = X509CertificateExtensions$instance;
2484
2541
 
2485
2542
  export abstract class zlib$instance {
2486
- static brotliCompressSync(buffer: byte[], options?: BrotliOptions | undefined): byte[];
2487
- static brotliDecompressSync(buffer: byte[], options?: BrotliOptions | undefined): byte[];
2543
+ static brotliCompressSync(buffer: byte[], options?: BrotliOptions): byte[];
2544
+ static brotliDecompressSync(buffer: byte[], options?: BrotliOptions): byte[];
2488
2545
  static crc32(data: byte[], value?: uint): uint;
2489
2546
  static crc32(data: string, value?: uint): uint;
2490
- static deflateRawSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2491
- static deflateSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2492
- static gunzipSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2493
- static gzipSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2494
- static inflateRawSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2495
- static inflateSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2496
- static unzipSync(buffer: byte[], options?: ZlibOptions | undefined): byte[];
2547
+ static deflateRawSync(buffer: byte[], options?: ZlibOptions): byte[];
2548
+ static deflateSync(buffer: byte[], options?: ZlibOptions): byte[];
2549
+ static gunzipSync(buffer: byte[], options?: ZlibOptions): byte[];
2550
+ static gzipSync(buffer: byte[], options?: ZlibOptions): byte[];
2551
+ static inflateRawSync(buffer: byte[], options?: ZlibOptions): byte[];
2552
+ static inflateSync(buffer: byte[], options?: ZlibOptions): byte[];
2553
+ static unzipSync(buffer: byte[], options?: ZlibOptions): byte[];
2497
2554
  }
2498
2555
 
2499
2556