@tsonic/nodejs 10.0.1 → 10.0.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/README.md +5 -0
- package/index/bindings.json +8016 -3087
- package/index/internal/index.d.ts +401 -122
- package/index.d.ts +14 -1
- package/nodejs.Http/bindings.json +164 -83
- package/nodejs.Http/internal/index.d.ts +14 -13
- package/package.json +1 -1
|
@@ -139,11 +139,11 @@ export const AnyPtrRecord: {
|
|
|
139
139
|
export type AnyPtrRecord = AnyPtrRecord$instance;
|
|
140
140
|
|
|
141
141
|
export interface AnyRecord$instance {
|
|
142
|
-
|
|
142
|
+
type: string;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
export const AnyRecord: {
|
|
146
|
+
export const AnyRecord: (abstract new() => AnyRecord) & {
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
|
|
@@ -200,10 +200,10 @@ export type AnyTxtRecord = AnyTxtRecord$instance;
|
|
|
200
200
|
|
|
201
201
|
export interface AssertionError$instance extends Exception {
|
|
202
202
|
get actual(): unknown | undefined;
|
|
203
|
-
set actual(value: unknown);
|
|
203
|
+
set actual(value: unknown | undefined);
|
|
204
204
|
readonly code: string;
|
|
205
205
|
get expected(): unknown | undefined;
|
|
206
|
-
set expected(value: unknown);
|
|
206
|
+
set expected(value: unknown | undefined);
|
|
207
207
|
generatedMessage: boolean;
|
|
208
208
|
operator: string;
|
|
209
209
|
}
|
|
@@ -217,7 +217,8 @@ export const AssertionError: {
|
|
|
217
217
|
export type AssertionError = AssertionError$instance;
|
|
218
218
|
|
|
219
219
|
export interface BindOptions$instance {
|
|
220
|
-
address: string;
|
|
220
|
+
get address(): string | undefined;
|
|
221
|
+
set address(value: string | undefined);
|
|
221
222
|
exclusive: boolean;
|
|
222
223
|
fd: Nullable<System_Internal.Int32>;
|
|
223
224
|
port: Nullable<System_Internal.Int32>;
|
|
@@ -262,7 +263,7 @@ export const BrotliOptions: {
|
|
|
262
263
|
export type BrotliOptions = BrotliOptions$instance;
|
|
263
264
|
|
|
264
265
|
export interface Buffer$instance {
|
|
265
|
-
|
|
266
|
+
[index: number]: byte;
|
|
266
267
|
readonly length: int;
|
|
267
268
|
compare(target: Buffer, targetStart?: Nullable<System_Internal.Int32>, targetEnd?: Nullable<System_Internal.Int32>, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
|
|
268
269
|
copy(target: Buffer, targetStart?: int, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
|
|
@@ -346,7 +347,6 @@ export interface Buffer$instance {
|
|
|
346
347
|
|
|
347
348
|
|
|
348
349
|
export const Buffer: {
|
|
349
|
-
new(): Buffer;
|
|
350
350
|
poolSize: int;
|
|
351
351
|
alloc(size: int, fill?: unknown, encoding?: string): Buffer;
|
|
352
352
|
allocUnsafe(size: int): Buffer;
|
|
@@ -366,18 +366,31 @@ export const Buffer: {
|
|
|
366
366
|
|
|
367
367
|
export type Buffer = Buffer$instance;
|
|
368
368
|
|
|
369
|
+
export interface BufferConstants$instance {
|
|
370
|
+
readonly MAX_LENGTH: int;
|
|
371
|
+
readonly MAX_STRING_LENGTH: int;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
export const BufferConstants: {
|
|
376
|
+
new(): BufferConstants;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
export type BufferConstants = BufferConstants$instance;
|
|
381
|
+
|
|
369
382
|
export interface CaaRecord$instance {
|
|
370
383
|
get contactemail(): string | undefined;
|
|
371
|
-
set contactemail(value: string);
|
|
384
|
+
set contactemail(value: string | undefined);
|
|
372
385
|
get contactphone(): string | undefined;
|
|
373
|
-
set contactphone(value: string);
|
|
386
|
+
set contactphone(value: string | undefined);
|
|
374
387
|
critical: int;
|
|
375
388
|
get iodef(): string | undefined;
|
|
376
|
-
set iodef(value: string);
|
|
389
|
+
set iodef(value: string | undefined);
|
|
377
390
|
get issue(): string | undefined;
|
|
378
|
-
set issue(value: string);
|
|
391
|
+
set issue(value: string | undefined);
|
|
379
392
|
get issuewild(): string | undefined;
|
|
380
|
-
set issuewild(value: string);
|
|
393
|
+
set issuewild(value: string | undefined);
|
|
381
394
|
}
|
|
382
395
|
|
|
383
396
|
|
|
@@ -389,17 +402,21 @@ export const CaaRecord: {
|
|
|
389
402
|
export type CaaRecord = CaaRecord$instance;
|
|
390
403
|
|
|
391
404
|
export interface ChildProcess$instance extends EventEmitter {
|
|
392
|
-
|
|
393
|
-
|
|
405
|
+
connected: boolean;
|
|
406
|
+
exitCode: Nullable<System_Internal.Int32>;
|
|
394
407
|
readonly killed: boolean;
|
|
395
408
|
readonly pid: int;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
409
|
+
referenced: boolean;
|
|
410
|
+
get signalCode(): string | undefined;
|
|
411
|
+
set signalCode(value: string | undefined);
|
|
412
|
+
spawnargs: string[];
|
|
413
|
+
spawnfile: string;
|
|
414
|
+
get stderr(): Readable | undefined;
|
|
415
|
+
set stderr(value: Readable | undefined);
|
|
416
|
+
get stdin(): Writable | undefined;
|
|
417
|
+
set stdin(value: Writable | undefined);
|
|
418
|
+
get stdout(): Readable | undefined;
|
|
419
|
+
set stdout(value: Readable | undefined);
|
|
403
420
|
disconnect(): void;
|
|
404
421
|
kill(signal?: string): boolean;
|
|
405
422
|
ref(): void;
|
|
@@ -409,7 +426,6 @@ export interface ChildProcess$instance extends EventEmitter {
|
|
|
409
426
|
|
|
410
427
|
|
|
411
428
|
export const ChildProcess: {
|
|
412
|
-
new(): ChildProcess;
|
|
413
429
|
};
|
|
414
430
|
|
|
415
431
|
|
|
@@ -419,6 +435,7 @@ export interface Cipher$instance extends Transform {
|
|
|
419
435
|
Dispose(): void;
|
|
420
436
|
final(outputEncoding?: string): string;
|
|
421
437
|
final(): byte[];
|
|
438
|
+
Finalize(): void;
|
|
422
439
|
getAuthTag(): byte[];
|
|
423
440
|
setAAD(buffer: byte[]): void;
|
|
424
441
|
setAuthTag(tagLength: int): void;
|
|
@@ -428,7 +445,6 @@ export interface Cipher$instance extends Transform {
|
|
|
428
445
|
|
|
429
446
|
|
|
430
447
|
export const Cipher: {
|
|
431
|
-
new(): Cipher;
|
|
432
448
|
};
|
|
433
449
|
|
|
434
450
|
|
|
@@ -450,12 +466,12 @@ export type CipherNameAndProtocol = CipherNameAndProtocol$instance;
|
|
|
450
466
|
|
|
451
467
|
export interface CommonConnectionOptions$instance {
|
|
452
468
|
get ALPNProtocols(): string[] | undefined;
|
|
453
|
-
set ALPNProtocols(value: string[]);
|
|
469
|
+
set ALPNProtocols(value: string[] | undefined);
|
|
454
470
|
enableTrace: Nullable<System_Internal.Boolean>;
|
|
455
471
|
rejectUnauthorized: Nullable<System_Internal.Boolean>;
|
|
456
472
|
requestCert: Nullable<System_Internal.Boolean>;
|
|
457
473
|
get secureContext(): SecureContext | undefined;
|
|
458
|
-
set secureContext(value: SecureContext);
|
|
474
|
+
set secureContext(value: SecureContext | undefined);
|
|
459
475
|
}
|
|
460
476
|
|
|
461
477
|
|
|
@@ -468,17 +484,18 @@ export type CommonConnectionOptions = CommonConnectionOptions$instance;
|
|
|
468
484
|
|
|
469
485
|
export interface ConnectionOptions$instance extends CommonConnectionOptions {
|
|
470
486
|
get ca(): unknown | undefined;
|
|
471
|
-
set ca(value: unknown);
|
|
487
|
+
set ca(value: unknown | undefined);
|
|
472
488
|
get cert(): unknown | undefined;
|
|
473
|
-
set cert(value: unknown);
|
|
474
|
-
host: string;
|
|
489
|
+
set cert(value: unknown | undefined);
|
|
490
|
+
get host(): string | undefined;
|
|
491
|
+
set host(value: string | undefined);
|
|
475
492
|
get key(): unknown | undefined;
|
|
476
|
-
set key(value: unknown);
|
|
493
|
+
set key(value: unknown | undefined);
|
|
477
494
|
get passphrase(): string | undefined;
|
|
478
|
-
set passphrase(value: string);
|
|
495
|
+
set passphrase(value: string | undefined);
|
|
479
496
|
port: Nullable<System_Internal.Int32>;
|
|
480
497
|
get servername(): string | undefined;
|
|
481
|
-
set servername(value: string);
|
|
498
|
+
set servername(value: string | undefined);
|
|
482
499
|
timeout: Nullable<System_Internal.Int32>;
|
|
483
500
|
}
|
|
484
501
|
|
|
@@ -490,6 +507,39 @@ export const ConnectionOptions: {
|
|
|
490
507
|
|
|
491
508
|
export type ConnectionOptions = ConnectionOptions$instance;
|
|
492
509
|
|
|
510
|
+
export interface ConsoleConstructor$instance {
|
|
511
|
+
assert(value: boolean, message?: string, ...optionalParams: unknown[]): void;
|
|
512
|
+
clear(): void;
|
|
513
|
+
count(label?: string): void;
|
|
514
|
+
countReset(label?: string): void;
|
|
515
|
+
debug(message?: unknown, ...optionalParams: unknown[]): void;
|
|
516
|
+
dir(obj: unknown, ...options: unknown[]): void;
|
|
517
|
+
dirxml(...data: unknown[]): void;
|
|
518
|
+
error(message?: unknown, ...optionalParams: unknown[]): void;
|
|
519
|
+
group(...label: unknown[]): void;
|
|
520
|
+
groupCollapsed(...label: unknown[]): void;
|
|
521
|
+
groupEnd(): void;
|
|
522
|
+
info(message?: unknown, ...optionalParams: unknown[]): void;
|
|
523
|
+
log(message?: unknown, ...optionalParams: unknown[]): void;
|
|
524
|
+
profile(label?: string): void;
|
|
525
|
+
profileEnd(label?: string): void;
|
|
526
|
+
table(tabularData: unknown, properties?: string[]): void;
|
|
527
|
+
time(label?: string): void;
|
|
528
|
+
timeEnd(label?: string): void;
|
|
529
|
+
timeLog(label?: string, ...data: unknown[]): void;
|
|
530
|
+
timeStamp(label?: string): void;
|
|
531
|
+
trace(message?: unknown, ...optionalParams: unknown[]): void;
|
|
532
|
+
warn(message?: unknown, ...optionalParams: unknown[]): void;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
export const ConsoleConstructor: {
|
|
537
|
+
new(stdout: unknown, stderr: unknown, ignoreErrors: boolean, colorMode: unknown, inspectOptions: Nullable<System_Internal.Int32>, groupIndentation: boolean): ConsoleConstructor;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
export type ConsoleConstructor = ConsoleConstructor$instance;
|
|
542
|
+
|
|
493
543
|
export interface CpuInfo$instance {
|
|
494
544
|
model: string;
|
|
495
545
|
speed: int;
|
|
@@ -537,6 +587,7 @@ export interface Decipher$instance extends Transform {
|
|
|
537
587
|
Dispose(): void;
|
|
538
588
|
final(outputEncoding?: string): string;
|
|
539
589
|
final(): byte[];
|
|
590
|
+
Finalize(): void;
|
|
540
591
|
setAAD(buffer: byte[]): void;
|
|
541
592
|
setAuthTag(buffer: byte[]): void;
|
|
542
593
|
update(data: string, inputEncoding?: string, outputEncoding?: string): string;
|
|
@@ -545,7 +596,6 @@ export interface Decipher$instance extends Transform {
|
|
|
545
596
|
|
|
546
597
|
|
|
547
598
|
export const Decipher: {
|
|
548
|
-
new(): Decipher;
|
|
549
599
|
};
|
|
550
600
|
|
|
551
601
|
|
|
@@ -553,7 +603,7 @@ export type Decipher = Decipher$instance;
|
|
|
553
603
|
|
|
554
604
|
export interface DetailedPeerCertificate$instance extends PeerCertificate {
|
|
555
605
|
get issuerCertificate(): DetailedPeerCertificate | undefined;
|
|
556
|
-
set issuerCertificate(value: DetailedPeerCertificate);
|
|
606
|
+
set issuerCertificate(value: DetailedPeerCertificate | undefined);
|
|
557
607
|
}
|
|
558
608
|
|
|
559
609
|
|
|
@@ -605,7 +655,6 @@ export interface DgramSocket$instance extends EventEmitter {
|
|
|
605
655
|
|
|
606
656
|
|
|
607
657
|
export const DgramSocket: {
|
|
608
|
-
new(): DgramSocket;
|
|
609
658
|
};
|
|
610
659
|
|
|
611
660
|
|
|
@@ -616,6 +665,7 @@ export interface DiffieHellman$instance {
|
|
|
616
665
|
computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
|
|
617
666
|
computeSecret(otherPublicKey: byte[]): byte[];
|
|
618
667
|
Dispose(): void;
|
|
668
|
+
Dispose(disposing: boolean): void;
|
|
619
669
|
generateKeys(encoding?: string): string;
|
|
620
670
|
generateKeys(): byte[];
|
|
621
671
|
getGenerator(encoding?: string): string;
|
|
@@ -635,12 +685,47 @@ export interface DiffieHellman$instance {
|
|
|
635
685
|
|
|
636
686
|
|
|
637
687
|
export const DiffieHellman: {
|
|
638
|
-
new(): DiffieHellman;
|
|
639
688
|
};
|
|
640
689
|
|
|
641
690
|
|
|
642
691
|
export type DiffieHellman = DiffieHellman$instance;
|
|
643
692
|
|
|
693
|
+
export interface DnsPromises$instance {
|
|
694
|
+
getDefaultResultOrder(): string;
|
|
695
|
+
getServers(): string[];
|
|
696
|
+
lookup(hostname: string, options?: LookupOptions): Task<LookupAddress>;
|
|
697
|
+
lookupAll(hostname: string, options?: LookupOptions): Task<LookupAddress[]>;
|
|
698
|
+
lookupService(address: string, port: int): Task<LookupServiceResult>;
|
|
699
|
+
resolve(hostname: string): Task<string[]>;
|
|
700
|
+
resolve(hostname: string, rrtype: string): Task<unknown>;
|
|
701
|
+
resolve4(hostname: string): Task<string[]>;
|
|
702
|
+
resolve4(hostname: string, options: ResolveOptions): Task<unknown>;
|
|
703
|
+
resolve6(hostname: string): Task<string[]>;
|
|
704
|
+
resolve6(hostname: string, options: ResolveOptions): Task<unknown>;
|
|
705
|
+
resolveAny(hostname: string): Task<unknown[]>;
|
|
706
|
+
resolveCaa(hostname: string): Task<CaaRecord[]>;
|
|
707
|
+
resolveCname(hostname: string): Task<string[]>;
|
|
708
|
+
resolveMx(hostname: string): Task<MxRecord[]>;
|
|
709
|
+
resolveNaptr(hostname: string): Task<NaptrRecord[]>;
|
|
710
|
+
resolveNs(hostname: string): Task<string[]>;
|
|
711
|
+
resolvePtr(hostname: string): Task<string[]>;
|
|
712
|
+
resolveSoa(hostname: string): Task<SoaRecord>;
|
|
713
|
+
resolveSrv(hostname: string): Task<SrvRecord[]>;
|
|
714
|
+
resolveTlsa(hostname: string): Task<TlsaRecord[]>;
|
|
715
|
+
resolveTxt(hostname: string): Task<string[][]>;
|
|
716
|
+
reverse(ip: string): Task<string[]>;
|
|
717
|
+
setDefaultResultOrder(order: string): void;
|
|
718
|
+
setServers(servers: string[]): void;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
export const DnsPromises: {
|
|
723
|
+
new(): DnsPromises;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
export type DnsPromises = DnsPromises$instance;
|
|
728
|
+
|
|
644
729
|
export interface DSAPrivateKeyObject$instance extends KeyObject {
|
|
645
730
|
readonly asymmetricKeyType: string | undefined;
|
|
646
731
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
@@ -651,7 +736,6 @@ export interface DSAPrivateKeyObject$instance extends KeyObject {
|
|
|
651
736
|
|
|
652
737
|
|
|
653
738
|
export const DSAPrivateKeyObject: {
|
|
654
|
-
new(): DSAPrivateKeyObject;
|
|
655
739
|
};
|
|
656
740
|
|
|
657
741
|
|
|
@@ -667,7 +751,6 @@ export interface DSAPublicKeyObject$instance extends KeyObject {
|
|
|
667
751
|
|
|
668
752
|
|
|
669
753
|
export const DSAPublicKeyObject: {
|
|
670
|
-
new(): DSAPublicKeyObject;
|
|
671
754
|
};
|
|
672
755
|
|
|
673
756
|
|
|
@@ -678,6 +761,7 @@ export interface Duplex$instance extends Readable {
|
|
|
678
761
|
readonly writableCorked: boolean;
|
|
679
762
|
readonly writableEnded: boolean;
|
|
680
763
|
readonly writableLength: int;
|
|
764
|
+
_write(chunk: unknown, encoding: string, callback: Action): void;
|
|
681
765
|
cork(): void;
|
|
682
766
|
destroy(error?: Exception): void;
|
|
683
767
|
end(chunk?: unknown, encoding?: string, callback?: Action): void;
|
|
@@ -698,6 +782,7 @@ export interface ECDH$instance {
|
|
|
698
782
|
computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
|
|
699
783
|
computeSecret(otherPublicKey: byte[]): byte[];
|
|
700
784
|
Dispose(): void;
|
|
785
|
+
Dispose(disposing: boolean): void;
|
|
701
786
|
generateKeys(encoding?: string, format?: string): string;
|
|
702
787
|
generateKeys(): byte[];
|
|
703
788
|
getPrivateKey(encoding?: string): string;
|
|
@@ -712,7 +797,6 @@ export interface ECDH$instance {
|
|
|
712
797
|
|
|
713
798
|
|
|
714
799
|
export const ECDH: {
|
|
715
|
-
new(): ECDH;
|
|
716
800
|
};
|
|
717
801
|
|
|
718
802
|
|
|
@@ -728,7 +812,6 @@ export interface EdDSAPrivateKeyObject$instance extends KeyObject {
|
|
|
728
812
|
|
|
729
813
|
|
|
730
814
|
export const EdDSAPrivateKeyObject: {
|
|
731
|
-
new(): EdDSAPrivateKeyObject;
|
|
732
815
|
};
|
|
733
816
|
|
|
734
817
|
|
|
@@ -744,14 +827,14 @@ export interface EdDSAPublicKeyObject$instance extends KeyObject {
|
|
|
744
827
|
|
|
745
828
|
|
|
746
829
|
export const EdDSAPublicKeyObject: {
|
|
747
|
-
new(): EdDSAPublicKeyObject;
|
|
748
830
|
};
|
|
749
831
|
|
|
750
832
|
|
|
751
833
|
export type EdDSAPublicKeyObject = EdDSAPublicKeyObject$instance;
|
|
752
834
|
|
|
753
835
|
export interface EphemeralKeyInfo$instance {
|
|
754
|
-
name: string;
|
|
836
|
+
get name(): string | undefined;
|
|
837
|
+
set name(value: string | undefined);
|
|
755
838
|
size: int;
|
|
756
839
|
type: string;
|
|
757
840
|
}
|
|
@@ -794,24 +877,24 @@ export type EventEmitter = EventEmitter$instance;
|
|
|
794
877
|
|
|
795
878
|
export interface ExecOptions$instance {
|
|
796
879
|
get argv0(): string | undefined;
|
|
797
|
-
set argv0(value: string);
|
|
880
|
+
set argv0(value: string | undefined);
|
|
798
881
|
get cwd(): string | undefined;
|
|
799
|
-
set cwd(value: string);
|
|
882
|
+
set cwd(value: string | undefined);
|
|
800
883
|
detached: boolean;
|
|
801
884
|
get encoding(): string | undefined;
|
|
802
|
-
set encoding(value: string);
|
|
885
|
+
set encoding(value: string | undefined);
|
|
803
886
|
get env(): unknown | undefined;
|
|
804
|
-
set env(value: unknown);
|
|
887
|
+
set env(value: unknown | undefined);
|
|
805
888
|
gid: Nullable<System_Internal.Int32>;
|
|
806
889
|
get input(): string | undefined;
|
|
807
|
-
set input(value: string);
|
|
890
|
+
set input(value: string | undefined);
|
|
808
891
|
get killSignal(): string | undefined;
|
|
809
|
-
set killSignal(value: string);
|
|
892
|
+
set killSignal(value: string | undefined);
|
|
810
893
|
maxBuffer: int;
|
|
811
894
|
get shell(): string | undefined;
|
|
812
|
-
set shell(value: string);
|
|
895
|
+
set shell(value: string | undefined);
|
|
813
896
|
get stdio(): string | undefined;
|
|
814
|
-
set stdio(value: string);
|
|
897
|
+
set stdio(value: string | undefined);
|
|
815
898
|
timeout: int;
|
|
816
899
|
uid: Nullable<System_Internal.Int32>;
|
|
817
900
|
windowsHide: boolean;
|
|
@@ -826,19 +909,56 @@ export const ExecOptions: {
|
|
|
826
909
|
|
|
827
910
|
export type ExecOptions = ExecOptions$instance;
|
|
828
911
|
|
|
912
|
+
export interface FsPromises$instance {
|
|
913
|
+
access(path: string, mode?: int): Task;
|
|
914
|
+
appendFile(path: string, data: string, encoding?: string): Task;
|
|
915
|
+
chmod(path: string, mode: int): Task;
|
|
916
|
+
close(fd: int): Task;
|
|
917
|
+
copyFile(src: string, dest: string, mode?: int): Task;
|
|
918
|
+
cp(src: string, dest: string, recursive?: boolean): Task;
|
|
919
|
+
fstat(fd: int): Task<Stats>;
|
|
920
|
+
mkdir(path: string, recursive?: boolean): Task;
|
|
921
|
+
open(path: string, flags: string, mode?: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
|
|
922
|
+
read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
|
|
923
|
+
readdir(path: string, withFileTypes?: boolean): Task<string[]>;
|
|
924
|
+
readFile(path: string, encoding?: string): Task<System_Internal.String>;
|
|
925
|
+
readFileBytes(path: string): Task<byte[]>;
|
|
926
|
+
readlink(path: string): Task<System_Internal.String>;
|
|
927
|
+
realpath(path: string): Task<System_Internal.String>;
|
|
928
|
+
rename(oldPath: string, newPath: string): Task;
|
|
929
|
+
rm(path: string, recursive?: boolean): Task;
|
|
930
|
+
rmdir(path: string, recursive?: boolean): Task;
|
|
931
|
+
stat(path: string): Task<Stats>;
|
|
932
|
+
symlink(target: string, path: string, type?: string): Task;
|
|
933
|
+
truncate(path: string, len?: long): Task;
|
|
934
|
+
unlink(path: string): Task;
|
|
935
|
+
write(fd: int, buffer: byte[], offset: int, length: int, position: Nullable<System_Internal.Int32>): Task<System_Internal.Int32>;
|
|
936
|
+
write(fd: int, data: string, position?: Nullable<System_Internal.Int32>, encoding?: string): Task<System_Internal.Int32>;
|
|
937
|
+
writeFile(path: string, data: string, encoding?: string): Task;
|
|
938
|
+
writeFileBytes(path: string, data: byte[]): Task;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
export const FsPromises: {
|
|
943
|
+
new(): FsPromises;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
export type FsPromises = FsPromises$instance;
|
|
948
|
+
|
|
829
949
|
export interface Hash$instance extends Transform {
|
|
830
950
|
copy(): Hash;
|
|
831
951
|
digest(encoding: string): string;
|
|
832
952
|
digest(): byte[];
|
|
833
953
|
digest(outputLength: int): byte[];
|
|
834
954
|
Dispose(): void;
|
|
955
|
+
Finalize(): void;
|
|
835
956
|
update(data: string, inputEncoding?: string): Hash;
|
|
836
957
|
update(data: byte[]): Hash;
|
|
837
958
|
}
|
|
838
959
|
|
|
839
960
|
|
|
840
961
|
export const Hash: {
|
|
841
|
-
new(): Hash;
|
|
842
962
|
};
|
|
843
963
|
|
|
844
964
|
|
|
@@ -848,13 +968,13 @@ export interface Hmac$instance extends Transform {
|
|
|
848
968
|
digest(encoding?: string): string;
|
|
849
969
|
digest(): byte[];
|
|
850
970
|
Dispose(): void;
|
|
971
|
+
Finalize(): void;
|
|
851
972
|
update(data: string, inputEncoding?: string): Hmac;
|
|
852
973
|
update(data: byte[]): Hmac;
|
|
853
974
|
}
|
|
854
975
|
|
|
855
976
|
|
|
856
977
|
export const Hmac: {
|
|
857
|
-
new(): Hmac;
|
|
858
978
|
};
|
|
859
979
|
|
|
860
980
|
|
|
@@ -869,7 +989,6 @@ export interface Immediate$instance {
|
|
|
869
989
|
|
|
870
990
|
|
|
871
991
|
export const Immediate: {
|
|
872
|
-
new(): Immediate;
|
|
873
992
|
};
|
|
874
993
|
|
|
875
994
|
|
|
@@ -892,7 +1011,6 @@ export interface Interface$instance extends EventEmitter {
|
|
|
892
1011
|
|
|
893
1012
|
|
|
894
1013
|
export const Interface: {
|
|
895
|
-
new(): Interface;
|
|
896
1014
|
};
|
|
897
1015
|
|
|
898
1016
|
|
|
@@ -901,13 +1019,14 @@ export type Interface = Interface$instance;
|
|
|
901
1019
|
export interface InterfaceOptions$instance {
|
|
902
1020
|
escapeCodeTimeout: Nullable<System_Internal.Int32>;
|
|
903
1021
|
get history(): string[] | undefined;
|
|
904
|
-
set history(value: string[]);
|
|
1022
|
+
set history(value: string[] | undefined);
|
|
905
1023
|
historySize: Nullable<System_Internal.Int32>;
|
|
906
1024
|
get input(): Readable | undefined;
|
|
907
|
-
set input(value: Readable);
|
|
908
|
-
output: Writable;
|
|
1025
|
+
set input(value: Readable | undefined);
|
|
1026
|
+
get output(): Writable | undefined;
|
|
1027
|
+
set output(value: Writable | undefined);
|
|
909
1028
|
get prompt(): string | undefined;
|
|
910
|
-
set prompt(value: string);
|
|
1029
|
+
set prompt(value: string | undefined);
|
|
911
1030
|
removeHistoryDuplicates: Nullable<System_Internal.Boolean>;
|
|
912
1031
|
tabSize: Nullable<System_Internal.Int32>;
|
|
913
1032
|
terminal: Nullable<System_Internal.Boolean>;
|
|
@@ -942,7 +1061,7 @@ export interface KeyObject$instance {
|
|
|
942
1061
|
}
|
|
943
1062
|
|
|
944
1063
|
|
|
945
|
-
export const KeyObject: {
|
|
1064
|
+
export const KeyObject: (abstract new() => KeyObject) & {
|
|
946
1065
|
};
|
|
947
1066
|
|
|
948
1067
|
|
|
@@ -950,9 +1069,11 @@ export type KeyObject = KeyObject$instance;
|
|
|
950
1069
|
|
|
951
1070
|
export interface ListenOptions$instance {
|
|
952
1071
|
backlog: Nullable<System_Internal.Int32>;
|
|
953
|
-
host: string;
|
|
1072
|
+
get host(): string | undefined;
|
|
1073
|
+
set host(value: string | undefined);
|
|
954
1074
|
ipv6Only: Nullable<System_Internal.Boolean>;
|
|
955
|
-
path: string;
|
|
1075
|
+
get path(): string | undefined;
|
|
1076
|
+
set path(value: string | undefined);
|
|
956
1077
|
port: Nullable<System_Internal.Int32>;
|
|
957
1078
|
}
|
|
958
1079
|
|
|
@@ -979,10 +1100,11 @@ export type LookupAddress = LookupAddress$instance;
|
|
|
979
1100
|
|
|
980
1101
|
export interface LookupOptions$instance {
|
|
981
1102
|
all: Nullable<System_Internal.Boolean>;
|
|
982
|
-
family: unknown;
|
|
1103
|
+
get family(): unknown | undefined;
|
|
1104
|
+
set family(value: unknown | undefined);
|
|
983
1105
|
hints: Nullable<System_Internal.Int32>;
|
|
984
1106
|
get order(): string | undefined;
|
|
985
|
-
set order(value: string);
|
|
1107
|
+
set order(value: string | undefined);
|
|
986
1108
|
verbatim: Nullable<System_Internal.Boolean>;
|
|
987
1109
|
}
|
|
988
1110
|
|
|
@@ -994,9 +1116,22 @@ export const LookupOptions: {
|
|
|
994
1116
|
|
|
995
1117
|
export type LookupOptions = LookupOptions$instance;
|
|
996
1118
|
|
|
1119
|
+
export interface LookupServiceResult$instance {
|
|
1120
|
+
hostname: string;
|
|
1121
|
+
service: string;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
export const LookupServiceResult: {
|
|
1126
|
+
new(): LookupServiceResult;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
export type LookupServiceResult = LookupServiceResult$instance;
|
|
1131
|
+
|
|
997
1132
|
export interface MarkOptions$instance {
|
|
998
1133
|
get detail(): unknown | undefined;
|
|
999
|
-
set detail(value: unknown);
|
|
1134
|
+
set detail(value: unknown | undefined);
|
|
1000
1135
|
startTime: Nullable<System_Internal.Double>;
|
|
1001
1136
|
}
|
|
1002
1137
|
|
|
@@ -1010,13 +1145,13 @@ export type MarkOptions = MarkOptions$instance;
|
|
|
1010
1145
|
|
|
1011
1146
|
export interface MeasureOptions$instance {
|
|
1012
1147
|
get detail(): unknown | undefined;
|
|
1013
|
-
set detail(value: unknown);
|
|
1148
|
+
set detail(value: unknown | undefined);
|
|
1014
1149
|
end: Nullable<System_Internal.Double>;
|
|
1015
1150
|
get endMark(): string | undefined;
|
|
1016
|
-
set endMark(value: string);
|
|
1151
|
+
set endMark(value: string | undefined);
|
|
1017
1152
|
start: Nullable<System_Internal.Double>;
|
|
1018
1153
|
get startMark(): string | undefined;
|
|
1019
|
-
set startMark(value: string);
|
|
1154
|
+
set startMark(value: string | undefined);
|
|
1020
1155
|
}
|
|
1021
1156
|
|
|
1022
1157
|
|
|
@@ -1074,6 +1209,8 @@ export const ParsedPath: {
|
|
|
1074
1209
|
export type ParsedPath = ParsedPath$instance;
|
|
1075
1210
|
|
|
1076
1211
|
export interface PassThrough$instance extends Transform {
|
|
1212
|
+
_transform(chunk: unknown, encoding: string, callback: Action<Exception, unknown>): void;
|
|
1213
|
+
_transform(chunk: unknown, encoding: string, callback: Action<Exception, unknown>): void;
|
|
1077
1214
|
}
|
|
1078
1215
|
|
|
1079
1216
|
|
|
@@ -1105,7 +1242,6 @@ export interface PathModule$instance {
|
|
|
1105
1242
|
|
|
1106
1243
|
|
|
1107
1244
|
export const PathModule: {
|
|
1108
|
-
new(): PathModule;
|
|
1109
1245
|
readonly Instance: PathModule;
|
|
1110
1246
|
};
|
|
1111
1247
|
|
|
@@ -1115,16 +1251,17 @@ export type PathModule = PathModule$instance;
|
|
|
1115
1251
|
export interface PeerCertificate$instance {
|
|
1116
1252
|
ca: boolean;
|
|
1117
1253
|
get ext_key_usage(): string[] | undefined;
|
|
1118
|
-
set ext_key_usage(value: string[]);
|
|
1254
|
+
set ext_key_usage(value: string[] | undefined);
|
|
1119
1255
|
fingerprint: string;
|
|
1120
1256
|
fingerprint256: string;
|
|
1121
1257
|
fingerprint512: string;
|
|
1122
1258
|
issuer: TLSCertificateInfo;
|
|
1123
|
-
raw: byte[];
|
|
1259
|
+
get raw(): byte[] | undefined;
|
|
1260
|
+
set raw(value: byte[] | undefined);
|
|
1124
1261
|
serialNumber: string;
|
|
1125
1262
|
subject: TLSCertificateInfo;
|
|
1126
1263
|
get subjectaltname(): string | undefined;
|
|
1127
|
-
set subjectaltname(value: string);
|
|
1264
|
+
set subjectaltname(value: string | undefined);
|
|
1128
1265
|
valid_from: string;
|
|
1129
1266
|
valid_to: string;
|
|
1130
1267
|
}
|
|
@@ -1146,7 +1283,6 @@ export interface PerformanceEntry$instance {
|
|
|
1146
1283
|
|
|
1147
1284
|
|
|
1148
1285
|
export const PerformanceEntry: {
|
|
1149
|
-
new(): PerformanceEntry;
|
|
1150
1286
|
};
|
|
1151
1287
|
|
|
1152
1288
|
|
|
@@ -1208,7 +1344,7 @@ export type PerformanceObserverEntryList = PerformanceObserverEntryList$instance
|
|
|
1208
1344
|
export interface PerformanceObserverOptions$instance {
|
|
1209
1345
|
buffered: boolean;
|
|
1210
1346
|
get entryTypes(): string[] | undefined;
|
|
1211
|
-
set entryTypes(value: string[]);
|
|
1347
|
+
set entryTypes(value: string[] | undefined);
|
|
1212
1348
|
}
|
|
1213
1349
|
|
|
1214
1350
|
|
|
@@ -1230,7 +1366,6 @@ export interface PrivateKeyObject$instance extends KeyObject {
|
|
|
1230
1366
|
|
|
1231
1367
|
|
|
1232
1368
|
export const PrivateKeyObject: {
|
|
1233
|
-
new(): PrivateKeyObject;
|
|
1234
1369
|
};
|
|
1235
1370
|
|
|
1236
1371
|
|
|
@@ -1239,8 +1374,7 @@ export type PrivateKeyObject = PrivateKeyObject$instance;
|
|
|
1239
1374
|
export interface ProcessEnv$instance {
|
|
1240
1375
|
readonly Count: int;
|
|
1241
1376
|
readonly IsReadOnly: boolean;
|
|
1242
|
-
|
|
1243
|
-
set Item(value: string);
|
|
1377
|
+
[key: string]: string | undefined;
|
|
1244
1378
|
readonly Keys: ICollection<System_Internal.String>;
|
|
1245
1379
|
readonly Values: ICollection<string | undefined>;
|
|
1246
1380
|
Add(key: string, value: string): void;
|
|
@@ -1289,18 +1423,18 @@ export interface PublicKeyObject$instance extends KeyObject {
|
|
|
1289
1423
|
|
|
1290
1424
|
|
|
1291
1425
|
export const PublicKeyObject: {
|
|
1292
|
-
new(): PublicKeyObject;
|
|
1293
1426
|
};
|
|
1294
1427
|
|
|
1295
1428
|
|
|
1296
1429
|
export type PublicKeyObject = PublicKeyObject$instance;
|
|
1297
1430
|
|
|
1298
1431
|
export interface Readable$instance extends Stream {
|
|
1299
|
-
|
|
1432
|
+
destroyed: boolean;
|
|
1300
1433
|
readonly readable: boolean;
|
|
1301
1434
|
readonly readableEnded: boolean;
|
|
1302
1435
|
readonly readableFlowing: Nullable<System_Internal.Boolean>;
|
|
1303
1436
|
readonly readableLength: int;
|
|
1437
|
+
_read(size: int): void;
|
|
1304
1438
|
destroy(error?: Exception): void;
|
|
1305
1439
|
isPaused(): boolean;
|
|
1306
1440
|
pause(): Readable;
|
|
@@ -1320,6 +1454,20 @@ export const Readable: {
|
|
|
1320
1454
|
|
|
1321
1455
|
export type Readable = Readable$instance;
|
|
1322
1456
|
|
|
1457
|
+
export interface ReadlinePromises$instance {
|
|
1458
|
+
createInterface(options: InterfaceOptions): Interface;
|
|
1459
|
+
createInterface(input: Readable, output?: Writable): Interface;
|
|
1460
|
+
question(rl: Interface, query: string): Task<System_Internal.String>;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
export const ReadlinePromises: {
|
|
1465
|
+
new(): ReadlinePromises;
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
export type ReadlinePromises = ReadlinePromises$instance;
|
|
1470
|
+
|
|
1323
1471
|
export interface RecordWithTtl$instance {
|
|
1324
1472
|
address: string;
|
|
1325
1473
|
ttl: int;
|
|
@@ -1419,7 +1567,6 @@ export interface SecretKeyObject$instance extends KeyObject {
|
|
|
1419
1567
|
|
|
1420
1568
|
|
|
1421
1569
|
export const SecretKeyObject: {
|
|
1422
|
-
new(): SecretKeyObject;
|
|
1423
1570
|
};
|
|
1424
1571
|
|
|
1425
1572
|
|
|
@@ -1429,7 +1576,7 @@ export interface SecureContext$instance {
|
|
|
1429
1576
|
readonly CACertificates: X509Certificate2Collection | undefined;
|
|
1430
1577
|
readonly Certificate: X509Certificate2 | undefined;
|
|
1431
1578
|
get context(): unknown | undefined;
|
|
1432
|
-
set context(value: unknown);
|
|
1579
|
+
set context(value: unknown | undefined);
|
|
1433
1580
|
readonly Protocols: SslProtocols;
|
|
1434
1581
|
LoadCACertificates(ca: unknown): void;
|
|
1435
1582
|
LoadCertificate(cert: unknown, key: unknown, passphrase: string): void;
|
|
@@ -1446,21 +1593,21 @@ export type SecureContext = SecureContext$instance;
|
|
|
1446
1593
|
|
|
1447
1594
|
export interface SecureContextOptions$instance {
|
|
1448
1595
|
get ca(): unknown | undefined;
|
|
1449
|
-
set ca(value: unknown);
|
|
1596
|
+
set ca(value: unknown | undefined);
|
|
1450
1597
|
get cert(): unknown | undefined;
|
|
1451
|
-
set cert(value: unknown);
|
|
1598
|
+
set cert(value: unknown | undefined);
|
|
1452
1599
|
get ciphers(): string | undefined;
|
|
1453
|
-
set ciphers(value: string);
|
|
1600
|
+
set ciphers(value: string | undefined);
|
|
1454
1601
|
get key(): unknown | undefined;
|
|
1455
|
-
set key(value: unknown);
|
|
1602
|
+
set key(value: unknown | undefined);
|
|
1456
1603
|
get maxVersion(): string | undefined;
|
|
1457
|
-
set maxVersion(value: string);
|
|
1604
|
+
set maxVersion(value: string | undefined);
|
|
1458
1605
|
get minVersion(): string | undefined;
|
|
1459
|
-
set minVersion(value: string);
|
|
1606
|
+
set minVersion(value: string | undefined);
|
|
1460
1607
|
get passphrase(): string | undefined;
|
|
1461
|
-
set passphrase(value: string);
|
|
1608
|
+
set passphrase(value: string | undefined);
|
|
1462
1609
|
get pfx(): unknown | undefined;
|
|
1463
|
-
set pfx(value: unknown);
|
|
1610
|
+
set pfx(value: unknown | undefined);
|
|
1464
1611
|
}
|
|
1465
1612
|
|
|
1466
1613
|
|
|
@@ -1474,7 +1621,7 @@ export type SecureContextOptions = SecureContextOptions$instance;
|
|
|
1474
1621
|
export interface Server$instance extends EventEmitter {
|
|
1475
1622
|
readonly listening: boolean;
|
|
1476
1623
|
maxConnections: int;
|
|
1477
|
-
address(): unknown;
|
|
1624
|
+
address(): unknown | undefined;
|
|
1478
1625
|
close(callback?: Action<Exception>): Server;
|
|
1479
1626
|
getConnections(callback: Action<Exception, System_Internal.Int32>): void;
|
|
1480
1627
|
listen(port: int, hostname: string, backlog: int, listeningListener?: Action): Server;
|
|
@@ -1511,6 +1658,7 @@ export type ServerOpts = ServerOpts$instance;
|
|
|
1511
1658
|
|
|
1512
1659
|
export interface Sign$instance extends Transform {
|
|
1513
1660
|
Dispose(): void;
|
|
1661
|
+
Finalize(): void;
|
|
1514
1662
|
sign(privateKey: string, outputEncoding?: string): string;
|
|
1515
1663
|
sign(privateKey: string): byte[];
|
|
1516
1664
|
sign(privateKey: unknown, outputEncoding?: string): string;
|
|
@@ -1521,7 +1669,6 @@ export interface Sign$instance extends Transform {
|
|
|
1521
1669
|
|
|
1522
1670
|
|
|
1523
1671
|
export const Sign: {
|
|
1524
|
-
new(): Sign;
|
|
1525
1672
|
};
|
|
1526
1673
|
|
|
1527
1674
|
|
|
@@ -1546,17 +1693,21 @@ export const SoaRecord: {
|
|
|
1546
1693
|
export type SoaRecord = SoaRecord$instance;
|
|
1547
1694
|
|
|
1548
1695
|
export interface Socket$instance extends Stream {
|
|
1549
|
-
|
|
1550
|
-
|
|
1696
|
+
bytesRead: long;
|
|
1697
|
+
bytesWritten: long;
|
|
1551
1698
|
readonly connecting: boolean;
|
|
1552
1699
|
readonly destroyed: boolean;
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1700
|
+
get localAddress(): string | undefined;
|
|
1701
|
+
set localAddress(value: string | undefined);
|
|
1702
|
+
get localFamily(): string | undefined;
|
|
1703
|
+
set localFamily(value: string | undefined);
|
|
1704
|
+
localPort: Nullable<System_Internal.Int32>;
|
|
1556
1705
|
readonly readyState: string;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1706
|
+
get remoteAddress(): string | undefined;
|
|
1707
|
+
set remoteAddress(value: string | undefined);
|
|
1708
|
+
get remoteFamily(): string | undefined;
|
|
1709
|
+
set remoteFamily(value: string | undefined);
|
|
1710
|
+
remotePort: Nullable<System_Internal.Int32>;
|
|
1560
1711
|
address(): unknown;
|
|
1561
1712
|
connect(port: int, host?: string, connectionListener?: Action): Socket;
|
|
1562
1713
|
connect(options: TcpSocketConnectOpts, connectionListener?: Action): Socket;
|
|
@@ -1590,10 +1741,10 @@ export const Socket: {
|
|
|
1590
1741
|
export type Socket = Socket$instance;
|
|
1591
1742
|
|
|
1592
1743
|
export interface SocketAddress$instance {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1744
|
+
address: string;
|
|
1745
|
+
family: string;
|
|
1746
|
+
flowlabel: Nullable<System_Internal.Int32>;
|
|
1747
|
+
port: int;
|
|
1597
1748
|
}
|
|
1598
1749
|
|
|
1599
1750
|
|
|
@@ -1605,8 +1756,10 @@ export const SocketAddress: {
|
|
|
1605
1756
|
export type SocketAddress = SocketAddress$instance;
|
|
1606
1757
|
|
|
1607
1758
|
export interface SocketAddressInitOptions$instance {
|
|
1608
|
-
address: string;
|
|
1609
|
-
|
|
1759
|
+
get address(): string | undefined;
|
|
1760
|
+
set address(value: string | undefined);
|
|
1761
|
+
get family(): string | undefined;
|
|
1762
|
+
set family(value: string | undefined);
|
|
1610
1763
|
flowlabel: Nullable<System_Internal.Int32>;
|
|
1611
1764
|
port: Nullable<System_Internal.Int32>;
|
|
1612
1765
|
}
|
|
@@ -1653,11 +1806,11 @@ export type SocketOptions = SocketOptions$instance;
|
|
|
1653
1806
|
|
|
1654
1807
|
export interface SpawnSyncReturns_1$instance<T> {
|
|
1655
1808
|
get error(): Exception | undefined;
|
|
1656
|
-
set error(value: Exception);
|
|
1809
|
+
set error(value: Exception | undefined);
|
|
1657
1810
|
output: (T | undefined)[];
|
|
1658
1811
|
pid: int;
|
|
1659
1812
|
get signal(): string | undefined;
|
|
1660
|
-
set signal(value: string);
|
|
1813
|
+
set signal(value: string | undefined);
|
|
1661
1814
|
status: Nullable<System_Internal.Int32>;
|
|
1662
1815
|
stderr: T;
|
|
1663
1816
|
stdout: T;
|
|
@@ -1725,6 +1878,19 @@ export const Stream: {
|
|
|
1725
1878
|
|
|
1726
1879
|
export type Stream = Stream$instance;
|
|
1727
1880
|
|
|
1881
|
+
export interface StreamPromises$instance {
|
|
1882
|
+
finished(streamValue: Stream): Task;
|
|
1883
|
+
pipeline(...streams: Stream[]): Task;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
export const StreamPromises: {
|
|
1888
|
+
new(): StreamPromises;
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
export type StreamPromises = StreamPromises$instance;
|
|
1893
|
+
|
|
1728
1894
|
export interface StringDecoder$instance {
|
|
1729
1895
|
end(buffer?: byte[]): string;
|
|
1730
1896
|
write(buffer: byte[]): string;
|
|
@@ -1741,11 +1907,12 @@ export type StringDecoder = StringDecoder$instance;
|
|
|
1741
1907
|
export interface TcpSocketConnectOpts$instance {
|
|
1742
1908
|
family: Nullable<System_Internal.Int32>;
|
|
1743
1909
|
hints: Nullable<System_Internal.Int32>;
|
|
1744
|
-
host: string;
|
|
1910
|
+
get host(): string | undefined;
|
|
1911
|
+
set host(value: string | undefined);
|
|
1745
1912
|
keepAlive: Nullable<System_Internal.Boolean>;
|
|
1746
1913
|
keepAliveInitialDelay: Nullable<System_Internal.Int32>;
|
|
1747
1914
|
get localAddress(): string | undefined;
|
|
1748
|
-
set localAddress(value: string);
|
|
1915
|
+
set localAddress(value: string | undefined);
|
|
1749
1916
|
localPort: Nullable<System_Internal.Int32>;
|
|
1750
1917
|
noDelay: Nullable<System_Internal.Boolean>;
|
|
1751
1918
|
port: int;
|
|
@@ -1770,12 +1937,39 @@ export interface Timeout$instance {
|
|
|
1770
1937
|
|
|
1771
1938
|
|
|
1772
1939
|
export const Timeout: {
|
|
1773
|
-
new(): Timeout;
|
|
1774
1940
|
};
|
|
1775
1941
|
|
|
1776
1942
|
|
|
1777
1943
|
export type Timeout = Timeout$instance;
|
|
1778
1944
|
|
|
1945
|
+
export interface TimersPromises$instance {
|
|
1946
|
+
readonly scheduler: TimersScheduler;
|
|
1947
|
+
setImmediate(value?: unknown): Task<unknown | undefined>;
|
|
1948
|
+
setInterval(delay?: int, value?: unknown): IAsyncEnumerable<unknown | undefined>;
|
|
1949
|
+
setTimeout(delay?: int, value?: unknown): Task<unknown | undefined>;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
export const TimersPromises: {
|
|
1954
|
+
new(): TimersPromises;
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
export type TimersPromises = TimersPromises$instance;
|
|
1959
|
+
|
|
1960
|
+
export interface TimersScheduler$instance {
|
|
1961
|
+
wait(delay?: int): Task;
|
|
1962
|
+
yield(): Task;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
export const TimersScheduler: {
|
|
1967
|
+
new(): TimersScheduler;
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
export type TimersScheduler = TimersScheduler$instance;
|
|
1972
|
+
|
|
1779
1973
|
export interface TlsaRecord$instance {
|
|
1780
1974
|
certUsage: int;
|
|
1781
1975
|
data: byte[];
|
|
@@ -1811,14 +2005,14 @@ export type TLSCertificateInfo = TLSCertificateInfo$instance;
|
|
|
1811
2005
|
export interface TlsOptions$instance extends CommonConnectionOptions {
|
|
1812
2006
|
allowHalfOpen: Nullable<System_Internal.Boolean>;
|
|
1813
2007
|
get ca(): unknown | undefined;
|
|
1814
|
-
set ca(value: unknown);
|
|
2008
|
+
set ca(value: unknown | undefined);
|
|
1815
2009
|
get cert(): unknown | undefined;
|
|
1816
|
-
set cert(value: unknown);
|
|
2010
|
+
set cert(value: unknown | undefined);
|
|
1817
2011
|
handshakeTimeout: Nullable<System_Internal.Int32>;
|
|
1818
2012
|
get key(): unknown | undefined;
|
|
1819
|
-
set key(value: unknown);
|
|
2013
|
+
set key(value: unknown | undefined);
|
|
1820
2014
|
get passphrase(): string | undefined;
|
|
1821
|
-
set passphrase(value: string);
|
|
2015
|
+
set passphrase(value: string | undefined);
|
|
1822
2016
|
pauseOnConnect: Nullable<System_Internal.Boolean>;
|
|
1823
2017
|
sessionTimeout: Nullable<System_Internal.Int32>;
|
|
1824
2018
|
}
|
|
@@ -1888,18 +2082,18 @@ export type TLSSocket = TLSSocket$instance;
|
|
|
1888
2082
|
|
|
1889
2083
|
export interface TLSSocketOptions$instance extends CommonConnectionOptions {
|
|
1890
2084
|
get ca(): unknown | undefined;
|
|
1891
|
-
set ca(value: unknown);
|
|
2085
|
+
set ca(value: unknown | undefined);
|
|
1892
2086
|
get cert(): unknown | undefined;
|
|
1893
|
-
set cert(value: unknown);
|
|
2087
|
+
set cert(value: unknown | undefined);
|
|
1894
2088
|
isServer: Nullable<System_Internal.Boolean>;
|
|
1895
2089
|
get key(): unknown | undefined;
|
|
1896
|
-
set key(value: unknown);
|
|
2090
|
+
set key(value: unknown | undefined);
|
|
1897
2091
|
get passphrase(): string | undefined;
|
|
1898
|
-
set passphrase(value: string);
|
|
2092
|
+
set passphrase(value: string | undefined);
|
|
1899
2093
|
get server(): Server | undefined;
|
|
1900
|
-
set server(value: Server);
|
|
2094
|
+
set server(value: Server | undefined);
|
|
1901
2095
|
get servername(): string | undefined;
|
|
1902
|
-
set servername(value: string);
|
|
2096
|
+
set servername(value: string | undefined);
|
|
1903
2097
|
}
|
|
1904
2098
|
|
|
1905
2099
|
|
|
@@ -1911,6 +2105,9 @@ export const TLSSocketOptions: {
|
|
|
1911
2105
|
export type TLSSocketOptions = TLSSocketOptions$instance;
|
|
1912
2106
|
|
|
1913
2107
|
export interface Transform$instance extends Duplex {
|
|
2108
|
+
_flush(callback: Action<Exception>): void;
|
|
2109
|
+
_transform(chunk: unknown, encoding: string, callback: Action<Exception, unknown>): void;
|
|
2110
|
+
_write(chunk: unknown, encoding: string, callback: Action): void;
|
|
1914
2111
|
}
|
|
1915
2112
|
|
|
1916
2113
|
|
|
@@ -1948,6 +2145,19 @@ export const URL: {
|
|
|
1948
2145
|
|
|
1949
2146
|
export type URL = URL$instance;
|
|
1950
2147
|
|
|
2148
|
+
export interface URLPattern$instance {
|
|
2149
|
+
exec(input: string): Dictionary<System_Internal.String, System_Internal.String> | undefined;
|
|
2150
|
+
test(input: string): boolean;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
export const URLPattern: {
|
|
2155
|
+
new(pattern: string): URLPattern;
|
|
2156
|
+
};
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
export type URLPattern = URLPattern$instance;
|
|
2160
|
+
|
|
1951
2161
|
export interface URLSearchParams$instance {
|
|
1952
2162
|
readonly size: int;
|
|
1953
2163
|
append(name: string, value: string): void;
|
|
@@ -1976,7 +2186,7 @@ export interface UserInfo$instance {
|
|
|
1976
2186
|
gid: int;
|
|
1977
2187
|
homedir: string;
|
|
1978
2188
|
get shell(): string | undefined;
|
|
1979
|
-
set shell(value: string);
|
|
2189
|
+
set shell(value: string | undefined);
|
|
1980
2190
|
uid: int;
|
|
1981
2191
|
username: string;
|
|
1982
2192
|
}
|
|
@@ -1991,6 +2201,7 @@ export type UserInfo = UserInfo$instance;
|
|
|
1991
2201
|
|
|
1992
2202
|
export interface Verify$instance extends Transform {
|
|
1993
2203
|
Dispose(): void;
|
|
2204
|
+
Finalize(): void;
|
|
1994
2205
|
update(data: string, inputEncoding?: string): Verify;
|
|
1995
2206
|
update(data: byte[]): Verify;
|
|
1996
2207
|
verify(publicKey: string, signature: string, signatureEncoding?: string): boolean;
|
|
@@ -2001,18 +2212,19 @@ export interface Verify$instance extends Transform {
|
|
|
2001
2212
|
|
|
2002
2213
|
|
|
2003
2214
|
export const Verify: {
|
|
2004
|
-
new(): Verify;
|
|
2005
2215
|
};
|
|
2006
2216
|
|
|
2007
2217
|
|
|
2008
2218
|
export type Verify = Verify$instance;
|
|
2009
2219
|
|
|
2010
2220
|
export interface Writable$instance extends Stream {
|
|
2011
|
-
|
|
2221
|
+
destroyed: boolean;
|
|
2012
2222
|
readonly writable: boolean;
|
|
2013
2223
|
readonly writableCorked: boolean;
|
|
2014
2224
|
readonly writableEnded: boolean;
|
|
2015
2225
|
readonly writableLength: int;
|
|
2226
|
+
_final(callback: Action): void;
|
|
2227
|
+
_write(chunk: unknown, encoding: string, callback: Action): void;
|
|
2016
2228
|
cork(): void;
|
|
2017
2229
|
destroy(error?: Exception): void;
|
|
2018
2230
|
end(chunk?: unknown, encoding?: string, callback?: Action): void;
|
|
@@ -2050,7 +2262,6 @@ export interface X509CertificateInfo$instance {
|
|
|
2050
2262
|
|
|
2051
2263
|
|
|
2052
2264
|
export const X509CertificateInfo: {
|
|
2053
|
-
new(): X509CertificateInfo;
|
|
2054
2265
|
};
|
|
2055
2266
|
|
|
2056
2267
|
|
|
@@ -2077,6 +2288,7 @@ export abstract class assert$instance {
|
|
|
2077
2288
|
static deepEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2078
2289
|
static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2079
2290
|
static doesNotMatch(string: string, regexp: Regex, message?: string): void;
|
|
2291
|
+
static doesNotReject(fn: Func<Task>, message?: string): Task;
|
|
2080
2292
|
static doesNotThrow(fn: Action, message?: string): void;
|
|
2081
2293
|
static equal(actual: unknown, expected: unknown, message?: string): void;
|
|
2082
2294
|
static fail(message?: string): void;
|
|
@@ -2087,6 +2299,8 @@ export abstract class assert$instance {
|
|
|
2087
2299
|
static notEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2088
2300
|
static notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2089
2301
|
static ok(value: boolean, message?: string): void;
|
|
2302
|
+
static rejects(fn: Func<Task>, message?: string): Task;
|
|
2303
|
+
static strict(actual: unknown, expected: unknown, message?: string): void;
|
|
2090
2304
|
static strictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2091
2305
|
static throws(fn: Action, message?: string): void;
|
|
2092
2306
|
}
|
|
@@ -2094,6 +2308,25 @@ export abstract class assert$instance {
|
|
|
2094
2308
|
|
|
2095
2309
|
export type assert = assert$instance;
|
|
2096
2310
|
|
|
2311
|
+
export abstract class buffer$instance {
|
|
2312
|
+
static INSPECT_MAX_BYTES: int;
|
|
2313
|
+
static readonly constants: BufferConstants;
|
|
2314
|
+
static readonly kMaxLength: int;
|
|
2315
|
+
static readonly kStringMaxLength: int;
|
|
2316
|
+
static atob(data: string): string;
|
|
2317
|
+
static btoa(data: string): string;
|
|
2318
|
+
static isAscii(value: Buffer): boolean;
|
|
2319
|
+
static isAscii(value: byte[]): boolean;
|
|
2320
|
+
static isUtf8(value: Buffer): boolean;
|
|
2321
|
+
static isUtf8(value: byte[]): boolean;
|
|
2322
|
+
static resolveObjectURL(id: string): unknown | undefined;
|
|
2323
|
+
static SlowBuffer(size: int): Buffer;
|
|
2324
|
+
static transcode(source: Buffer, fromEncoding: string, toEncoding: string): Buffer;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
export type buffer = buffer$instance;
|
|
2329
|
+
|
|
2097
2330
|
export abstract class Certificate$instance {
|
|
2098
2331
|
static exportChallenge(spkac: byte[]): byte[];
|
|
2099
2332
|
static exportChallenge(spkac: string): byte[];
|
|
@@ -2123,6 +2356,7 @@ export abstract class child_process$instance {
|
|
|
2123
2356
|
export type child_process = child_process$instance;
|
|
2124
2357
|
|
|
2125
2358
|
export abstract class console$instance {
|
|
2359
|
+
static readonly Console: ConsoleConstructor;
|
|
2126
2360
|
static assert(value: boolean, message?: string, ...optionalParams: unknown[]): void;
|
|
2127
2361
|
static clear(): void;
|
|
2128
2362
|
static count(label?: string): void;
|
|
@@ -2255,6 +2489,7 @@ export abstract class dns$instance {
|
|
|
2255
2489
|
static readonly LOADIPHLPAPI: string;
|
|
2256
2490
|
static readonly ADDRGETNETWORKPARAMS: string;
|
|
2257
2491
|
static readonly CANCELLED: string;
|
|
2492
|
+
static readonly promises: DnsPromises;
|
|
2258
2493
|
static getDefaultResultOrder(): string;
|
|
2259
2494
|
static getServers(): string[];
|
|
2260
2495
|
static lookup(hostname: string, options: LookupOptions, callback: Action<Exception, LookupAddress[]>): void;
|
|
@@ -2287,7 +2522,25 @@ export abstract class dns$instance {
|
|
|
2287
2522
|
|
|
2288
2523
|
export type dns = dns$instance;
|
|
2289
2524
|
|
|
2525
|
+
export abstract class events$instance {
|
|
2526
|
+
static readonly captureRejectionSymbol: string;
|
|
2527
|
+
static captureRejections: boolean;
|
|
2528
|
+
static defaultMaxListeners: int;
|
|
2529
|
+
static readonly errorMonitor: string;
|
|
2530
|
+
static addAbortListener(signal: unknown, listener: Action): Action;
|
|
2531
|
+
static getEventListeners(emitter: EventEmitter, eventName: string): Function[];
|
|
2532
|
+
static getMaxListeners(emitter: EventEmitter): int;
|
|
2533
|
+
static listenerCount(emitter: EventEmitter, eventName: string): int;
|
|
2534
|
+
static on(emitter: EventEmitter, eventName: string): IAsyncEnumerable<(unknown | undefined)[]>;
|
|
2535
|
+
static once(emitter: EventEmitter, eventName: string): Task<(unknown | undefined)[]>;
|
|
2536
|
+
static setMaxListeners(n: int, ...emitters: EventEmitter[]): void;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
export type events = events$instance;
|
|
2541
|
+
|
|
2290
2542
|
export abstract class fs$instance {
|
|
2543
|
+
static readonly promises: FsPromises;
|
|
2291
2544
|
static access(path: string, mode?: int): Task;
|
|
2292
2545
|
static accessSync(path: string, mode?: int): void;
|
|
2293
2546
|
static appendFile(path: string, data: string, encoding?: string): Task;
|
|
@@ -2378,6 +2631,7 @@ export abstract class os$instance {
|
|
|
2378
2631
|
static homedir(): string;
|
|
2379
2632
|
static hostname(): string;
|
|
2380
2633
|
static loadavg(): double[];
|
|
2634
|
+
static machine(): string;
|
|
2381
2635
|
static platform(): string;
|
|
2382
2636
|
static release(): string;
|
|
2383
2637
|
static tmpdir(): string;
|
|
@@ -2385,6 +2639,7 @@ export abstract class os$instance {
|
|
|
2385
2639
|
static type(): string;
|
|
2386
2640
|
static uptime(): long;
|
|
2387
2641
|
static userInfo(): UserInfo;
|
|
2642
|
+
static version(): string;
|
|
2388
2643
|
}
|
|
2389
2644
|
|
|
2390
2645
|
|
|
@@ -2460,12 +2715,14 @@ export abstract class querystring$instance {
|
|
|
2460
2715
|
export type querystring = querystring$instance;
|
|
2461
2716
|
|
|
2462
2717
|
export abstract class readline$instance {
|
|
2718
|
+
static readonly promises: ReadlinePromises;
|
|
2463
2719
|
static clearLine(stream: Writable, dir: int, callback?: Action): boolean;
|
|
2464
2720
|
static clearScreenDown(stream: Writable, callback?: Action): boolean;
|
|
2465
2721
|
static createAsyncIterator(input: Readable, options?: InterfaceOptions): IAsyncEnumerable<System_Internal.String>;
|
|
2466
2722
|
static createInterface(options: InterfaceOptions): Interface;
|
|
2467
2723
|
static createInterface(input: Readable, output?: Writable): Interface;
|
|
2468
2724
|
static cursorTo(stream: Writable, x: int, y?: Nullable<System_Internal.Int32>, callback?: Action): boolean;
|
|
2725
|
+
static emitKeypressEvents(stream: Readable, rl?: Interface): void;
|
|
2469
2726
|
static moveCursor(stream: Writable, dx: int, dy: int, callback?: Action): boolean;
|
|
2470
2727
|
}
|
|
2471
2728
|
|
|
@@ -2473,6 +2730,7 @@ export abstract class readline$instance {
|
|
|
2473
2730
|
export type readline = readline$instance;
|
|
2474
2731
|
|
|
2475
2732
|
export abstract class stream$instance {
|
|
2733
|
+
static readonly promises: StreamPromises;
|
|
2476
2734
|
static finished(stream: Stream, callback: Action<Exception>): void;
|
|
2477
2735
|
static finished(stream: Stream): Task;
|
|
2478
2736
|
static pipeline(...streams: unknown[]): void;
|
|
@@ -2482,6 +2740,7 @@ export abstract class stream$instance {
|
|
|
2482
2740
|
export type stream = stream$instance;
|
|
2483
2741
|
|
|
2484
2742
|
export abstract class timers$instance {
|
|
2743
|
+
static readonly promises: TimersPromises;
|
|
2485
2744
|
static clearImmediate(immediate: Immediate): void;
|
|
2486
2745
|
static clearInterval(timeout: Timeout): void;
|
|
2487
2746
|
static clearTimeout(timeout: Timeout): void;
|
|
@@ -2517,15 +2776,35 @@ export abstract class tls$instance {
|
|
|
2517
2776
|
|
|
2518
2777
|
export type tls = tls$instance;
|
|
2519
2778
|
|
|
2779
|
+
export abstract class url$instance {
|
|
2780
|
+
static domainToASCII(domain: string): string;
|
|
2781
|
+
static domainToUnicode(domain: string): string;
|
|
2782
|
+
static fileURLToPath(fileUrl: URL): string;
|
|
2783
|
+
static fileURLToPath(fileUrl: string): string;
|
|
2784
|
+
static fileURLToPathBuffer(fileUrl: URL): Buffer;
|
|
2785
|
+
static fileURLToPathBuffer(fileUrl: string): Buffer;
|
|
2786
|
+
static format(input: unknown): string;
|
|
2787
|
+
static parse(input: string): URL | undefined;
|
|
2788
|
+
static pathToFileURL(filePath: string): URL;
|
|
2789
|
+
static resolve(from: string, to: string): string;
|
|
2790
|
+
static urlToHttpOptions(input: URL): Dictionary<System_Internal.String, unknown | undefined>;
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
export type url = url$instance;
|
|
2795
|
+
|
|
2520
2796
|
export abstract class util$instance {
|
|
2521
2797
|
static debuglog(section: string): DebugLogFunction;
|
|
2522
2798
|
static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string): Func<TResult>;
|
|
2523
2799
|
static deprecate(action: Action, msg: string, code?: string): Action;
|
|
2524
2800
|
static format(format: unknown, ...args: unknown[]): string;
|
|
2801
|
+
static formatWithOptions(inspectOptions: unknown, formatValue: unknown, ...args: unknown[]): string;
|
|
2525
2802
|
static inherits(constructor: unknown, superConstructor: unknown): void;
|
|
2526
2803
|
static inspect(obj: unknown): string;
|
|
2527
2804
|
static isArray(obj: unknown): boolean;
|
|
2528
2805
|
static isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
|
|
2806
|
+
static stripVTControlCharacters(input: string): string;
|
|
2807
|
+
static toUSVString(input: string): string;
|
|
2529
2808
|
}
|
|
2530
2809
|
|
|
2531
2810
|
|