@tsonic/nodejs 0.4.4 → 0.4.6

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.
@@ -40,7 +40,7 @@ export const AddressInfo: {
40
40
  export type AddressInfo = AddressInfo$instance;
41
41
 
42
42
  export interface AnyAaaaRecord$instance extends RecordWithTtl {
43
- readonly type_: string;
43
+ readonly type: string;
44
44
  }
45
45
 
46
46
 
@@ -52,7 +52,7 @@ export const AnyAaaaRecord: {
52
52
  export type AnyAaaaRecord = AnyAaaaRecord$instance;
53
53
 
54
54
  export interface AnyARecord$instance extends RecordWithTtl {
55
- readonly type_: string;
55
+ readonly type: string;
56
56
  }
57
57
 
58
58
 
@@ -64,7 +64,7 @@ export const AnyARecord: {
64
64
  export type AnyARecord = AnyARecord$instance;
65
65
 
66
66
  export interface AnyCaaRecord$instance extends CaaRecord {
67
- readonly type_: string;
67
+ readonly type: string;
68
68
  }
69
69
 
70
70
 
@@ -76,7 +76,7 @@ export const AnyCaaRecord: {
76
76
  export type AnyCaaRecord = AnyCaaRecord$instance;
77
77
 
78
78
  export interface AnyCnameRecord$instance {
79
- readonly type_: string;
79
+ readonly type: string;
80
80
  value: string;
81
81
  }
82
82
 
@@ -89,7 +89,7 @@ export const AnyCnameRecord: {
89
89
  export type AnyCnameRecord = AnyCnameRecord$instance;
90
90
 
91
91
  export interface AnyMxRecord$instance extends MxRecord {
92
- readonly type_: string;
92
+ readonly type: string;
93
93
  }
94
94
 
95
95
 
@@ -101,7 +101,7 @@ export const AnyMxRecord: {
101
101
  export type AnyMxRecord = AnyMxRecord$instance;
102
102
 
103
103
  export interface AnyNaptrRecord$instance extends NaptrRecord {
104
- readonly type_: string;
104
+ readonly type: string;
105
105
  }
106
106
 
107
107
 
@@ -113,7 +113,7 @@ export const AnyNaptrRecord: {
113
113
  export type AnyNaptrRecord = AnyNaptrRecord$instance;
114
114
 
115
115
  export interface AnyNsRecord$instance {
116
- readonly type_: string;
116
+ readonly type: string;
117
117
  value: string;
118
118
  }
119
119
 
@@ -126,7 +126,7 @@ export const AnyNsRecord: {
126
126
  export type AnyNsRecord = AnyNsRecord$instance;
127
127
 
128
128
  export interface AnyPtrRecord$instance {
129
- readonly type_: string;
129
+ readonly type: string;
130
130
  value: string;
131
131
  }
132
132
 
@@ -139,7 +139,7 @@ export const AnyPtrRecord: {
139
139
  export type AnyPtrRecord = AnyPtrRecord$instance;
140
140
 
141
141
  export interface AnyRecord$instance {
142
- readonly type_: string;
142
+ readonly type: string;
143
143
  }
144
144
 
145
145
 
@@ -150,7 +150,7 @@ export const AnyRecord: {
150
150
  export type AnyRecord = AnyRecord$instance;
151
151
 
152
152
  export interface AnySoaRecord$instance extends SoaRecord {
153
- readonly type_: string;
153
+ readonly type: string;
154
154
  }
155
155
 
156
156
 
@@ -162,7 +162,7 @@ export const AnySoaRecord: {
162
162
  export type AnySoaRecord = AnySoaRecord$instance;
163
163
 
164
164
  export interface AnySrvRecord$instance extends SrvRecord {
165
- readonly type_: string;
165
+ readonly type: string;
166
166
  }
167
167
 
168
168
 
@@ -174,7 +174,7 @@ export const AnySrvRecord: {
174
174
  export type AnySrvRecord = AnySrvRecord$instance;
175
175
 
176
176
  export interface AnyTlsaRecord$instance extends TlsaRecord {
177
- readonly type_: string;
177
+ readonly type: string;
178
178
  }
179
179
 
180
180
 
@@ -187,7 +187,7 @@ export type AnyTlsaRecord = AnyTlsaRecord$instance;
187
187
 
188
188
  export interface AnyTxtRecord$instance {
189
189
  entries: string[];
190
- readonly type_: string;
190
+ readonly type: string;
191
191
  }
192
192
 
193
193
 
@@ -232,10 +232,10 @@ export const BindOptions: {
232
232
  export type BindOptions = BindOptions$instance;
233
233
 
234
234
  export interface BlockList$instance {
235
- addAddress(address: string, type_?: string): void;
236
- addRange(start: string, end: string, type_?: string): void;
237
- addSubnet(network: string, prefix: int, type_?: string): void;
238
- check(address: string, type_?: string): boolean;
235
+ addAddress(address: string, type?: string): void;
236
+ addRange(start: string, end: string, type?: string): void;
237
+ addSubnet(network: string, prefix: int, type?: string): void;
238
+ check(address: string, type?: string): boolean;
239
239
  getRules(): string[];
240
240
  }
241
241
 
@@ -354,13 +354,13 @@ export const Buffer: {
354
354
  byteLength(str: string, encoding?: string): int;
355
355
  compare(buf1: Buffer, buf2: Buffer): int;
356
356
  concat(list: Buffer[], totalLength?: Nullable<System_Internal.Int32>): Buffer;
357
- from_(buffer: Buffer): Buffer;
358
- from_(array: byte[]): Buffer;
359
- from_(array: int[]): Buffer;
360
- from_(str: string, encoding?: string): Buffer;
357
+ from(buffer: Buffer): Buffer;
358
+ from(array: byte[]): Buffer;
359
+ from(array: int[]): Buffer;
360
+ from(str: string, encoding?: string): Buffer;
361
361
  isBuffer(obj: unknown): boolean;
362
362
  isEncoding(encoding: string): boolean;
363
- of_(...items: int[]): Buffer;
363
+ of(...items: int[]): Buffer;
364
364
  };
365
365
 
366
366
 
@@ -644,9 +644,9 @@ export type DiffieHellman = DiffieHellman$instance;
644
644
  export interface DSAPrivateKeyObject$instance extends KeyObject {
645
645
  readonly asymmetricKeyType: string | undefined;
646
646
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
647
- readonly type_: string;
647
+ readonly type: string;
648
648
  dispose(): void;
649
- export_(options?: unknown): unknown;
649
+ export(options?: unknown): unknown;
650
650
  }
651
651
 
652
652
 
@@ -660,9 +660,9 @@ export type DSAPrivateKeyObject = DSAPrivateKeyObject$instance;
660
660
  export interface DSAPublicKeyObject$instance extends KeyObject {
661
661
  readonly asymmetricKeyType: string | undefined;
662
662
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
663
- readonly type_: string;
663
+ readonly type: string;
664
664
  dispose(): void;
665
- export_(options?: unknown): unknown;
665
+ export(options?: unknown): unknown;
666
666
  }
667
667
 
668
668
 
@@ -721,9 +721,9 @@ export type ECDH = ECDH$instance;
721
721
  export interface EdDSAPrivateKeyObject$instance extends KeyObject {
722
722
  readonly asymmetricKeyType: string | undefined;
723
723
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
724
- readonly type_: string;
724
+ readonly type: string;
725
725
  dispose(): void;
726
- export_(options?: unknown): unknown;
726
+ export(options?: unknown): unknown;
727
727
  }
728
728
 
729
729
 
@@ -737,9 +737,9 @@ export type EdDSAPrivateKeyObject = EdDSAPrivateKeyObject$instance;
737
737
  export interface EdDSAPublicKeyObject$instance extends KeyObject {
738
738
  readonly asymmetricKeyType: string | undefined;
739
739
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
740
- readonly type_: string;
740
+ readonly type: string;
741
741
  dispose(): void;
742
- export_(options?: unknown): unknown;
742
+ export(options?: unknown): unknown;
743
743
  }
744
744
 
745
745
 
@@ -753,7 +753,7 @@ export type EdDSAPublicKeyObject = EdDSAPublicKeyObject$instance;
753
753
  export interface EphemeralKeyInfo$instance {
754
754
  name: string;
755
755
  size: int;
756
- type_: string;
756
+ type: string;
757
757
  }
758
758
 
759
759
 
@@ -936,9 +936,9 @@ export type IpcSocketConnectOpts = IpcSocketConnectOpts$instance;
936
936
  export interface KeyObject$instance {
937
937
  readonly asymmetricKeyType: string | undefined;
938
938
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
939
- readonly type_: string;
939
+ readonly type: string;
940
940
  dispose(): void;
941
- export_(options?: unknown): unknown;
941
+ export(options?: unknown): unknown;
942
942
  }
943
943
 
944
944
 
@@ -1098,7 +1098,7 @@ export interface PathModule$instance {
1098
1098
  matchesGlob(path: string, pattern: string): boolean;
1099
1099
  normalize(path: string): string;
1100
1100
  parse(path: string): ParsedPath;
1101
- relative(from_: string, to: string): string;
1101
+ relative(from: string, to: string): string;
1102
1102
  resolve(...paths: string[]): string;
1103
1103
  toNamespacedPath(path: string): string;
1104
1104
  }
@@ -1193,8 +1193,8 @@ export type PerformanceObserver = PerformanceObserver$instance;
1193
1193
 
1194
1194
  export interface PerformanceObserverEntryList$instance {
1195
1195
  getEntries(): PerformanceEntry[];
1196
- getEntriesByName(name: string, type_?: string): PerformanceEntry[];
1197
- getEntriesByType(type_: string): PerformanceEntry[];
1196
+ getEntriesByName(name: string, type?: string): PerformanceEntry[];
1197
+ getEntriesByType(type: string): PerformanceEntry[];
1198
1198
  }
1199
1199
 
1200
1200
 
@@ -1222,10 +1222,10 @@ export type PerformanceObserverOptions = PerformanceObserverOptions$instance;
1222
1222
  export interface PrivateKeyObject$instance extends KeyObject {
1223
1223
  readonly asymmetricKeyType: string | undefined;
1224
1224
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1225
- readonly type_: string;
1225
+ readonly type: string;
1226
1226
  dispose(): void;
1227
- export_(options?: unknown): unknown;
1228
- export_(format: string, type_?: string, cipher?: string, passphrase?: string): string;
1227
+ export(options?: unknown): unknown;
1228
+ export(format: string, type?: string, cipher?: string, passphrase?: string): string;
1229
1229
  }
1230
1230
 
1231
1231
 
@@ -1281,10 +1281,10 @@ export type ProcessVersions = ProcessVersions$instance;
1281
1281
  export interface PublicKeyObject$instance extends KeyObject {
1282
1282
  readonly asymmetricKeyType: string | undefined;
1283
1283
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1284
- readonly type_: string;
1284
+ readonly type: string;
1285
1285
  dispose(): void;
1286
- export_(options?: unknown): unknown;
1287
- export_(format: string, type_?: string): string;
1286
+ export(options?: unknown): unknown;
1287
+ export(format: string, type?: string): string;
1288
1288
  }
1289
1289
 
1290
1290
 
@@ -1411,10 +1411,10 @@ export type ResolverOptions = ResolverOptions$instance;
1411
1411
  export interface SecretKeyObject$instance extends KeyObject {
1412
1412
  readonly asymmetricKeyType: string | undefined;
1413
1413
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1414
- readonly type_: string;
1414
+ readonly type: string;
1415
1415
  dispose(): void;
1416
- export_(options?: unknown): unknown;
1417
- export_(): byte[];
1416
+ export(options?: unknown): unknown;
1417
+ export(): byte[];
1418
1418
  }
1419
1419
 
1420
1420
 
@@ -1640,7 +1640,7 @@ export interface SocketOptions$instance {
1640
1640
  reuseAddr: boolean;
1641
1641
  reusePort: boolean;
1642
1642
  sendBufferSize: Nullable<System_Internal.Int32>;
1643
- type_: string;
1643
+ type: string;
1644
1644
  }
1645
1645
 
1646
1646
 
@@ -1951,14 +1951,14 @@ export type URL = URL$instance;
1951
1951
  export interface URLSearchParams$instance {
1952
1952
  readonly size: int;
1953
1953
  append(name: string, value: string): void;
1954
- delete_(name: string, value?: string): void;
1954
+ delete(name: string, value?: string): void;
1955
1955
  entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
1956
1956
  forEach(callback: Action<System_Internal.String, System_Internal.String>): void;
1957
- get_(name: string): string | undefined;
1957
+ get(name: string): string | undefined;
1958
1958
  getAll(name: string): string[];
1959
1959
  has(name: string, value?: string): boolean;
1960
1960
  keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
1961
- set_(name: string, value: string): void;
1961
+ set(name: string, value: string): void;
1962
1962
  sort(): void;
1963
1963
  toString(): string;
1964
1964
  values(): IEnumerable__System_Collections_Generic<System_Internal.String>;
@@ -2076,12 +2076,12 @@ export type ZlibOptions = ZlibOptions$instance;
2076
2076
  export abstract class assert$instance {
2077
2077
  static deepEqual(actual: unknown, expected: unknown, message?: string): void;
2078
2078
  static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2079
- static doesNotMatch(string_: string, regexp: Regex, message?: string): void;
2079
+ static doesNotMatch(string: string, regexp: Regex, message?: string): void;
2080
2080
  static doesNotThrow(fn: Action, message?: string): void;
2081
2081
  static equal(actual: unknown, expected: unknown, message?: string): void;
2082
2082
  static fail(message?: string): void;
2083
2083
  static ifError(value: unknown): void;
2084
- static match(string_: string, regexp: Regex, message?: string): void;
2084
+ static match(string: string, regexp: Regex, message?: string): void;
2085
2085
  static notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
2086
2086
  static notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2087
2087
  static notEqual(actual: unknown, expected: unknown, message?: string): void;
@@ -2173,10 +2173,10 @@ export abstract class crypto$instance {
2173
2173
  static createSecretKey(key: string, encoding?: string): KeyObject;
2174
2174
  static createSign(algorithm: string): Sign;
2175
2175
  static createVerify(algorithm: string): Verify;
2176
- static generateKey(type_: string, options: unknown, callback: Action<Exception, KeyObject>): void;
2177
- static generateKey(type_: string, options: unknown): KeyObject;
2178
- static generateKeyPair(type_: string, options: unknown, callback: Action<Exception, unknown, unknown>): void;
2179
- static generateKeyPairSync(type_: string, options?: unknown): ValueTuple<KeyObject, KeyObject>;
2176
+ static generateKey(type: string, options: unknown, callback: Action<Exception, KeyObject>): void;
2177
+ static generateKey(type: string, options: unknown): KeyObject;
2178
+ static generateKeyPair(type: string, options: unknown, callback: Action<Exception, unknown, unknown>): void;
2179
+ static generateKeyPairSync(type: string, options?: unknown): ValueTuple<KeyObject, KeyObject>;
2180
2180
  static getCiphers(): string[];
2181
2181
  static getCurves(): string[];
2182
2182
  static getDefaultCipherList(): string;
@@ -2221,7 +2221,7 @@ export type crypto = crypto$instance;
2221
2221
 
2222
2222
  export abstract class dgram$instance {
2223
2223
  static createSocket(options: SocketOptions, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2224
- static createSocket(type_: string, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2224
+ static createSocket(type: string, callback?: Action<byte[], RemoteInfo>): DgramSocket;
2225
2225
  }
2226
2226
 
2227
2227
 
@@ -2327,8 +2327,8 @@ export abstract class fs$instance {
2327
2327
  static rmSync(path: string, recursive?: boolean): void;
2328
2328
  static stat(path: string): Task<Stats>;
2329
2329
  static statSync(path: string): Stats;
2330
- static symlink(target: string, path: string, type_?: string): Task;
2331
- static symlinkSync(target: string, path: string, type_?: string): void;
2330
+ static symlink(target: string, path: string, type?: string): Task;
2331
+ static symlinkSync(target: string, path: string, type?: string): void;
2332
2332
  static truncate(path: string, len?: long): Task;
2333
2333
  static truncateSync(path: string, len?: long): void;
2334
2334
  static unlink(path: string): Task;
@@ -2382,7 +2382,7 @@ export abstract class os$instance {
2382
2382
  static release(): string;
2383
2383
  static tmpdir(): string;
2384
2384
  static totalmem(): long;
2385
- static type_(): string;
2385
+ static type(): string;
2386
2386
  static uptime(): long;
2387
2387
  static userInfo(): UserInfo;
2388
2388
  }
@@ -2404,7 +2404,7 @@ export abstract class path$instance {
2404
2404
  static matchesGlob(path: string, pattern: string): boolean;
2405
2405
  static normalize(path: string): string;
2406
2406
  static parse(path: string): ParsedPath;
2407
- static relative(from_: string, to: string): string;
2407
+ static relative(from: string, to: string): string;
2408
2408
  static resolve(...paths: string[]): string;
2409
2409
  static toNamespacedPath(path: string): string;
2410
2410
  }
@@ -2416,8 +2416,8 @@ export abstract class performance$instance {
2416
2416
  static clearMarks(name?: string): void;
2417
2417
  static clearMeasures(name?: string): void;
2418
2418
  static getEntries(): PerformanceEntry[];
2419
- static getEntriesByName(name: string, type_?: string): PerformanceEntry[];
2420
- static getEntriesByType(type_: string): PerformanceEntry[];
2419
+ static getEntriesByName(name: string, type?: string): PerformanceEntry[];
2420
+ static getEntriesByType(type: string): PerformanceEntry[];
2421
2421
  static mark(name: string, options?: MarkOptions): PerformanceMark;
2422
2422
  static measure(name: string, startOrOptions?: unknown, endMark?: string): PerformanceMeasure;
2423
2423
  static now(): double;
@@ -2509,7 +2509,7 @@ export abstract class tls$instance {
2509
2509
  static createSecureContext(options?: SecureContextOptions): SecureContext;
2510
2510
  static createServer(options: TlsOptions, secureConnectionListener?: Action<TLSSocket>): TLSServer;
2511
2511
  static createServer(secureConnectionListener?: Action<TLSSocket>): TLSServer;
2512
- static getCACertificates(type_?: string): string[];
2512
+ static getCACertificates(type?: string): string[];
2513
2513
  static getCiphers(): string[];
2514
2514
  static setDefaultCACertificates(certs: string[]): void;
2515
2515
  }
@@ -2522,7 +2522,7 @@ export abstract class util$instance {
2522
2522
  static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string): Func<TResult>;
2523
2523
  static deprecate(action: Action, msg: string, code?: string): Action;
2524
2524
  static format(format: unknown, ...args: unknown[]): string;
2525
- static inherits(constructor_: unknown, superConstructor: unknown): void;
2525
+ static inherits(constructor: unknown, superConstructor: unknown): void;
2526
2526
  static inspect(obj: unknown): string;
2527
2527
  static isArray(obj: unknown): boolean;
2528
2528
  static isDeepStrictEqual(val1: unknown, val2: unknown): boolean;