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