@tsonic/nodejs 0.4.0 → 0.4.2

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.
@@ -33,7 +33,7 @@ export interface AddressInfo$instance {
33
33
 
34
34
 
35
35
  export const AddressInfo: {
36
- new(): AddressInfo$instance;
36
+ new(): AddressInfo;
37
37
  };
38
38
 
39
39
 
@@ -45,7 +45,7 @@ export interface AnyAaaaRecord$instance extends RecordWithTtl {
45
45
 
46
46
 
47
47
  export const AnyAaaaRecord: {
48
- new(): AnyAaaaRecord$instance;
48
+ new(): AnyAaaaRecord;
49
49
  };
50
50
 
51
51
 
@@ -57,7 +57,7 @@ export interface AnyARecord$instance extends RecordWithTtl {
57
57
 
58
58
 
59
59
  export const AnyARecord: {
60
- new(): AnyARecord$instance;
60
+ new(): AnyARecord;
61
61
  };
62
62
 
63
63
 
@@ -69,7 +69,7 @@ export interface AnyCaaRecord$instance extends CaaRecord {
69
69
 
70
70
 
71
71
  export const AnyCaaRecord: {
72
- new(): AnyCaaRecord$instance;
72
+ new(): AnyCaaRecord;
73
73
  };
74
74
 
75
75
 
@@ -82,7 +82,7 @@ export interface AnyCnameRecord$instance {
82
82
 
83
83
 
84
84
  export const AnyCnameRecord: {
85
- new(): AnyCnameRecord$instance;
85
+ new(): AnyCnameRecord;
86
86
  };
87
87
 
88
88
 
@@ -94,7 +94,7 @@ export interface AnyMxRecord$instance extends MxRecord {
94
94
 
95
95
 
96
96
  export const AnyMxRecord: {
97
- new(): AnyMxRecord$instance;
97
+ new(): AnyMxRecord;
98
98
  };
99
99
 
100
100
 
@@ -106,7 +106,7 @@ export interface AnyNaptrRecord$instance extends NaptrRecord {
106
106
 
107
107
 
108
108
  export const AnyNaptrRecord: {
109
- new(): AnyNaptrRecord$instance;
109
+ new(): AnyNaptrRecord;
110
110
  };
111
111
 
112
112
 
@@ -119,7 +119,7 @@ export interface AnyNsRecord$instance {
119
119
 
120
120
 
121
121
  export const AnyNsRecord: {
122
- new(): AnyNsRecord$instance;
122
+ new(): AnyNsRecord;
123
123
  };
124
124
 
125
125
 
@@ -132,7 +132,7 @@ export interface AnyPtrRecord$instance {
132
132
 
133
133
 
134
134
  export const AnyPtrRecord: {
135
- new(): AnyPtrRecord$instance;
135
+ new(): AnyPtrRecord;
136
136
  };
137
137
 
138
138
 
@@ -155,7 +155,7 @@ export interface AnySoaRecord$instance extends SoaRecord {
155
155
 
156
156
 
157
157
  export const AnySoaRecord: {
158
- new(): AnySoaRecord$instance;
158
+ new(): AnySoaRecord;
159
159
  };
160
160
 
161
161
 
@@ -167,7 +167,7 @@ export interface AnySrvRecord$instance extends SrvRecord {
167
167
 
168
168
 
169
169
  export const AnySrvRecord: {
170
- new(): AnySrvRecord$instance;
170
+ new(): AnySrvRecord;
171
171
  };
172
172
 
173
173
 
@@ -179,7 +179,7 @@ export interface AnyTlsaRecord$instance extends TlsaRecord {
179
179
 
180
180
 
181
181
  export const AnyTlsaRecord: {
182
- new(): AnyTlsaRecord$instance;
182
+ new(): AnyTlsaRecord;
183
183
  };
184
184
 
185
185
 
@@ -192,23 +192,23 @@ export interface AnyTxtRecord$instance {
192
192
 
193
193
 
194
194
  export const AnyTxtRecord: {
195
- new(): AnyTxtRecord$instance;
195
+ new(): AnyTxtRecord;
196
196
  };
197
197
 
198
198
 
199
199
  export type AnyTxtRecord = AnyTxtRecord$instance;
200
200
 
201
201
  export interface AssertionError$instance extends Exception {
202
- actual: unknown;
202
+ actual: unknown | undefined;
203
203
  readonly code: string;
204
- expected: unknown;
204
+ expected: unknown | undefined;
205
205
  generatedMessage: boolean;
206
206
  operator: string;
207
207
  }
208
208
 
209
209
 
210
210
  export const AssertionError: {
211
- new(message: string, actual: unknown, expected: unknown, operator: string): AssertionError$instance;
211
+ new(message: string | undefined, actual: unknown | undefined, expected: unknown | undefined, operator: string): AssertionError;
212
212
  };
213
213
 
214
214
 
@@ -223,7 +223,7 @@ export interface BindOptions$instance {
223
223
 
224
224
 
225
225
  export const BindOptions: {
226
- new(): BindOptions$instance;
226
+ new(): BindOptions;
227
227
  };
228
228
 
229
229
 
@@ -239,7 +239,7 @@ export interface BlockList$instance {
239
239
 
240
240
 
241
241
  export const BlockList: {
242
- new(): BlockList$instance;
242
+ new(): BlockList;
243
243
  };
244
244
 
245
245
 
@@ -253,7 +253,7 @@ export interface BrotliOptions$instance {
253
253
 
254
254
 
255
255
  export const BrotliOptions: {
256
- new(): BrotliOptions$instance;
256
+ new(): BrotliOptions;
257
257
  };
258
258
 
259
259
 
@@ -344,7 +344,7 @@ export interface Buffer$instance {
344
344
 
345
345
 
346
346
  export const Buffer: {
347
- new(): Buffer$instance;
347
+ new(): Buffer;
348
348
  poolSize: int;
349
349
  alloc(size: int, fill?: unknown, encoding?: string): Buffer;
350
350
  allocUnsafe(size: int): Buffer;
@@ -365,17 +365,17 @@ export const Buffer: {
365
365
  export type Buffer = Buffer$instance;
366
366
 
367
367
  export interface CaaRecord$instance {
368
- contactemail: string;
369
- contactphone: string;
368
+ contactemail: string | undefined;
369
+ contactphone: string | undefined;
370
370
  critical: int;
371
- iodef: string;
372
- issue: string;
373
- issuewild: string;
371
+ iodef: string | undefined;
372
+ issue: string | undefined;
373
+ issuewild: string | undefined;
374
374
  }
375
375
 
376
376
 
377
377
  export const CaaRecord: {
378
- new(): CaaRecord$instance;
378
+ new(): CaaRecord;
379
379
  };
380
380
 
381
381
 
@@ -387,22 +387,22 @@ export interface ChildProcess$instance extends EventEmitter {
387
387
  readonly killed: boolean;
388
388
  readonly pid: int;
389
389
  readonly referenced: boolean;
390
- readonly signalCode: string;
390
+ readonly signalCode: string | undefined;
391
391
  readonly spawnargs: string[];
392
392
  readonly spawnfile: string;
393
393
  readonly stderr: Readable;
394
- readonly stdin: Writable;
394
+ readonly stdin: Writable | undefined;
395
395
  readonly stdout: Readable;
396
396
  disconnect(): void;
397
- kill(signal?: string): boolean;
397
+ kill(signal?: string | undefined): boolean;
398
398
  ref(): void;
399
- send(message: unknown, sendHandle?: unknown, options?: unknown, callback?: Action<Exception>): boolean;
399
+ send(message: unknown, sendHandle?: unknown | undefined, options?: unknown | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
400
400
  unref(): void;
401
401
  }
402
402
 
403
403
 
404
404
  export const ChildProcess: {
405
- new(): ChildProcess$instance;
405
+ new(): ChildProcess;
406
406
  };
407
407
 
408
408
 
@@ -410,18 +410,18 @@ export type ChildProcess = ChildProcess$instance;
410
410
 
411
411
  export interface Cipher$instance extends Transform {
412
412
  dispose(): void;
413
- final(outputEncoding?: string): string;
413
+ final(outputEncoding?: string | undefined): string;
414
414
  final(): byte[];
415
415
  getAuthTag(): byte[];
416
416
  setAAD(buffer: byte[]): void;
417
417
  setAuthTag(tagLength: int): void;
418
- update(data: string, inputEncoding?: string, outputEncoding?: string): string;
419
- update(data: byte[], outputEncoding?: string): string;
418
+ update(data: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
419
+ update(data: byte[], outputEncoding?: string | undefined): string;
420
420
  }
421
421
 
422
422
 
423
423
  export const Cipher: {
424
- new(): Cipher$instance;
424
+ new(): Cipher;
425
425
  };
426
426
 
427
427
 
@@ -435,42 +435,42 @@ export interface CipherNameAndProtocol$instance {
435
435
 
436
436
 
437
437
  export const CipherNameAndProtocol: {
438
- new(): CipherNameAndProtocol$instance;
438
+ new(): CipherNameAndProtocol;
439
439
  };
440
440
 
441
441
 
442
442
  export type CipherNameAndProtocol = CipherNameAndProtocol$instance;
443
443
 
444
444
  export interface CommonConnectionOptions$instance {
445
- alpnProtocols: string[];
445
+ alpnProtocols: string[] | undefined;
446
446
  enableTrace: Nullable<System_Internal.Boolean>;
447
447
  rejectUnauthorized: Nullable<System_Internal.Boolean>;
448
448
  requestCert: Nullable<System_Internal.Boolean>;
449
- secureContext: SecureContext;
449
+ secureContext: SecureContext | undefined;
450
450
  }
451
451
 
452
452
 
453
453
  export const CommonConnectionOptions: {
454
- new(): CommonConnectionOptions$instance;
454
+ new(): CommonConnectionOptions;
455
455
  };
456
456
 
457
457
 
458
458
  export type CommonConnectionOptions = CommonConnectionOptions$instance;
459
459
 
460
460
  export interface ConnectionOptions$instance extends CommonConnectionOptions {
461
- ca: unknown;
462
- cert: unknown;
461
+ ca: unknown | undefined;
462
+ cert: unknown | undefined;
463
463
  host: string;
464
- key: unknown;
465
- passphrase: string;
464
+ key: unknown | undefined;
465
+ passphrase: string | undefined;
466
466
  port: Nullable<System_Internal.Int32>;
467
- servername: string;
467
+ servername: string | undefined;
468
468
  timeout: Nullable<System_Internal.Int32>;
469
469
  }
470
470
 
471
471
 
472
472
  export const ConnectionOptions: {
473
- new(): ConnectionOptions$instance;
473
+ new(): ConnectionOptions;
474
474
  };
475
475
 
476
476
 
@@ -484,7 +484,7 @@ export interface CpuInfo$instance {
484
484
 
485
485
 
486
486
  export const CpuInfo: {
487
- new(): CpuInfo$instance;
487
+ new(): CpuInfo;
488
488
  };
489
489
 
490
490
 
@@ -500,7 +500,7 @@ export interface CpuTimes$instance {
500
500
 
501
501
 
502
502
  export const CpuTimes: {
503
- new(): CpuTimes$instance;
503
+ new(): CpuTimes;
504
504
  };
505
505
 
506
506
 
@@ -513,7 +513,7 @@ export interface CursorPosition$instance {
513
513
 
514
514
 
515
515
  export const CursorPosition: {
516
- new(): CursorPosition$instance;
516
+ new(): CursorPosition;
517
517
  };
518
518
 
519
519
 
@@ -521,48 +521,48 @@ export type CursorPosition = CursorPosition$instance;
521
521
 
522
522
  export interface Decipher$instance extends Transform {
523
523
  dispose(): void;
524
- final(outputEncoding?: string): string;
524
+ final(outputEncoding?: string | undefined): string;
525
525
  final(): byte[];
526
526
  setAAD(buffer: byte[]): void;
527
527
  setAuthTag(buffer: byte[]): void;
528
- update(data: string, inputEncoding?: string, outputEncoding?: string): string;
529
- update(data: byte[], outputEncoding?: string): string;
528
+ update(data: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
529
+ update(data: byte[], outputEncoding?: string | undefined): string;
530
530
  }
531
531
 
532
532
 
533
533
  export const Decipher: {
534
- new(): Decipher$instance;
534
+ new(): Decipher;
535
535
  };
536
536
 
537
537
 
538
538
  export type Decipher = Decipher$instance;
539
539
 
540
540
  export interface DetailedPeerCertificate$instance extends PeerCertificate {
541
- issuerCertificate: DetailedPeerCertificate;
541
+ issuerCertificate: DetailedPeerCertificate | undefined;
542
542
  }
543
543
 
544
544
 
545
545
  export const DetailedPeerCertificate: {
546
- new(): DetailedPeerCertificate$instance;
546
+ new(): DetailedPeerCertificate;
547
547
  };
548
548
 
549
549
 
550
550
  export type DetailedPeerCertificate = DetailedPeerCertificate$instance;
551
551
 
552
552
  export interface DgramSocket$instance extends EventEmitter {
553
- addMembership(multicastAddress: string, multicastInterface?: string): void;
553
+ addMembership(multicastAddress: string, multicastInterface?: string | undefined): void;
554
554
  address(): AddressInfo;
555
- addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
555
+ addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
556
556
  bind(port?: int, address?: string, callback?: Action): DgramSocket;
557
- bind(port: int, callback: Action): DgramSocket;
558
- bind(callback: Action): DgramSocket;
559
- bind(options: BindOptions, callback?: Action): DgramSocket;
560
- close(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;
561
561
  connect(port: int, address?: string, callback?: Action): void;
562
562
  connect(port: int, callback: Action): void;
563
563
  disconnect(): void;
564
564
  dropMembership(multicastAddress: string): void;
565
- dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
565
+ dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
566
566
  getRecvBufferSize(): int;
567
567
  getSendBufferSize(): int;
568
568
  getSendQueueCount(): int;
@@ -571,13 +571,13 @@ export interface DgramSocket$instance extends EventEmitter {
571
571
  remoteAddress(): AddressInfo;
572
572
  send(msg: byte[], port?: Nullable<System_Internal.Int32>, address?: string, callback?: Action<Exception, System_Internal.Int32>): void;
573
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;
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;
578
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;
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;
581
581
  setBroadcast(flag: boolean): void;
582
582
  setMulticastInterface(multicastInterface: string): void;
583
583
  setMulticastLoopback(flag: boolean): boolean;
@@ -590,69 +590,69 @@ export interface DgramSocket$instance extends EventEmitter {
590
590
 
591
591
 
592
592
  export const DgramSocket: {
593
- new(): DgramSocket$instance;
593
+ new(): DgramSocket;
594
594
  };
595
595
 
596
596
 
597
597
  export type DgramSocket = DgramSocket$instance;
598
598
 
599
599
  export interface DiffieHellman$instance {
600
- computeSecret(otherPublicKey: string, inputEncoding?: string, outputEncoding?: string): string;
601
- computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
600
+ computeSecret(otherPublicKey: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
601
+ computeSecret(otherPublicKey: byte[], outputEncoding?: string | undefined): string;
602
602
  computeSecret(otherPublicKey: byte[]): byte[];
603
603
  dispose(): void;
604
- generateKeys(encoding?: string): string;
604
+ generateKeys(encoding?: string | undefined): string;
605
605
  generateKeys(): byte[];
606
- getGenerator(encoding?: string): string;
606
+ getGenerator(encoding?: string | undefined): string;
607
607
  getGenerator(): byte[];
608
- getPrime(encoding?: string): string;
608
+ getPrime(encoding?: string | undefined): string;
609
609
  getPrime(): byte[];
610
- getPrivateKey(encoding?: string): string;
610
+ getPrivateKey(encoding?: string | undefined): string;
611
611
  getPrivateKey(): byte[];
612
- getPublicKey(encoding?: string): string;
612
+ getPublicKey(encoding?: string | undefined): string;
613
613
  getPublicKey(): byte[];
614
614
  getVerifyError(): int;
615
- setPrivateKey(privateKey: string, encoding?: string): void;
615
+ setPrivateKey(privateKey: string, encoding?: string | undefined): void;
616
616
  setPrivateKey(privateKey: byte[]): void;
617
- setPublicKey(publicKey: string, encoding?: string): void;
617
+ setPublicKey(publicKey: string, encoding?: string | undefined): void;
618
618
  setPublicKey(publicKey: byte[]): void;
619
619
  }
620
620
 
621
621
 
622
622
  export const DiffieHellman: {
623
- new(): DiffieHellman$instance;
623
+ new(): DiffieHellman;
624
624
  };
625
625
 
626
626
 
627
627
  export type DiffieHellman = DiffieHellman$instance;
628
628
 
629
629
  export interface DSAPrivateKeyObject$instance extends KeyObject {
630
- readonly asymmetricKeyType: string;
630
+ readonly asymmetricKeyType: string | undefined;
631
631
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
632
632
  readonly type_: string;
633
633
  dispose(): void;
634
- export_(options?: unknown): unknown;
634
+ export_(options?: unknown | undefined): unknown;
635
635
  }
636
636
 
637
637
 
638
638
  export const DSAPrivateKeyObject: {
639
- new(): DSAPrivateKeyObject$instance;
639
+ new(): DSAPrivateKeyObject;
640
640
  };
641
641
 
642
642
 
643
643
  export type DSAPrivateKeyObject = DSAPrivateKeyObject$instance;
644
644
 
645
645
  export interface DSAPublicKeyObject$instance extends KeyObject {
646
- readonly asymmetricKeyType: string;
646
+ readonly asymmetricKeyType: string | undefined;
647
647
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
648
648
  readonly type_: string;
649
649
  dispose(): void;
650
- export_(options?: unknown): unknown;
650
+ export_(options?: unknown | undefined): unknown;
651
651
  }
652
652
 
653
653
 
654
654
  export const DSAPublicKeyObject: {
655
- new(): DSAPublicKeyObject$instance;
655
+ new(): DSAPublicKeyObject;
656
656
  };
657
657
 
658
658
 
@@ -664,72 +664,72 @@ export interface Duplex$instance extends Readable {
664
664
  readonly writableEnded: boolean;
665
665
  readonly writableLength: int;
666
666
  cork(): void;
667
- destroy(error?: Exception): void;
668
- end(chunk?: unknown, encoding?: string, callback?: Action): void;
667
+ destroy(error?: Exception | undefined): void;
668
+ end(chunk?: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): void;
669
669
  uncork(): void;
670
- write(chunk: unknown, encoding?: string, callback?: Action): boolean;
670
+ write(chunk: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): boolean;
671
671
  }
672
672
 
673
673
 
674
674
  export const Duplex: {
675
- new(): Duplex$instance;
675
+ new(): Duplex;
676
676
  };
677
677
 
678
678
 
679
679
  export type Duplex = Duplex$instance;
680
680
 
681
681
  export interface ECDH$instance {
682
- computeSecret(otherPublicKey: string, inputEncoding?: string, outputEncoding?: string): string;
683
- computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
682
+ computeSecret(otherPublicKey: string, inputEncoding?: string | undefined, outputEncoding?: string | undefined): string;
683
+ computeSecret(otherPublicKey: byte[], outputEncoding?: string | undefined): string;
684
684
  computeSecret(otherPublicKey: byte[]): byte[];
685
685
  dispose(): void;
686
686
  generateKeys(encoding?: string, format?: string): string;
687
687
  generateKeys(): byte[];
688
- getPrivateKey(encoding?: string): string;
688
+ getPrivateKey(encoding?: string | undefined): string;
689
689
  getPrivateKey(): byte[];
690
690
  getPublicKey(encoding?: string, format?: string): string;
691
691
  getPublicKey(): byte[];
692
- setPrivateKey(privateKey: string, encoding?: string): void;
692
+ setPrivateKey(privateKey: string, encoding?: string | undefined): void;
693
693
  setPrivateKey(privateKey: byte[]): void;
694
- setPublicKey(publicKey: string, encoding?: string): void;
694
+ setPublicKey(publicKey: string, encoding?: string | undefined): void;
695
695
  setPublicKey(publicKey: byte[]): void;
696
696
  }
697
697
 
698
698
 
699
699
  export const ECDH: {
700
- new(): ECDH$instance;
700
+ new(): ECDH;
701
701
  };
702
702
 
703
703
 
704
704
  export type ECDH = ECDH$instance;
705
705
 
706
706
  export interface EdDSAPrivateKeyObject$instance extends KeyObject {
707
- readonly asymmetricKeyType: string;
707
+ readonly asymmetricKeyType: string | undefined;
708
708
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
709
709
  readonly type_: string;
710
710
  dispose(): void;
711
- export_(options?: unknown): unknown;
711
+ export_(options?: unknown | undefined): unknown;
712
712
  }
713
713
 
714
714
 
715
715
  export const EdDSAPrivateKeyObject: {
716
- new(): EdDSAPrivateKeyObject$instance;
716
+ new(): EdDSAPrivateKeyObject;
717
717
  };
718
718
 
719
719
 
720
720
  export type EdDSAPrivateKeyObject = EdDSAPrivateKeyObject$instance;
721
721
 
722
722
  export interface EdDSAPublicKeyObject$instance extends KeyObject {
723
- readonly asymmetricKeyType: string;
723
+ readonly asymmetricKeyType: string | undefined;
724
724
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
725
725
  readonly type_: string;
726
726
  dispose(): void;
727
- export_(options?: unknown): unknown;
727
+ export_(options?: unknown | undefined): unknown;
728
728
  }
729
729
 
730
730
 
731
731
  export const EdDSAPublicKeyObject: {
732
- new(): EdDSAPublicKeyObject$instance;
732
+ new(): EdDSAPublicKeyObject;
733
733
  };
734
734
 
735
735
 
@@ -743,7 +743,7 @@ export interface EphemeralKeyInfo$instance {
743
743
 
744
744
 
745
745
  export const EphemeralKeyInfo: {
746
- new(): EphemeralKeyInfo$instance;
746
+ new(): EphemeralKeyInfo;
747
747
  };
748
748
 
749
749
 
@@ -762,33 +762,33 @@ export interface EventEmitter$instance {
762
762
  prependListener(eventName: string, listener: Function): EventEmitter;
763
763
  prependOnceListener(eventName: string, listener: Function): EventEmitter;
764
764
  rawListeners(eventName: string): Function[];
765
- removeAllListeners(eventName?: string): EventEmitter;
765
+ removeAllListeners(eventName?: string | undefined): EventEmitter;
766
766
  removeListener(eventName: string, listener: Function): EventEmitter;
767
767
  setMaxListeners(n: int): EventEmitter;
768
768
  }
769
769
 
770
770
 
771
771
  export const EventEmitter: {
772
- new(): EventEmitter$instance;
772
+ new(): EventEmitter;
773
773
  defaultMaxListeners: int;
774
- once(emitter: EventEmitter, eventName: string): Task<unknown[]>;
774
+ once(emitter: EventEmitter, eventName: string): Task<(unknown | undefined)[]>;
775
775
  };
776
776
 
777
777
 
778
778
  export type EventEmitter = EventEmitter$instance;
779
779
 
780
780
  export interface ExecOptions$instance {
781
- argv0: string;
782
- cwd: string;
781
+ argv0: string | undefined;
782
+ cwd: string | undefined;
783
783
  detached: boolean;
784
- encoding: string;
785
- env: unknown;
784
+ encoding: string | undefined;
785
+ env: unknown | undefined;
786
786
  gid: Nullable<System_Internal.Int32>;
787
- input: string;
788
- killSignal: string;
787
+ input: string | undefined;
788
+ killSignal: string | undefined;
789
789
  maxBuffer: int;
790
- shell: string;
791
- stdio: string;
790
+ shell: string | undefined;
791
+ stdio: string | undefined;
792
792
  timeout: int;
793
793
  uid: Nullable<System_Internal.Int32>;
794
794
  windowsHide: boolean;
@@ -797,7 +797,7 @@ export interface ExecOptions$instance {
797
797
 
798
798
 
799
799
  export const ExecOptions: {
800
- new(): ExecOptions$instance;
800
+ new(): ExecOptions;
801
801
  };
802
802
 
803
803
 
@@ -805,33 +805,33 @@ export type ExecOptions = ExecOptions$instance;
805
805
 
806
806
  export interface Hash$instance extends Transform {
807
807
  copy(): Hash;
808
- digest(encoding: string): string;
808
+ digest(encoding: string | undefined): string;
809
809
  digest(): byte[];
810
810
  digest(outputLength: int): byte[];
811
811
  dispose(): void;
812
- update(data: string, inputEncoding?: string): Hash;
812
+ update(data: string, inputEncoding?: string | undefined): Hash;
813
813
  update(data: byte[]): Hash;
814
814
  }
815
815
 
816
816
 
817
817
  export const Hash: {
818
- new(): Hash$instance;
818
+ new(): Hash;
819
819
  };
820
820
 
821
821
 
822
822
  export type Hash = Hash$instance;
823
823
 
824
824
  export interface Hmac$instance extends Transform {
825
- digest(encoding?: string): string;
825
+ digest(encoding?: string | undefined): string;
826
826
  digest(): byte[];
827
827
  dispose(): void;
828
- update(data: string, inputEncoding?: string): Hmac;
828
+ update(data: string, inputEncoding?: string | undefined): Hmac;
829
829
  update(data: byte[]): Hmac;
830
830
  }
831
831
 
832
832
 
833
833
  export const Hmac: {
834
- new(): Hmac$instance;
834
+ new(): Hmac;
835
835
  };
836
836
 
837
837
 
@@ -846,7 +846,7 @@ export interface Immediate$instance {
846
846
 
847
847
 
848
848
  export const Immediate: {
849
- new(): Immediate$instance;
849
+ new(): Immediate;
850
850
  };
851
851
 
852
852
 
@@ -869,7 +869,7 @@ export interface Interface$instance extends EventEmitter {
869
869
 
870
870
 
871
871
  export const Interface: {
872
- new(): Interface$instance;
872
+ new(): Interface;
873
873
  };
874
874
 
875
875
 
@@ -877,11 +877,11 @@ export type Interface = Interface$instance;
877
877
 
878
878
  export interface InterfaceOptions$instance {
879
879
  escapeCodeTimeout: Nullable<System_Internal.Int32>;
880
- history: string[];
880
+ history: string[] | undefined;
881
881
  historySize: Nullable<System_Internal.Int32>;
882
- input: Readable;
882
+ input: Readable | undefined;
883
883
  output: Writable;
884
- prompt: string;
884
+ prompt: string | undefined;
885
885
  removeHistoryDuplicates: Nullable<System_Internal.Boolean>;
886
886
  tabSize: Nullable<System_Internal.Int32>;
887
887
  terminal: Nullable<System_Internal.Boolean>;
@@ -889,7 +889,7 @@ export interface InterfaceOptions$instance {
889
889
 
890
890
 
891
891
  export const InterfaceOptions: {
892
- new(): InterfaceOptions$instance;
892
+ new(): InterfaceOptions;
893
893
  };
894
894
 
895
895
 
@@ -901,18 +901,18 @@ export interface IpcSocketConnectOpts$instance {
901
901
 
902
902
 
903
903
  export const IpcSocketConnectOpts: {
904
- new(): IpcSocketConnectOpts$instance;
904
+ new(): IpcSocketConnectOpts;
905
905
  };
906
906
 
907
907
 
908
908
  export type IpcSocketConnectOpts = IpcSocketConnectOpts$instance;
909
909
 
910
910
  export interface KeyObject$instance {
911
- readonly asymmetricKeyType: string;
911
+ readonly asymmetricKeyType: string | undefined;
912
912
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
913
913
  readonly type_: string;
914
914
  dispose(): void;
915
- export_(options?: unknown): unknown;
915
+ export_(options?: unknown | undefined): unknown;
916
916
  }
917
917
 
918
918
 
@@ -932,7 +932,7 @@ export interface ListenOptions$instance {
932
932
 
933
933
 
934
934
  export const ListenOptions: {
935
- new(): ListenOptions$instance;
935
+ new(): ListenOptions;
936
936
  };
937
937
 
938
938
 
@@ -945,7 +945,7 @@ export interface LookupAddress$instance {
945
945
 
946
946
 
947
947
  export const LookupAddress: {
948
- new(): LookupAddress$instance;
948
+ new(): LookupAddress;
949
949
  };
950
950
 
951
951
 
@@ -955,42 +955,42 @@ export interface LookupOptions$instance {
955
955
  all: Nullable<System_Internal.Boolean>;
956
956
  family: unknown;
957
957
  hints: Nullable<System_Internal.Int32>;
958
- order: string;
958
+ order: string | undefined;
959
959
  verbatim: Nullable<System_Internal.Boolean>;
960
960
  }
961
961
 
962
962
 
963
963
  export const LookupOptions: {
964
- new(): LookupOptions$instance;
964
+ new(): LookupOptions;
965
965
  };
966
966
 
967
967
 
968
968
  export type LookupOptions = LookupOptions$instance;
969
969
 
970
970
  export interface MarkOptions$instance {
971
- detail: unknown;
971
+ detail: unknown | undefined;
972
972
  startTime: Nullable<System_Internal.Double>;
973
973
  }
974
974
 
975
975
 
976
976
  export const MarkOptions: {
977
- new(): MarkOptions$instance;
977
+ new(): MarkOptions;
978
978
  };
979
979
 
980
980
 
981
981
  export type MarkOptions = MarkOptions$instance;
982
982
 
983
983
  export interface MeasureOptions$instance {
984
- detail: unknown;
984
+ detail: unknown | undefined;
985
985
  end: Nullable<System_Internal.Double>;
986
- endMark: string;
986
+ endMark: string | undefined;
987
987
  start: Nullable<System_Internal.Double>;
988
- startMark: string;
988
+ startMark: string | undefined;
989
989
  }
990
990
 
991
991
 
992
992
  export const MeasureOptions: {
993
- new(): MeasureOptions$instance;
993
+ new(): MeasureOptions;
994
994
  };
995
995
 
996
996
 
@@ -1003,7 +1003,7 @@ export interface MxRecord$instance {
1003
1003
 
1004
1004
 
1005
1005
  export const MxRecord: {
1006
- new(): MxRecord$instance;
1006
+ new(): MxRecord;
1007
1007
  };
1008
1008
 
1009
1009
 
@@ -1020,7 +1020,7 @@ export interface NaptrRecord$instance {
1020
1020
 
1021
1021
 
1022
1022
  export const NaptrRecord: {
1023
- new(): NaptrRecord$instance;
1023
+ new(): NaptrRecord;
1024
1024
  };
1025
1025
 
1026
1026
 
@@ -1036,7 +1036,7 @@ export interface ParsedPath$instance {
1036
1036
 
1037
1037
 
1038
1038
  export const ParsedPath: {
1039
- new(): ParsedPath$instance;
1039
+ new(): ParsedPath;
1040
1040
  };
1041
1041
 
1042
1042
 
@@ -1047,7 +1047,7 @@ export interface PassThrough$instance extends Transform {
1047
1047
 
1048
1048
 
1049
1049
  export const PassThrough: {
1050
- new(): PassThrough$instance;
1050
+ new(): PassThrough;
1051
1051
  };
1052
1052
 
1053
1053
 
@@ -1058,7 +1058,7 @@ export interface PathModule$instance {
1058
1058
  readonly posix: PathModule;
1059
1059
  readonly sep: string;
1060
1060
  readonly win32: PathModule;
1061
- basename(path: string, suffix?: string): string;
1061
+ basename(path: string, suffix?: string | undefined): string;
1062
1062
  dirname(path: string): string;
1063
1063
  extname(path: string): string;
1064
1064
  format(pathObject: ParsedPath): string;
@@ -1074,7 +1074,7 @@ export interface PathModule$instance {
1074
1074
 
1075
1075
 
1076
1076
  export const PathModule: {
1077
- new(): PathModule$instance;
1077
+ new(): PathModule;
1078
1078
  readonly instance: PathModule;
1079
1079
  };
1080
1080
 
@@ -1083,7 +1083,7 @@ export type PathModule = PathModule$instance;
1083
1083
 
1084
1084
  export interface PeerCertificate$instance {
1085
1085
  ca: boolean;
1086
- ext_key_usage: string[];
1086
+ ext_key_usage: string[] | undefined;
1087
1087
  fingerprint: string;
1088
1088
  fingerprint256: string;
1089
1089
  fingerprint512: string;
@@ -1091,14 +1091,14 @@ export interface PeerCertificate$instance {
1091
1091
  raw: byte[];
1092
1092
  serialNumber: string;
1093
1093
  subject: TLSCertificateInfo;
1094
- subjectaltname: string;
1094
+ subjectaltname: string | undefined;
1095
1095
  valid_from: string;
1096
1096
  valid_to: string;
1097
1097
  }
1098
1098
 
1099
1099
 
1100
1100
  export const PeerCertificate: {
1101
- new(): PeerCertificate$instance;
1101
+ new(): PeerCertificate;
1102
1102
  };
1103
1103
 
1104
1104
 
@@ -1113,31 +1113,31 @@ export interface PerformanceEntry$instance {
1113
1113
 
1114
1114
 
1115
1115
  export const PerformanceEntry: {
1116
- new(): PerformanceEntry$instance;
1116
+ new(): PerformanceEntry;
1117
1117
  };
1118
1118
 
1119
1119
 
1120
1120
  export type PerformanceEntry = PerformanceEntry$instance;
1121
1121
 
1122
1122
  export interface PerformanceMark$instance extends PerformanceEntry {
1123
- readonly detail: unknown;
1123
+ readonly detail: unknown | undefined;
1124
1124
  }
1125
1125
 
1126
1126
 
1127
1127
  export const PerformanceMark: {
1128
- new(name: string, startTime: double, detail: unknown): PerformanceMark$instance;
1128
+ new(name: string | undefined, startTime: double, detail: unknown | undefined): PerformanceMark;
1129
1129
  };
1130
1130
 
1131
1131
 
1132
1132
  export type PerformanceMark = PerformanceMark$instance;
1133
1133
 
1134
1134
  export interface PerformanceMeasure$instance extends PerformanceEntry {
1135
- readonly detail: unknown;
1135
+ readonly detail: unknown | undefined;
1136
1136
  }
1137
1137
 
1138
1138
 
1139
1139
  export const PerformanceMeasure: {
1140
- new(name: string, startTime: double, duration: double, detail: unknown): PerformanceMeasure$instance;
1140
+ new(name: string | undefined, startTime: double, duration: double, detail: unknown | undefined): PerformanceMeasure;
1141
1141
  };
1142
1142
 
1143
1143
 
@@ -1151,7 +1151,7 @@ export interface PerformanceObserver$instance {
1151
1151
 
1152
1152
 
1153
1153
  export const PerformanceObserver: {
1154
- new(callback: Action<PerformanceObserverEntryList, PerformanceObserver>): PerformanceObserver$instance;
1154
+ new(callback: Action<PerformanceObserverEntryList, PerformanceObserver>): PerformanceObserver;
1155
1155
  supportedEntryTypes(): string[];
1156
1156
  };
1157
1157
 
@@ -1160,13 +1160,13 @@ export type PerformanceObserver = PerformanceObserver$instance;
1160
1160
 
1161
1161
  export interface PerformanceObserverEntryList$instance {
1162
1162
  getEntries(): PerformanceEntry[];
1163
- getEntriesByName(name: string, type_?: string): PerformanceEntry[];
1163
+ getEntriesByName(name: string, type_?: string | undefined): PerformanceEntry[];
1164
1164
  getEntriesByType(type_: string): PerformanceEntry[];
1165
1165
  }
1166
1166
 
1167
1167
 
1168
1168
  export const PerformanceObserverEntryList: {
1169
- new(entries: PerformanceEntry[]): PerformanceObserverEntryList$instance;
1169
+ new(entries: PerformanceEntry[]): PerformanceObserverEntryList;
1170
1170
  };
1171
1171
 
1172
1172
 
@@ -1174,29 +1174,29 @@ export type PerformanceObserverEntryList = PerformanceObserverEntryList$instance
1174
1174
 
1175
1175
  export interface PerformanceObserverOptions$instance {
1176
1176
  buffered: boolean;
1177
- entryTypes: string[];
1177
+ entryTypes: string[] | undefined;
1178
1178
  }
1179
1179
 
1180
1180
 
1181
1181
  export const PerformanceObserverOptions: {
1182
- new(): PerformanceObserverOptions$instance;
1182
+ new(): PerformanceObserverOptions;
1183
1183
  };
1184
1184
 
1185
1185
 
1186
1186
  export type PerformanceObserverOptions = PerformanceObserverOptions$instance;
1187
1187
 
1188
1188
  export interface PrivateKeyObject$instance extends KeyObject {
1189
- readonly asymmetricKeyType: string;
1189
+ readonly asymmetricKeyType: string | undefined;
1190
1190
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1191
1191
  readonly type_: string;
1192
1192
  dispose(): void;
1193
- export_(options?: unknown): unknown;
1193
+ export_(options?: unknown | undefined): unknown;
1194
1194
  export_(format: string, type_?: string, cipher?: string, passphrase?: string): string;
1195
1195
  }
1196
1196
 
1197
1197
 
1198
1198
  export const PrivateKeyObject: {
1199
- new(): PrivateKeyObject$instance;
1199
+ new(): PrivateKeyObject;
1200
1200
  };
1201
1201
 
1202
1202
 
@@ -1205,10 +1205,10 @@ export type PrivateKeyObject = PrivateKeyObject$instance;
1205
1205
  export interface ProcessEnv$instance {
1206
1206
  readonly count: int;
1207
1207
  readonly isReadOnly: boolean;
1208
- item: string;
1208
+ item: string | undefined;
1209
1209
  readonly keys: ICollection<System_Internal.String>;
1210
- readonly values: ICollection<System_Internal.String>;
1211
- add(key: string, value: string): void;
1210
+ readonly values: ICollection<string | undefined>;
1211
+ add(key: string, value: string | undefined): void;
1212
1212
  add(item: KeyValuePair<System_Internal.String, System_Internal.String>): void;
1213
1213
  clear(): void;
1214
1214
  contains(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
@@ -1217,12 +1217,12 @@ export interface ProcessEnv$instance {
1217
1217
  getEnumerator(): IEnumerator<KeyValuePair<System_Internal.String, System_Internal.String>>;
1218
1218
  remove(key: string): boolean;
1219
1219
  remove(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
1220
- tryGetValue(key: string, value: string): boolean;
1220
+ tryGetValue(key: string, value: string | undefined): boolean;
1221
1221
  }
1222
1222
 
1223
1223
 
1224
1224
  export const ProcessEnv: {
1225
- new(): ProcessEnv$instance;
1225
+ new(): ProcessEnv;
1226
1226
  };
1227
1227
 
1228
1228
 
@@ -1237,24 +1237,24 @@ export interface ProcessVersions$instance {
1237
1237
 
1238
1238
 
1239
1239
  export const ProcessVersions: {
1240
- new(): ProcessVersions$instance;
1240
+ new(): ProcessVersions;
1241
1241
  };
1242
1242
 
1243
1243
 
1244
1244
  export type ProcessVersions = ProcessVersions$instance;
1245
1245
 
1246
1246
  export interface PublicKeyObject$instance extends KeyObject {
1247
- readonly asymmetricKeyType: string;
1247
+ readonly asymmetricKeyType: string | undefined;
1248
1248
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1249
1249
  readonly type_: string;
1250
1250
  dispose(): void;
1251
- export_(options?: unknown): unknown;
1252
- export_(format: string, type_?: string): string;
1251
+ export_(options?: unknown | undefined): unknown;
1252
+ export_(format: string, type_?: string | undefined): string;
1253
1253
  }
1254
1254
 
1255
1255
 
1256
1256
  export const PublicKeyObject: {
1257
- new(): PublicKeyObject$instance;
1257
+ new(): PublicKeyObject;
1258
1258
  };
1259
1259
 
1260
1260
 
@@ -1266,20 +1266,20 @@ export interface Readable$instance extends Stream {
1266
1266
  readonly readableEnded: boolean;
1267
1267
  readonly readableFlowing: Nullable<System_Internal.Boolean>;
1268
1268
  readonly readableLength: int;
1269
- destroy(error?: Exception): void;
1269
+ destroy(error?: Exception | undefined): void;
1270
1270
  isPaused(): boolean;
1271
1271
  pause(): Readable;
1272
- push(chunk: unknown, encoding?: string): boolean;
1273
- read(size?: Nullable<System_Internal.Int32>): unknown;
1272
+ push(chunk: unknown | undefined, encoding?: string | undefined): boolean;
1273
+ read(size?: Nullable<System_Internal.Int32>): unknown | undefined;
1274
1274
  resume(): Readable;
1275
- setEncoding(encoding: string): Readable;
1276
- unpipe(destination?: Stream): Readable;
1277
- unshift(chunk: unknown): void;
1275
+ setEncoding(encoding: string | undefined): Readable | undefined;
1276
+ unpipe(destination?: Stream | undefined): Readable | undefined;
1277
+ unshift(chunk: unknown | undefined): void;
1278
1278
  }
1279
1279
 
1280
1280
 
1281
1281
  export const Readable: {
1282
- new(): Readable$instance;
1282
+ new(): Readable;
1283
1283
  };
1284
1284
 
1285
1285
 
@@ -1292,7 +1292,7 @@ export interface RecordWithTtl$instance {
1292
1292
 
1293
1293
 
1294
1294
  export const RecordWithTtl: {
1295
- new(): RecordWithTtl$instance;
1295
+ new(): RecordWithTtl;
1296
1296
  };
1297
1297
 
1298
1298
 
@@ -1307,7 +1307,7 @@ export interface RemoteInfo$instance {
1307
1307
 
1308
1308
 
1309
1309
  export const RemoteInfo: {
1310
- new(): RemoteInfo$instance;
1310
+ new(): RemoteInfo;
1311
1311
  };
1312
1312
 
1313
1313
 
@@ -1319,7 +1319,7 @@ export interface ResolveOptions$instance {
1319
1319
 
1320
1320
 
1321
1321
  export const ResolveOptions: {
1322
- new(): ResolveOptions$instance;
1322
+ new(): ResolveOptions;
1323
1323
  };
1324
1324
 
1325
1325
 
@@ -1328,32 +1328,32 @@ export type ResolveOptions = ResolveOptions$instance;
1328
1328
  export interface Resolver$instance {
1329
1329
  cancel(): void;
1330
1330
  getServers(): string[];
1331
- resolve(hostname: string, callback: Action<Exception, string[]>): void;
1332
- resolve(hostname: string, rrtype: string, callback: Action<Exception, unknown>): void;
1333
- resolve4(hostname: string, callback: Action<Exception, string[]>): void;
1334
- resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
1335
- resolve6(hostname: string, callback: Action<Exception, string[]>): void;
1336
- resolve6(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
1337
- resolveAny(hostname: string, callback: Action<Exception, unknown[]>): void;
1338
- resolveCaa(hostname: string, callback: Action<Exception, CaaRecord[]>): void;
1339
- resolveCname(hostname: string, callback: Action<Exception, string[]>): void;
1340
- resolveMx(hostname: string, callback: Action<Exception, MxRecord[]>): void;
1341
- resolveNaptr(hostname: string, callback: Action<Exception, NaptrRecord[]>): void;
1342
- resolveNs(hostname: string, callback: Action<Exception, string[]>): void;
1343
- resolvePtr(hostname: string, callback: Action<Exception, string[]>): void;
1344
- resolveSoa(hostname: string, callback: Action<Exception, SoaRecord>): void;
1345
- resolveSrv(hostname: string, callback: Action<Exception, SrvRecord[]>): void;
1346
- resolveTlsa(hostname: string, callback: Action<Exception, TlsaRecord[]>): void;
1347
- resolveTxt(hostname: string, callback: Action<Exception, string[][]>): void;
1348
- reverse(ip: string, callback: Action<Exception, string[]>): void;
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;
1349
1349
  setLocalAddress(ipv4?: string, ipv6?: string): void;
1350
1350
  setServers(servers: string[]): void;
1351
1351
  }
1352
1352
 
1353
1353
 
1354
1354
  export const Resolver: {
1355
- new(): Resolver$instance;
1356
- new(options: ResolverOptions): Resolver$instance;
1355
+ new(): Resolver;
1356
+ new(options: ResolverOptions): Resolver;
1357
1357
  };
1358
1358
 
1359
1359
 
@@ -1367,61 +1367,61 @@ export interface ResolverOptions$instance {
1367
1367
 
1368
1368
 
1369
1369
  export const ResolverOptions: {
1370
- new(): ResolverOptions$instance;
1370
+ new(): ResolverOptions;
1371
1371
  };
1372
1372
 
1373
1373
 
1374
1374
  export type ResolverOptions = ResolverOptions$instance;
1375
1375
 
1376
1376
  export interface SecretKeyObject$instance extends KeyObject {
1377
- readonly asymmetricKeyType: string;
1377
+ readonly asymmetricKeyType: string | undefined;
1378
1378
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1379
1379
  readonly type_: string;
1380
1380
  dispose(): void;
1381
- export_(options?: unknown): unknown;
1381
+ export_(options?: unknown | undefined): unknown;
1382
1382
  export_(): byte[];
1383
1383
  }
1384
1384
 
1385
1385
 
1386
1386
  export const SecretKeyObject: {
1387
- new(): SecretKeyObject$instance;
1387
+ new(): SecretKeyObject;
1388
1388
  };
1389
1389
 
1390
1390
 
1391
1391
  export type SecretKeyObject = SecretKeyObject$instance;
1392
1392
 
1393
1393
  export interface SecureContext$instance {
1394
- readonly caCertificates: X509Certificate2Collection;
1395
- readonly certificate: X509Certificate2;
1396
- context: unknown;
1394
+ readonly caCertificates: X509Certificate2Collection | undefined;
1395
+ readonly certificate: X509Certificate2 | undefined;
1396
+ context: unknown | undefined;
1397
1397
  readonly protocols: SslProtocols;
1398
- loadCACertificates(ca: unknown): void;
1399
- loadCertificate(cert: unknown, key: unknown, passphrase: string): void;
1400
- setProtocols(minVersion: string, maxVersion: string): void;
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;
1401
1401
  }
1402
1402
 
1403
1403
 
1404
1404
  export const SecureContext: {
1405
- new(): SecureContext$instance;
1405
+ new(): SecureContext;
1406
1406
  };
1407
1407
 
1408
1408
 
1409
1409
  export type SecureContext = SecureContext$instance;
1410
1410
 
1411
1411
  export interface SecureContextOptions$instance {
1412
- ca: unknown;
1413
- cert: unknown;
1414
- ciphers: string;
1415
- key: unknown;
1416
- maxVersion: string;
1417
- minVersion: string;
1418
- passphrase: string;
1419
- pfx: unknown;
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;
1420
1420
  }
1421
1421
 
1422
1422
 
1423
1423
  export const SecureContextOptions: {
1424
- new(): SecureContextOptions$instance;
1424
+ new(): SecureContextOptions;
1425
1425
  };
1426
1426
 
1427
1427
 
@@ -1431,22 +1431,22 @@ export interface Server$instance extends EventEmitter {
1431
1431
  readonly listening: boolean;
1432
1432
  maxConnections: int;
1433
1433
  address(): unknown;
1434
- close(callback?: Action<Exception>): Server;
1435
- getConnections(callback: Action<Exception, System_Internal.Int32>): void;
1436
- listen(port: int, hostname: string, backlog: int, listeningListener?: Action): Server;
1437
- listen(port: int, hostname: string, listeningListener?: Action): Server;
1438
- listen(port: int, backlog: int, listeningListener?: Action): Server;
1439
- listen(port: int, listeningListener?: Action): Server;
1440
- listen(options: ListenOptions, listeningListener?: Action): Server;
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;
1441
1441
  ref(): Server;
1442
1442
  unref(): Server;
1443
1443
  }
1444
1444
 
1445
1445
 
1446
1446
  export const Server: {
1447
- new(): Server$instance;
1448
- new(connectionListener: Action<Socket>): Server$instance;
1449
- new(options: ServerOpts, connectionListener: Action<Socket>): Server$instance;
1447
+ new(): Server;
1448
+ new(connectionListener: Action<Socket> | undefined): Server;
1449
+ new(options: ServerOpts, connectionListener: Action<Socket> | undefined): Server;
1450
1450
  };
1451
1451
 
1452
1452
 
@@ -1459,7 +1459,7 @@ export interface ServerOpts$instance {
1459
1459
 
1460
1460
 
1461
1461
  export const ServerOpts: {
1462
- new(): ServerOpts$instance;
1462
+ new(): ServerOpts;
1463
1463
  };
1464
1464
 
1465
1465
 
@@ -1467,17 +1467,17 @@ export type ServerOpts = ServerOpts$instance;
1467
1467
 
1468
1468
  export interface Sign$instance extends Transform {
1469
1469
  dispose(): void;
1470
- sign(privateKey: string, outputEncoding?: string): string;
1470
+ sign(privateKey: string, outputEncoding?: string | undefined): string;
1471
1471
  sign(privateKey: string): byte[];
1472
- sign(privateKey: unknown, outputEncoding?: string): string;
1472
+ sign(privateKey: unknown, outputEncoding?: string | undefined): string;
1473
1473
  sign(privateKey: unknown): byte[];
1474
- update(data: string, inputEncoding?: string): Sign;
1474
+ update(data: string, inputEncoding?: string | undefined): Sign;
1475
1475
  update(data: byte[]): Sign;
1476
1476
  }
1477
1477
 
1478
1478
 
1479
1479
  export const Sign: {
1480
- new(): Sign$instance;
1480
+ new(): Sign;
1481
1481
  };
1482
1482
 
1483
1483
 
@@ -1495,7 +1495,7 @@ export interface SoaRecord$instance {
1495
1495
 
1496
1496
 
1497
1497
  export const SoaRecord: {
1498
- new(): SoaRecord$instance;
1498
+ new(): SoaRecord;
1499
1499
  };
1500
1500
 
1501
1501
 
@@ -1506,40 +1506,40 @@ export interface Socket$instance extends Stream {
1506
1506
  readonly bytesWritten: long;
1507
1507
  readonly connecting: boolean;
1508
1508
  readonly destroyed: boolean;
1509
- readonly localAddress: string;
1510
- readonly localFamily: string;
1509
+ readonly localAddress: string | undefined;
1510
+ readonly localFamily: string | undefined;
1511
1511
  readonly localPort: Nullable<System_Internal.Int32>;
1512
1512
  readonly readyState: string;
1513
- readonly remoteAddress: string;
1514
- readonly remoteFamily: string;
1513
+ readonly remoteAddress: string | undefined;
1514
+ readonly remoteFamily: string | undefined;
1515
1515
  readonly remotePort: Nullable<System_Internal.Int32>;
1516
1516
  address(): unknown;
1517
- connect(port: int, host?: string, connectionListener?: Action): Socket;
1518
- connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
1519
- connect(path: string, connectionListener?: Action): Socket;
1520
- destroy(error?: Exception): Socket;
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;
1521
1521
  destroy(error?: Exception): void;
1522
1522
  destroySoon(): void;
1523
- end(callback?: Action): Socket;
1524
- end(data: byte[], callback?: Action): Socket;
1525
- end(data: string, encoding?: string, callback?: Action): Socket;
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;
1526
1526
  pause(): Socket;
1527
1527
  ref(): Socket;
1528
- resetAndDestroy(): Socket;
1528
+ resetAndDestroy(): Socket | undefined;
1529
1529
  resume(): Socket;
1530
- setEncoding(encoding?: string): Socket;
1531
- setKeepAlive(enable?: boolean, initialDelay?: int): Socket;
1532
- setNoDelay(noDelay?: boolean): Socket;
1533
- setTimeout(timeout: int, callback?: Action): 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;
1534
1534
  unref(): Socket;
1535
- write(data: byte[], callback?: Action<Exception>): boolean;
1536
- write(data: string, encoding?: string, callback?: Action<Exception>): boolean;
1535
+ write(data: byte[] | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1536
+ write(data: string, encoding?: string | undefined, callback?: Action<Exception | undefined> | undefined): boolean;
1537
1537
  }
1538
1538
 
1539
1539
 
1540
1540
  export const Socket: {
1541
- new(): Socket$instance;
1542
- new(options: SocketConstructorOpts): Socket$instance;
1541
+ new(): Socket;
1542
+ new(options: SocketConstructorOpts | undefined): Socket;
1543
1543
  };
1544
1544
 
1545
1545
 
@@ -1554,7 +1554,7 @@ export interface SocketAddress$instance {
1554
1554
 
1555
1555
 
1556
1556
  export const SocketAddress: {
1557
- new(options: SocketAddressInitOptions): SocketAddress$instance;
1557
+ new(options: SocketAddressInitOptions): SocketAddress;
1558
1558
  };
1559
1559
 
1560
1560
 
@@ -1569,7 +1569,7 @@ export interface SocketAddressInitOptions$instance {
1569
1569
 
1570
1570
 
1571
1571
  export const SocketAddressInitOptions: {
1572
- new(): SocketAddressInitOptions$instance;
1572
+ new(): SocketAddressInitOptions;
1573
1573
  };
1574
1574
 
1575
1575
 
@@ -1584,7 +1584,7 @@ export interface SocketConstructorOpts$instance {
1584
1584
 
1585
1585
 
1586
1586
  export const SocketConstructorOpts: {
1587
- new(): SocketConstructorOpts$instance;
1587
+ new(): SocketConstructorOpts;
1588
1588
  };
1589
1589
 
1590
1590
 
@@ -1601,17 +1601,17 @@ export interface SocketOptions$instance {
1601
1601
 
1602
1602
 
1603
1603
  export const SocketOptions: {
1604
- new(): SocketOptions$instance;
1604
+ new(): SocketOptions;
1605
1605
  };
1606
1606
 
1607
1607
 
1608
1608
  export type SocketOptions = SocketOptions$instance;
1609
1609
 
1610
1610
  export interface SpawnSyncReturns_1$instance<T> {
1611
- error: Exception;
1612
- output: T[];
1611
+ error: Exception | undefined;
1612
+ output: (T | undefined)[];
1613
1613
  pid: int;
1614
- signal: string;
1614
+ signal: string | undefined;
1615
1615
  status: Nullable<System_Internal.Int32>;
1616
1616
  stderr: T;
1617
1617
  stdout: T;
@@ -1619,7 +1619,7 @@ export interface SpawnSyncReturns_1$instance<T> {
1619
1619
 
1620
1620
 
1621
1621
  export const SpawnSyncReturns_1: {
1622
- new<T>(): SpawnSyncReturns_1$instance<T>;
1622
+ new<T>(): SpawnSyncReturns_1<T>;
1623
1623
  };
1624
1624
 
1625
1625
 
@@ -1634,7 +1634,7 @@ export interface SrvRecord$instance {
1634
1634
 
1635
1635
 
1636
1636
  export const SrvRecord: {
1637
- new(): SrvRecord$instance;
1637
+ new(): SrvRecord;
1638
1638
  };
1639
1639
 
1640
1640
 
@@ -1660,7 +1660,7 @@ export interface Stats$instance {
1660
1660
 
1661
1661
 
1662
1662
  export const Stats: {
1663
- new(): Stats$instance;
1663
+ new(): Stats;
1664
1664
  };
1665
1665
 
1666
1666
 
@@ -1673,20 +1673,20 @@ export interface Stream$instance extends EventEmitter {
1673
1673
 
1674
1674
 
1675
1675
  export const Stream: {
1676
- new(): Stream$instance;
1676
+ new(): Stream;
1677
1677
  };
1678
1678
 
1679
1679
 
1680
1680
  export type Stream = Stream$instance;
1681
1681
 
1682
1682
  export interface StringDecoder$instance {
1683
- end(buffer?: byte[]): string;
1683
+ end(buffer?: byte[] | undefined): string;
1684
1684
  write(buffer: byte[]): string;
1685
1685
  }
1686
1686
 
1687
1687
 
1688
1688
  export const StringDecoder: {
1689
- new(encoding: string): StringDecoder$instance;
1689
+ new(encoding: string): StringDecoder;
1690
1690
  };
1691
1691
 
1692
1692
 
@@ -1698,7 +1698,7 @@ export interface TcpSocketConnectOpts$instance {
1698
1698
  host: string;
1699
1699
  keepAlive: Nullable<System_Internal.Boolean>;
1700
1700
  keepAliveInitialDelay: Nullable<System_Internal.Int32>;
1701
- localAddress: string;
1701
+ localAddress: string | undefined;
1702
1702
  localPort: Nullable<System_Internal.Int32>;
1703
1703
  noDelay: Nullable<System_Internal.Boolean>;
1704
1704
  port: int;
@@ -1706,7 +1706,7 @@ export interface TcpSocketConnectOpts$instance {
1706
1706
 
1707
1707
 
1708
1708
  export const TcpSocketConnectOpts: {
1709
- new(): TcpSocketConnectOpts$instance;
1709
+ new(): TcpSocketConnectOpts;
1710
1710
  };
1711
1711
 
1712
1712
 
@@ -1723,7 +1723,7 @@ export interface Timeout$instance {
1723
1723
 
1724
1724
 
1725
1725
  export const Timeout: {
1726
- new(): Timeout$instance;
1726
+ new(): Timeout;
1727
1727
  };
1728
1728
 
1729
1729
 
@@ -1738,7 +1738,7 @@ export interface TlsaRecord$instance {
1738
1738
 
1739
1739
 
1740
1740
  export const TlsaRecord: {
1741
- new(): TlsaRecord$instance;
1741
+ new(): TlsaRecord;
1742
1742
  };
1743
1743
 
1744
1744
 
@@ -1755,7 +1755,7 @@ export interface TLSCertificateInfo$instance {
1755
1755
 
1756
1756
 
1757
1757
  export const TLSCertificateInfo: {
1758
- new(): TLSCertificateInfo$instance;
1758
+ new(): TLSCertificateInfo;
1759
1759
  };
1760
1760
 
1761
1761
 
@@ -1763,92 +1763,92 @@ export type TLSCertificateInfo = TLSCertificateInfo$instance;
1763
1763
 
1764
1764
  export interface TlsOptions$instance extends CommonConnectionOptions {
1765
1765
  allowHalfOpen: Nullable<System_Internal.Boolean>;
1766
- ca: unknown;
1767
- cert: unknown;
1766
+ ca: unknown | undefined;
1767
+ cert: unknown | undefined;
1768
1768
  handshakeTimeout: Nullable<System_Internal.Int32>;
1769
- key: unknown;
1770
- passphrase: string;
1769
+ key: unknown | undefined;
1770
+ passphrase: string | undefined;
1771
1771
  pauseOnConnect: Nullable<System_Internal.Boolean>;
1772
1772
  sessionTimeout: Nullable<System_Internal.Int32>;
1773
1773
  }
1774
1774
 
1775
1775
 
1776
1776
  export const TlsOptions: {
1777
- new(): TlsOptions$instance;
1777
+ new(): TlsOptions;
1778
1778
  };
1779
1779
 
1780
1780
 
1781
1781
  export type TlsOptions = TlsOptions$instance;
1782
1782
 
1783
1783
  export interface TLSServer$instance extends Server {
1784
- addContext(hostname: string, context: unknown): void;
1785
- getTicketKeys(): byte[];
1786
- setSecureContext(options: SecureContextOptions): void;
1787
- setTicketKeys(keys: byte[]): void;
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;
1788
1788
  }
1789
1789
 
1790
1790
 
1791
1791
  export const TLSServer: {
1792
- new(): TLSServer$instance;
1793
- new(secureConnectionListener: Action<TLSSocket>): TLSServer$instance;
1794
- new(options: TlsOptions, secureConnectionListener: Action<TLSSocket>): TLSServer$instance;
1792
+ new(): TLSServer;
1793
+ new(secureConnectionListener: Action<TLSSocket> | undefined): TLSServer;
1794
+ new(options: TlsOptions | undefined, secureConnectionListener: Action<TLSSocket> | undefined): TLSServer;
1795
1795
  };
1796
1796
 
1797
1797
 
1798
1798
  export type TLSServer = TLSServer$instance;
1799
1799
 
1800
1800
  export interface TLSSocket$instance extends Socket {
1801
- readonly alpnProtocol: string;
1802
- readonly authorizationError: Exception;
1801
+ readonly alpnProtocol: string | undefined;
1802
+ readonly authorizationError: Exception | undefined;
1803
1803
  readonly authorized: boolean;
1804
1804
  readonly encrypted: boolean;
1805
1805
  disableRenegotiation(): void;
1806
1806
  enableTrace(): void;
1807
- exportKeyingMaterial(length: int, label: string, context: byte[]): byte[];
1808
- getCertificate(): PeerCertificate;
1809
- getCipher(): CipherNameAndProtocol;
1810
- getEphemeralKeyInfo(): EphemeralKeyInfo;
1811
- getFinished(): byte[];
1812
- getPeerCertificate(detailed?: boolean): PeerCertificate;
1813
- getPeerFinished(): byte[];
1814
- getPeerX509Certificate(): unknown;
1815
- getProtocol(): string;
1816
- getSession(): byte[];
1817
- getSharedSigalgs(): string[];
1818
- getTLSTicket(): byte[];
1819
- getX509Certificate(): unknown;
1807
+ exportKeyingMaterial(length: int, label: string | undefined, context: byte[] | undefined): byte[] | undefined;
1808
+ getCertificate(): PeerCertificate | undefined;
1809
+ getCipher(): CipherNameAndProtocol | undefined;
1810
+ getEphemeralKeyInfo(): EphemeralKeyInfo | undefined;
1811
+ getFinished(): byte[] | undefined;
1812
+ getPeerCertificate(detailed?: boolean): PeerCertificate | undefined;
1813
+ getPeerFinished(): byte[] | undefined;
1814
+ getPeerX509Certificate(): unknown | undefined;
1815
+ getProtocol(): string | undefined;
1816
+ getSession(): byte[] | undefined;
1817
+ getSharedSigalgs(): (string | undefined)[] | undefined;
1818
+ getTLSTicket(): byte[] | undefined;
1819
+ getX509Certificate(): unknown | undefined;
1820
1820
  isSessionReused(): boolean;
1821
- renegotiate(options: unknown, callback: Action<Exception>): boolean;
1822
- setKeyCert(context: unknown): void;
1821
+ renegotiate(options: unknown | undefined, callback: Action<Exception | undefined>): boolean;
1822
+ setKeyCert(context: unknown | undefined): void;
1823
1823
  setMaxSendFragment(size: int): boolean;
1824
1824
  startReading(): void;
1825
- write(data: byte[], callback?: Action<Exception>): boolean;
1826
- write(data: string, encoding?: string, callback?: Action<Exception>): boolean;
1827
- write(data: byte[], callback?: Action<Exception>): boolean;
1828
- write(data: string, encoding?: string, callback?: Action<Exception>): boolean;
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;
1829
1829
  }
1830
1830
 
1831
1831
 
1832
1832
  export const TLSSocket: {
1833
- new(socket: Socket, options: TLSSocketOptions): TLSSocket$instance;
1833
+ new(socket: Socket | undefined, options: TLSSocketOptions | undefined): TLSSocket;
1834
1834
  };
1835
1835
 
1836
1836
 
1837
1837
  export type TLSSocket = TLSSocket$instance;
1838
1838
 
1839
1839
  export interface TLSSocketOptions$instance extends CommonConnectionOptions {
1840
- ca: unknown;
1841
- cert: unknown;
1840
+ ca: unknown | undefined;
1841
+ cert: unknown | undefined;
1842
1842
  isServer: Nullable<System_Internal.Boolean>;
1843
- key: unknown;
1844
- passphrase: string;
1845
- server: Server;
1846
- servername: string;
1843
+ key: unknown | undefined;
1844
+ passphrase: string | undefined;
1845
+ server: Server | undefined;
1846
+ servername: string | undefined;
1847
1847
  }
1848
1848
 
1849
1849
 
1850
1850
  export const TLSSocketOptions: {
1851
- new(): TLSSocketOptions$instance;
1851
+ new(): TLSSocketOptions;
1852
1852
  };
1853
1853
 
1854
1854
 
@@ -1859,7 +1859,7 @@ export interface Transform$instance extends Duplex {
1859
1859
 
1860
1860
 
1861
1861
  export const Transform: {
1862
- new(): Transform$instance;
1862
+ new(): Transform;
1863
1863
  };
1864
1864
 
1865
1865
 
@@ -1884,8 +1884,8 @@ export interface URL$instance {
1884
1884
 
1885
1885
 
1886
1886
  export const URL: {
1887
- new(input: string, base: string): URL$instance;
1888
- canParse(input: string, base?: string): boolean;
1887
+ new(input: string, base: string | undefined): URL;
1888
+ canParse(input: string, base?: string | undefined): boolean;
1889
1889
  parse(input: string, base?: string): URL;
1890
1890
  };
1891
1891
 
@@ -1895,12 +1895,12 @@ export type URL = URL$instance;
1895
1895
  export interface URLSearchParams$instance {
1896
1896
  readonly size: int;
1897
1897
  append(name: string, value: string): void;
1898
- delete_(name: string, value?: string): void;
1898
+ delete_(name: string, value?: string | undefined): void;
1899
1899
  entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
1900
1900
  forEach(callback: Action<System_Internal.String, System_Internal.String>): void;
1901
- get_(name: string): string;
1901
+ get_(name: string): string | undefined;
1902
1902
  getAll(name: string): string[];
1903
- has(name: string, value?: string): boolean;
1903
+ has(name: string, value?: string | undefined): boolean;
1904
1904
  keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
1905
1905
  set_(name: string, value: string): void;
1906
1906
  sort(): void;
@@ -1910,7 +1910,7 @@ export interface URLSearchParams$instance {
1910
1910
 
1911
1911
 
1912
1912
  export const URLSearchParams: {
1913
- new(init: string): URLSearchParams$instance;
1913
+ new(init: string): URLSearchParams;
1914
1914
  };
1915
1915
 
1916
1916
 
@@ -1919,14 +1919,14 @@ export type URLSearchParams = URLSearchParams$instance;
1919
1919
  export interface UserInfo$instance {
1920
1920
  gid: int;
1921
1921
  homedir: string;
1922
- shell: string;
1922
+ shell: string | undefined;
1923
1923
  uid: int;
1924
1924
  username: string;
1925
1925
  }
1926
1926
 
1927
1927
 
1928
1928
  export const UserInfo: {
1929
- new(): UserInfo$instance;
1929
+ new(): UserInfo;
1930
1930
  };
1931
1931
 
1932
1932
 
@@ -1934,17 +1934,17 @@ export type UserInfo = UserInfo$instance;
1934
1934
 
1935
1935
  export interface Verify$instance extends Transform {
1936
1936
  dispose(): void;
1937
- update(data: string, inputEncoding?: string): Verify;
1937
+ update(data: string, inputEncoding?: string | undefined): Verify;
1938
1938
  update(data: byte[]): Verify;
1939
- verify(publicKey: string, signature: string, signatureEncoding?: string): boolean;
1939
+ verify(publicKey: string, signature: string, signatureEncoding?: string | undefined): boolean;
1940
1940
  verify(publicKey: string, signature: byte[]): boolean;
1941
- verify(publicKey: unknown, signature: string, signatureEncoding?: string): boolean;
1941
+ verify(publicKey: unknown, signature: string, signatureEncoding?: string | undefined): boolean;
1942
1942
  verify(publicKey: unknown, signature: byte[]): boolean;
1943
1943
  }
1944
1944
 
1945
1945
 
1946
1946
  export const Verify: {
1947
- new(): Verify$instance;
1947
+ new(): Verify;
1948
1948
  };
1949
1949
 
1950
1950
 
@@ -1957,15 +1957,15 @@ export interface Writable$instance extends Stream {
1957
1957
  readonly writableEnded: boolean;
1958
1958
  readonly writableLength: int;
1959
1959
  cork(): void;
1960
- destroy(error?: Exception): void;
1961
- end(chunk?: unknown, encoding?: string, callback?: Action): void;
1960
+ destroy(error?: Exception | undefined): void;
1961
+ end(chunk?: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): void;
1962
1962
  uncork(): void;
1963
- write(chunk: unknown, encoding?: string, callback?: Action): boolean;
1963
+ write(chunk: unknown | undefined, encoding?: string | undefined, callback?: Action | undefined): boolean;
1964
1964
  }
1965
1965
 
1966
1966
 
1967
1967
  export const Writable: {
1968
- new(): Writable$instance;
1968
+ new(): Writable;
1969
1969
  };
1970
1970
 
1971
1971
 
@@ -1982,10 +1982,10 @@ export interface X509CertificateInfo$instance {
1982
1982
  readonly subject: string;
1983
1983
  readonly validFrom: DateTime;
1984
1984
  readonly validTo: DateTime;
1985
- checkEmail(email: string): string;
1986
- checkHost(hostname: string): string;
1987
- checkIP(ip: string): string;
1988
- checkIssued(otherCert: X509CertificateInfo): string;
1985
+ checkEmail(email: string): string | undefined;
1986
+ checkHost(hostname: string): string | undefined;
1987
+ checkIP(ip: string): string | undefined;
1988
+ checkIssued(otherCert: X509CertificateInfo): string | undefined;
1989
1989
  toPEM(): string;
1990
1990
  toString(): string;
1991
1991
  verify(issuerCert: X509CertificateInfo): boolean;
@@ -1993,7 +1993,7 @@ export interface X509CertificateInfo$instance {
1993
1993
 
1994
1994
 
1995
1995
  export const X509CertificateInfo: {
1996
- new(): X509CertificateInfo$instance;
1996
+ new(): X509CertificateInfo;
1997
1997
  };
1998
1998
 
1999
1999
 
@@ -2010,28 +2010,28 @@ export interface ZlibOptions$instance {
2010
2010
 
2011
2011
 
2012
2012
  export const ZlibOptions: {
2013
- new(): ZlibOptions$instance;
2013
+ new(): ZlibOptions;
2014
2014
  };
2015
2015
 
2016
2016
 
2017
2017
  export type ZlibOptions = ZlibOptions$instance;
2018
2018
 
2019
2019
  export abstract class assert$instance {
2020
- static deepEqual(actual: unknown, expected: unknown, message?: string): void;
2021
- static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2022
- static doesNotMatch(string_: string, regexp: Regex, message?: string): void;
2023
- static doesNotThrow(fn: Action, message?: string): void;
2024
- static equal(actual: unknown, expected: unknown, message?: string): void;
2025
- static fail(message?: string): void;
2026
- static ifError(value: unknown): void;
2027
- static match(string_: string, regexp: Regex, message?: string): void;
2028
- static notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
2029
- static notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2030
- static notEqual(actual: unknown, expected: unknown, message?: string): void;
2031
- static notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2032
- static ok(value: boolean, message?: string): void;
2033
- static strictEqual(actual: unknown, expected: unknown, message?: string): void;
2034
- static throws(fn: Action, message?: string): void;
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;
2035
2035
  }
2036
2036
 
2037
2037
 
@@ -2050,54 +2050,54 @@ export abstract class Certificate$instance {
2050
2050
  export type Certificate = Certificate$instance;
2051
2051
 
2052
2052
  export abstract class child_process$instance {
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;
2056
- static execFileSync(file: string, args?: string[], options?: ExecOptions): unknown;
2057
- static execSync(command: string, options: ExecOptions): unknown;
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;
2058
2058
  static execSync(command: string): byte[];
2059
- static fork(modulePath: string, args?: string[], options?: ExecOptions): ChildProcess;
2060
- static spawn(command: string, args?: string[], options?: ExecOptions): ChildProcess;
2061
- static spawnSync(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<byte[]>;
2062
- static spawnSyncString(command: string, args?: string[], options?: ExecOptions): SpawnSyncReturns_1<System_Internal.String>;
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>;
2063
2063
  }
2064
2064
 
2065
2065
 
2066
2066
  export type child_process = child_process$instance;
2067
2067
 
2068
2068
  export abstract class console$instance {
2069
- static assert(value: boolean, message?: string, ...optionalParams: unknown[]): void;
2069
+ static assert(value: boolean, message?: string | undefined, ...optionalParams: unknown[]): void;
2070
2070
  static clear(): void;
2071
2071
  static count(label?: string): void;
2072
2072
  static countReset(label?: string): void;
2073
- static debug(message?: unknown, ...optionalParams: unknown[]): void;
2074
- static dir(obj: unknown, ...options: unknown[]): void;
2073
+ static debug(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2074
+ static dir(obj: unknown | undefined, ...options: unknown[]): void;
2075
2075
  static dirxml(...data: unknown[]): void;
2076
- static error(message?: unknown, ...optionalParams: unknown[]): void;
2076
+ static error(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2077
2077
  static group(...label: unknown[]): void;
2078
2078
  static groupCollapsed(...label: unknown[]): void;
2079
2079
  static groupEnd(): void;
2080
- static info(message?: unknown, ...optionalParams: unknown[]): void;
2081
- static log(message?: unknown, ...optionalParams: unknown[]): void;
2080
+ static info(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2081
+ static log(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2082
2082
  static profile(label?: string): void;
2083
2083
  static profileEnd(label?: string): void;
2084
- static table(tabularData: unknown, properties?: string[]): void;
2084
+ static table(tabularData: unknown, properties?: string[] | undefined): void;
2085
2085
  static time(label?: string): void;
2086
2086
  static timeEnd(label?: string): void;
2087
- static timeLog(label?: string, ...data: unknown[]): void;
2087
+ static timeLog(label?: string | undefined, ...data: unknown[]): void;
2088
2088
  static timeStamp(label?: string): void;
2089
- static trace(message?: unknown, ...optionalParams: unknown[]): void;
2090
- static warn(message?: unknown, ...optionalParams: unknown[]): void;
2089
+ static trace(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2090
+ static warn(message?: unknown | undefined, ...optionalParams: unknown[]): void;
2091
2091
  }
2092
2092
 
2093
2093
 
2094
2094
  export type console = console$instance;
2095
2095
 
2096
2096
  export abstract class crypto$instance {
2097
- static createCipheriv(algorithm: string, key: byte[], iv: byte[]): Cipher;
2098
- static createCipheriv(algorithm: string, key: string, iv: string): Cipher;
2099
- static createDecipheriv(algorithm: string, key: byte[], iv: byte[]): Decipher;
2100
- static createDecipheriv(algorithm: string, key: string, iv: string): Decipher;
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;
2101
2101
  static createDiffieHellman(prime: byte[], generator: byte[]): DiffieHellman;
2102
2102
  static createDiffieHellman(prime: byte[], generator?: int): DiffieHellman;
2103
2103
  static createDiffieHellman(primeLength: int, generator?: int): DiffieHellman;
@@ -2113,23 +2113,23 @@ export abstract class crypto$instance {
2113
2113
  static createPublicKey(key: byte[]): KeyObject;
2114
2114
  static createPublicKey(key: string): KeyObject;
2115
2115
  static createSecretKey(key: byte[]): KeyObject;
2116
- static createSecretKey(key: string, encoding?: string): KeyObject;
2116
+ static createSecretKey(key: string, encoding?: string | undefined): KeyObject;
2117
2117
  static createSign(algorithm: string): Sign;
2118
2118
  static createVerify(algorithm: string): Verify;
2119
- static generateKey(type_: string, options: unknown, callback: Action<Exception, KeyObject>): void;
2119
+ static generateKey(type_: string, options: unknown, callback: Action<Exception | undefined, KeyObject | undefined>): void;
2120
2120
  static generateKey(type_: string, options: unknown): KeyObject;
2121
- static generateKeyPair(type_: string, options: unknown, callback: Action<Exception, unknown, unknown>): void;
2122
- static generateKeyPairSync(type_: string, options?: unknown): ValueTuple<KeyObject, 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>;
2123
2123
  static getCiphers(): string[];
2124
2124
  static getCurves(): string[];
2125
2125
  static getDefaultCipherList(): string;
2126
2126
  static getDiffieHellman(groupName: string): DiffieHellman;
2127
2127
  static getFips(): boolean;
2128
2128
  static getHashes(): string[];
2129
- static hash(algorithm: string, data: byte[], outputEncoding?: string): byte[];
2130
- static hkdf(digest: string, ikm: byte[], salt: byte[], info: byte[], keylen: int, callback: Action<Exception, byte[]>): void;
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;
2131
2131
  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, byte[]>): void;
2132
+ static pbkdf2(password: string, salt: string, iterations: int, keylen: int, digest: string, callback: Action<Exception | undefined, byte[] | undefined>): void;
2133
2133
  static pbkdf2Sync(password: byte[], salt: byte[], iterations: int, keylen: int, digest: string): byte[];
2134
2134
  static pbkdf2Sync(password: string, salt: string, iterations: int, keylen: int, digest: string): byte[];
2135
2135
  static privateDecrypt(key: unknown, buffer: byte[]): byte[];
@@ -2140,31 +2140,31 @@ export abstract class crypto$instance {
2140
2140
  static publicDecrypt(key: string, buffer: byte[]): byte[];
2141
2141
  static publicEncrypt(key: unknown, buffer: byte[]): byte[];
2142
2142
  static publicEncrypt(key: string, buffer: byte[]): byte[];
2143
- static randomBytes(size: int, callback: Action<Exception, byte[]>): void;
2143
+ static randomBytes(size: int, callback: Action<Exception | undefined, byte[] | undefined>): void;
2144
2144
  static randomBytes(size: int): byte[];
2145
- static randomFill(buffer: byte[], offset: int, size: int, callback: Action<Exception, byte[]>): void;
2145
+ static randomFill(buffer: byte[], offset: int, size: int, callback: Action<Exception | undefined, byte[] | undefined>): void;
2146
2146
  static randomFillSync(buffer: byte[], offset?: int, size?: Nullable<System_Internal.Int32>): byte[];
2147
2147
  static randomInt(min: int, max: int): int;
2148
2148
  static randomInt(max: int): int;
2149
2149
  static randomUUID(): string;
2150
- static scrypt(password: string, salt: string, keylen: int, options: unknown, callback: Action<Exception, byte[]>): void;
2151
- static scryptSync(password: byte[], salt: byte[], keylen: int, options?: unknown): byte[];
2152
- static scryptSync(password: string, salt: string, keylen: int, options?: unknown): byte[];
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[];
2153
2153
  static setDefaultEncoding(encoding: string): void;
2154
2154
  static setFips(enabled: boolean): void;
2155
- static sign(algorithm: string, data: byte[], privateKey: KeyObject): byte[];
2156
- static sign(algorithm: string, data: byte[], privateKey: string): byte[];
2155
+ static sign(algorithm: string | undefined, data: byte[], privateKey: KeyObject): byte[];
2156
+ static sign(algorithm: string | undefined, data: byte[], privateKey: string): byte[];
2157
2157
  static timingSafeEqual(a: byte[], b: byte[]): boolean;
2158
- static verify(algorithm: string, data: byte[], publicKey: KeyObject, signature: byte[]): boolean;
2159
- static verify(algorithm: string, data: byte[], publicKey: string, signature: 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;
2160
2160
  }
2161
2161
 
2162
2162
 
2163
2163
  export type crypto = crypto$instance;
2164
2164
 
2165
2165
  export abstract class dgram$instance {
2166
- static createSocket(options: SocketOptions, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2167
- static createSocket(type_: string, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2166
+ static createSocket(options: SocketOptions, callback?: Action<byte[], RemoteInfo> | undefined): DgramSocket;
2167
+ static createSocket(type_: string, callback?: Action<byte[], RemoteInfo> | undefined): DgramSocket;
2168
2168
  }
2169
2169
 
2170
2170
 
@@ -2200,29 +2200,29 @@ export abstract class dns$instance {
2200
2200
  static readonly CANCELLED: string;
2201
2201
  static getDefaultResultOrder(): string;
2202
2202
  static getServers(): string[];
2203
- static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, LookupAddress[]>): 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;
2208
- static resolve(hostname: string, callback: Action<Exception, string[]>): void;
2209
- static resolve(hostname: string, rrtype: string, callback: Action<Exception, unknown>): void;
2210
- static resolve4(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
2211
- static resolve4(hostname: string, callback: Action<Exception, string[]>): void;
2212
- static resolve6(hostname: string, options: ResolveOptions, callback: Action<Exception, unknown>): void;
2213
- static resolve6(hostname: string, callback: Action<Exception, string[]>): void;
2214
- static resolveAny(hostname: string, callback: Action<Exception, unknown[]>): void;
2215
- static resolveCaa(hostname: string, callback: Action<Exception, CaaRecord[]>): void;
2216
- static resolveCname(hostname: string, callback: Action<Exception, string[]>): void;
2217
- static resolveMx(hostname: string, callback: Action<Exception, MxRecord[]>): void;
2218
- static resolveNaptr(hostname: string, callback: Action<Exception, NaptrRecord[]>): void;
2219
- static resolveNs(hostname: string, callback: Action<Exception, string[]>): void;
2220
- static resolvePtr(hostname: string, callback: Action<Exception, string[]>): void;
2221
- static resolveSoa(hostname: string, callback: Action<Exception, SoaRecord>): void;
2222
- static resolveSrv(hostname: string, callback: Action<Exception, SrvRecord[]>): void;
2223
- static resolveTlsa(hostname: string, callback: Action<Exception, TlsaRecord[]>): void;
2224
- static resolveTxt(hostname: string, callback: Action<Exception, string[][]>): void;
2225
- static reverse(ip: string, callback: Action<Exception, string[]>): void;
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;
2226
2226
  static setDefaultResultOrder(order: string): void;
2227
2227
  static setServers(servers: string[]): void;
2228
2228
  }
@@ -2233,8 +2233,8 @@ export type dns = dns$instance;
2233
2233
  export abstract class fs$instance {
2234
2234
  static access(path: string, mode?: int): Task;
2235
2235
  static accessSync(path: string, mode?: int): void;
2236
- static appendFile(path: string, data: string, encoding?: string): Task;
2237
- static appendFileSync(path: string, data: string, encoding?: string): void;
2236
+ static appendFile(path: string, data: string, encoding?: string | undefined): Task;
2237
+ static appendFileSync(path: string, data: string, encoding?: string | undefined): void;
2238
2238
  static chmod(path: string, mode: int): Task;
2239
2239
  static chmodSync(path: string, mode: int): void;
2240
2240
  static close(fd: int): Task;
@@ -2253,9 +2253,9 @@ export abstract class fs$instance {
2253
2253
  static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
2254
2254
  static readdir(path: string, withFileTypes?: boolean): Task<string[]>;
2255
2255
  static readdirSync(path: string, withFileTypes?: boolean): string[];
2256
- static readFile(path: string, encoding?: string): Task<System_Internal.String>;
2256
+ static readFile(path: string, encoding?: string | undefined): Task<System_Internal.String>;
2257
2257
  static readFileBytes(path: string): Task<byte[]>;
2258
- static readFileSync(path: string, encoding?: string): string;
2258
+ static readFileSync(path: string, encoding?: string | undefined): string;
2259
2259
  static readFileSyncBytes(path: string): byte[];
2260
2260
  static readlink(path: string): Task<System_Internal.String>;
2261
2261
  static readlinkSync(path: string): string;
@@ -2270,34 +2270,34 @@ export abstract class fs$instance {
2270
2270
  static rmSync(path: string, recursive?: boolean): void;
2271
2271
  static stat(path: string): Task<Stats>;
2272
2272
  static statSync(path: string): Stats;
2273
- static symlink(target: string, path: string, type_?: string): Task;
2274
- static symlinkSync(target: string, path: string, type_?: string): void;
2273
+ static symlink(target: string, path: string, type_?: string | undefined): Task;
2274
+ static symlinkSync(target: string, path: string, type_?: string | undefined): void;
2275
2275
  static truncate(path: string, len?: long): Task;
2276
2276
  static truncateSync(path: string, len?: long): void;
2277
2277
  static unlink(path: string): Task;
2278
2278
  static unlinkSync(path: string): void;
2279
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>;
2281
- static writeFile(path: string, data: string, encoding?: string): Task;
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;
2282
2282
  static writeFileBytes(path: string, data: byte[]): Task;
2283
- static writeFileSync(path: string, data: string, encoding?: string): void;
2283
+ static writeFileSync(path: string, data: string, encoding?: string | undefined): void;
2284
2284
  static writeFileSyncBytes(path: string, data: byte[]): void;
2285
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;
2286
+ static writeSync(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string | undefined): int;
2287
2287
  }
2288
2288
 
2289
2289
 
2290
2290
  export type fs = fs$instance;
2291
2291
 
2292
2292
  export abstract class net$instance {
2293
- static connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
2293
+ static connect(options: TcpSocketConnectOpts, connectionListener?: Action | undefined): Socket;
2294
2294
  static connect(port: int, host?: string, connectionListener?: Action): Socket;
2295
- static connect(path: string, connectionListener?: Action): Socket;
2296
- static createConnection(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
2295
+ static connect(path: string, connectionListener?: Action | undefined): Socket;
2296
+ static createConnection(options: TcpSocketConnectOpts, connectionListener?: Action | undefined): Socket;
2297
2297
  static createConnection(port: int, host?: string, connectionListener?: Action): Socket;
2298
- static createConnection(path: string, connectionListener?: Action): Socket;
2299
- static createServer(options: ServerOpts, connectionListener?: Action<Socket>): Server;
2300
- static createServer(connectionListener?: Action<Socket>): Server;
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;
2301
2301
  static getDefaultAutoSelectFamily(): boolean;
2302
2302
  static getDefaultAutoSelectFamilyAttemptTimeout(): int;
2303
2303
  static isIP(input: string): int;
@@ -2338,7 +2338,7 @@ export abstract class path$instance {
2338
2338
  static readonly delimiter: string;
2339
2339
  static readonly posix: PathModule;
2340
2340
  static readonly win32: PathModule;
2341
- static basename(path: string, suffix?: string): string;
2341
+ static basename(path: string, suffix?: string | undefined): string;
2342
2342
  static dirname(path: string): string;
2343
2343
  static extname(path: string): string;
2344
2344
  static format(pathObject: ParsedPath): string;
@@ -2359,10 +2359,10 @@ export abstract class performance$instance {
2359
2359
  static clearMarks(name?: string): void;
2360
2360
  static clearMeasures(name?: string): void;
2361
2361
  static getEntries(): PerformanceEntry[];
2362
- static getEntriesByName(name: string, type_?: string): PerformanceEntry[];
2362
+ static getEntriesByName(name: string, type_?: string | undefined): PerformanceEntry[];
2363
2363
  static getEntriesByType(type_: string): PerformanceEntry[];
2364
- static mark(name: string, options?: MarkOptions): PerformanceMark;
2365
- static measure(name: string, startOrOptions?: unknown, endMark?: string): PerformanceMeasure;
2364
+ static mark(name: string, options?: MarkOptions | undefined): PerformanceMark;
2365
+ static measure(name: string, startOrOptions?: unknown | undefined, endMark?: string | undefined): PerformanceMeasure;
2366
2366
  static now(): double;
2367
2367
  }
2368
2368
 
@@ -2391,11 +2391,11 @@ export abstract class process$instance {
2391
2391
  export type process = process$instance;
2392
2392
 
2393
2393
  export abstract class querystring$instance {
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;
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;
2396
2396
  static escape(str: 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;
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;
2399
2399
  static unescape(str: string): string;
2400
2400
  }
2401
2401
 
@@ -2403,20 +2403,20 @@ export abstract class querystring$instance {
2403
2403
  export type querystring = querystring$instance;
2404
2404
 
2405
2405
  export abstract class readline$instance {
2406
- static clearLine(stream: Writable, dir: int, callback?: Action): boolean;
2407
- static clearScreenDown(stream: Writable, callback?: Action): boolean;
2408
- static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable<System_Internal.String>;
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>;
2409
2409
  static createInterface(options: InterfaceOptions): Interface;
2410
- static createInterface(input: Readable, output?: Writable): Interface;
2411
- static cursorTo(stream: Writable, x: int, y?: Nullable<System_Internal.Int32>, callback?: Action): boolean;
2412
- static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action): boolean;
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;
2413
2413
  }
2414
2414
 
2415
2415
 
2416
2416
  export type readline = readline$instance;
2417
2417
 
2418
2418
  export abstract class stream$instance {
2419
- static finished(stream: Stream, callback: Action<Exception>): void;
2419
+ static finished(stream: Stream, callback: Action<Exception | undefined>): void;
2420
2420
  static finished(stream: Stream): Task;
2421
2421
  static pipeline(...streams: unknown[]): void;
2422
2422
  }
@@ -2445,13 +2445,13 @@ export abstract class tls$instance {
2445
2445
  static DEFAULT_MIN_VERSION: string;
2446
2446
  static DEFAULT_CIPHERS: string;
2447
2447
  static readonly rootCertificates: string[];
2448
- static checkServerIdentity(hostname: string, cert: PeerCertificate): Exception;
2449
- static connect(options: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
2448
+ static checkServerIdentity(hostname: string, cert: PeerCertificate): Exception | undefined;
2449
+ static connect(options: ConnectionOptions, secureConnectListener?: Action | undefined): TLSSocket;
2450
2450
  static connect(port: int, options?: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
2451
2451
  static connect(port: int, host?: string, options?: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
2452
- static createSecureContext(options?: SecureContextOptions): SecureContext;
2453
- static createServer(options: TlsOptions, secureConnectionListener?: Action<TLSSocket>): TLSServer;
2454
- static createServer(secureConnectionListener?: Action<TLSSocket>): TLSServer;
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;
2455
2455
  static getCACertificates(type_?: string): string[];
2456
2456
  static getCiphers(): string[];
2457
2457
  static setDefaultCACertificates(certs: string[]): void;
@@ -2462,11 +2462,11 @@ export type tls = tls$instance;
2462
2462
 
2463
2463
  export abstract class util$instance {
2464
2464
  static debuglog(section: string): DebugLogFunction;
2465
- static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string): Func<TResult>;
2466
- static deprecate(action: Action, msg: string, code?: string): Action;
2467
- static format(format: unknown, ...args: unknown[]): string;
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;
2468
2468
  static inherits(constructor_: unknown, superConstructor: unknown): void;
2469
- static inspect(obj: unknown): string;
2469
+ static inspect(obj: unknown | undefined): string;
2470
2470
  static isArray(obj: unknown): boolean;
2471
2471
  static isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
2472
2472
  }
@@ -2483,17 +2483,17 @@ export abstract class X509CertificateExtensions$instance {
2483
2483
  export type X509CertificateExtensions = X509CertificateExtensions$instance;
2484
2484
 
2485
2485
  export abstract class zlib$instance {
2486
- static brotliCompressSync(buffer: byte[], options?: BrotliOptions): byte[];
2487
- static brotliDecompressSync(buffer: byte[], options?: BrotliOptions): byte[];
2486
+ static brotliCompressSync(buffer: byte[], options?: BrotliOptions | undefined): byte[];
2487
+ static brotliDecompressSync(buffer: byte[], options?: BrotliOptions | undefined): byte[];
2488
2488
  static crc32(data: byte[], value?: uint): uint;
2489
2489
  static crc32(data: string, value?: uint): uint;
2490
- static deflateRawSync(buffer: byte[], options?: ZlibOptions): byte[];
2491
- static deflateSync(buffer: byte[], options?: ZlibOptions): byte[];
2492
- static gunzipSync(buffer: byte[], options?: ZlibOptions): byte[];
2493
- static gzipSync(buffer: byte[], options?: ZlibOptions): byte[];
2494
- static inflateRawSync(buffer: byte[], options?: ZlibOptions): byte[];
2495
- static inflateSync(buffer: byte[], options?: ZlibOptions): byte[];
2496
- static unzipSync(buffer: byte[], options?: ZlibOptions): byte[];
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[];
2497
2497
  }
2498
2498
 
2499
2499