@tsonic/nodejs 0.4.1 → 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.
- package/nodejs/internal/index.d.ts +364 -364
- package/nodejs.Http/internal/index.d.ts +20 -20
- package/package.json +1 -1
|
@@ -199,16 +199,16 @@ export const AnyTxtRecord: {
|
|
|
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;
|
|
211
|
+
new(message: string | undefined, actual: unknown | undefined, expected: unknown | undefined, operator: string): AssertionError;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
|
|
@@ -365,12 +365,12 @@ 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
|
|
|
@@ -387,16 +387,16 @@ 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
|
|
|
@@ -410,13 +410,13 @@ 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
|
|
|
@@ -442,11 +442,11 @@ export const CipherNameAndProtocol: {
|
|
|
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
|
|
|
@@ -458,13 +458,13 @@ export const CommonConnectionOptions: {
|
|
|
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
|
|
|
@@ -521,12 +521,12 @@ 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
|
|
|
@@ -538,7 +538,7 @@ export const Decipher: {
|
|
|
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
|
|
|
@@ -550,19 +550,19 @@ export const DetailedPeerCertificate: {
|
|
|
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;
|
|
@@ -597,24 +597,24 @@ export const DgramSocket: {
|
|
|
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
|
|
|
@@ -627,11 +627,11 @@ export const DiffieHellman: {
|
|
|
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
|
|
|
@@ -643,11 +643,11 @@ export const DSAPrivateKeyObject: {
|
|
|
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
|
|
|
@@ -664,10 +664,10 @@ 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
|
|
|
@@ -679,19 +679,19 @@ export const Duplex: {
|
|
|
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
|
|
|
@@ -704,11 +704,11 @@ export const ECDH: {
|
|
|
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
|
|
|
@@ -720,11 +720,11 @@ export const EdDSAPrivateKeyObject: {
|
|
|
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
|
|
|
@@ -762,7 +762,7 @@ 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
|
}
|
|
@@ -771,24 +771,24 @@ export interface EventEmitter$instance {
|
|
|
771
771
|
export const EventEmitter: {
|
|
772
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;
|
|
@@ -805,11 +805,11 @@ 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
|
|
|
@@ -822,10 +822,10 @@ export const Hash: {
|
|
|
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
|
|
|
@@ -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>;
|
|
@@ -908,11 +908,11 @@ export const IpcSocketConnectOpts: {
|
|
|
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
|
|
|
@@ -955,7 +955,7 @@ 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
|
|
|
@@ -968,7 +968,7 @@ export const LookupOptions: {
|
|
|
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
|
|
|
@@ -981,11 +981,11 @@ export const MarkOptions: {
|
|
|
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
|
|
|
@@ -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;
|
|
@@ -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,7 +1091,7 @@ 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
|
}
|
|
@@ -1120,24 +1120,24 @@ export const PerformanceEntry: {
|
|
|
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;
|
|
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;
|
|
1140
|
+
new(name: string | undefined, startTime: double, duration: double, detail: unknown | undefined): PerformanceMeasure;
|
|
1141
1141
|
};
|
|
1142
1142
|
|
|
1143
1143
|
|
|
@@ -1160,7 +1160,7 @@ 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
|
|
|
@@ -1174,7 +1174,7 @@ 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
|
|
|
@@ -1186,11 +1186,11 @@ export const PerformanceObserverOptions: {
|
|
|
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
|
|
|
@@ -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<
|
|
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,7 +1217,7 @@ 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
|
|
|
@@ -1244,12 +1244,12 @@ export const ProcessVersions: {
|
|
|
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
|
|
|
@@ -1266,15 +1266,15 @@ 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
|
|
|
@@ -1328,24 +1328,24 @@ 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
|
}
|
|
@@ -1374,11 +1374,11 @@ export const ResolverOptions: {
|
|
|
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
|
|
|
@@ -1391,13 +1391,13 @@ export const SecretKeyObject: {
|
|
|
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
|
|
|
@@ -1409,14 +1409,14 @@ export const SecureContext: {
|
|
|
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
|
|
|
@@ -1431,13 +1431,13 @@ 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
|
}
|
|
@@ -1445,8 +1445,8 @@ export interface Server$instance extends EventEmitter {
|
|
|
1445
1445
|
|
|
1446
1446
|
export const Server: {
|
|
1447
1447
|
new(): Server;
|
|
1448
|
-
new(connectionListener: Action<Socket>): Server;
|
|
1449
|
-
new(options: ServerOpts, connectionListener: Action<Socket>): Server;
|
|
1448
|
+
new(connectionListener: Action<Socket> | undefined): Server;
|
|
1449
|
+
new(options: ServerOpts, connectionListener: Action<Socket> | undefined): Server;
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
1452
|
|
|
@@ -1467,11 +1467,11 @@ 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
|
|
|
@@ -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
1541
|
new(): Socket;
|
|
1542
|
-
new(options: SocketConstructorOpts): Socket;
|
|
1542
|
+
new(options: SocketConstructorOpts | undefined): Socket;
|
|
1543
1543
|
};
|
|
1544
1544
|
|
|
1545
1545
|
|
|
@@ -1608,10 +1608,10 @@ export const SocketOptions: {
|
|
|
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;
|
|
@@ -1680,7 +1680,7 @@ export const Stream: {
|
|
|
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
|
|
|
@@ -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;
|
|
@@ -1763,11 +1763,11 @@ 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
|
}
|
|
@@ -1781,69 +1781,69 @@ export const TlsOptions: {
|
|
|
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
1792
|
new(): TLSServer;
|
|
1793
|
-
new(secureConnectionListener: Action<TLSSocket>): TLSServer;
|
|
1794
|
-
new(options: TlsOptions, secureConnectionListener: Action<TLSSocket>): 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;
|
|
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
|
|
|
@@ -1884,8 +1884,8 @@ export interface URL$instance {
|
|
|
1884
1884
|
|
|
1885
1885
|
|
|
1886
1886
|
export const URL: {
|
|
1887
|
-
new(input: string, base: string): URL;
|
|
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;
|
|
@@ -1919,7 +1919,7 @@ 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
|
}
|
|
@@ -1934,11 +1934,11 @@ 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
|
|
|
@@ -1957,10 +1957,10 @@ 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
|
|
|
@@ -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;
|
|
@@ -2017,21 +2017,21 @@ export const ZlibOptions: {
|
|
|
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
|
|
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
|
|
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
|
|