@napi-rs/cli 3.0.0-alpha.55 → 3.0.0-alpha.57
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/dist/api/build.js +17 -10
- package/dist/api/build.js.map +1 -1
- package/dist/def/artifacts.d.ts +2 -2
- package/dist/def/build.d.ts +2 -2
- package/dist/def/build.js +2 -2
- package/dist/def/create-npm-dirs.d.ts +1 -1
- package/dist/def/new.d.ts +2 -2
- package/dist/def/pre-publish.d.ts +3 -3
- package/dist/def/rename.d.ts +6 -6
- package/dist/def/universalize.d.ts +1 -1
- package/dist/def/version.d.ts +1 -1
- package/dist/index.cjs +890 -16073
- package/dist/utils/misc.d.ts +0 -1
- package/dist/utils/target.d.ts +0 -1
- package/dist/utils/typegen.js +16 -7
- package/dist/utils/typegen.js.map +1 -1
- package/package.json +5 -5
- package/src/api/build.ts +40 -32
- package/src/def/build.ts +4 -4
- package/src/utils/__tests__/__fixtures__/napi_type_def +130 -130
- package/src/utils/__tests__/__snapshots__/config.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/target.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/typegen.spec.ts.md +316 -316
- package/src/utils/__tests__/__snapshots__/typegen.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/version.spec.ts.snap +0 -0
- package/src/utils/typegen.ts +19 -6
|
@@ -67,7 +67,7 @@ Generated by [AVA](https://avajs.dev).
|
|
|
67
67
|
> Snapshot 1
|
|
68
68
|
|
|
69
69
|
`␊
|
|
70
|
-
export class ExternalObject<T> {␊
|
|
70
|
+
export declare class ExternalObject<T> {␊
|
|
71
71
|
readonly '': {␊
|
|
72
72
|
readonly '': unique symbol␊
|
|
73
73
|
[K: symbol]: T␊
|
|
@@ -78,7 +78,7 @@ Generated by [AVA](https://avajs.dev).
|
|
|
78
78
|
* otherwise tag impl fn as constructor␊
|
|
79
79
|
* #[napi(constructor)]␊
|
|
80
80
|
*/␊
|
|
81
|
-
export class Animal {␊
|
|
81
|
+
export declare class Animal {␊
|
|
82
82
|
/** Kind of animal */␊
|
|
83
83
|
readonly kind: Kind␊
|
|
84
84
|
/** This is the constructor */␊
|
|
@@ -108,34 +108,34 @@ Generated by [AVA](https://avajs.dev).
|
|
|
108
108
|
overrideIndividualArgOnMethod(normalTy: string, overriddenTy: {n: string}): Bird␊
|
|
109
109
|
}␊
|
|
110
110
|
␊
|
|
111
|
-
export class AnimalWithDefaultConstructor {␊
|
|
111
|
+
export declare class AnimalWithDefaultConstructor {␊
|
|
112
112
|
name: string␊
|
|
113
113
|
kind: number␊
|
|
114
114
|
constructor(name: string, kind: number)␊
|
|
115
115
|
}␊
|
|
116
116
|
␊
|
|
117
|
-
export class AnotherClassForEither {␊
|
|
117
|
+
export declare class AnotherClassForEither {␊
|
|
118
118
|
constructor()␊
|
|
119
119
|
}␊
|
|
120
120
|
␊
|
|
121
|
-
export class AnotherCssStyleSheet {␊
|
|
121
|
+
export declare class AnotherCssStyleSheet {␊
|
|
122
122
|
get rules(): CssRuleList␊
|
|
123
123
|
}␊
|
|
124
124
|
export type AnotherCSSStyleSheet = AnotherCssStyleSheet␊
|
|
125
125
|
␊
|
|
126
|
-
export class Asset {␊
|
|
126
|
+
export declare class Asset {␊
|
|
127
127
|
constructor()␊
|
|
128
128
|
get filePath(): number␊
|
|
129
129
|
}␊
|
|
130
130
|
export type JsAsset = Asset␊
|
|
131
131
|
␊
|
|
132
|
-
export class Assets {␊
|
|
132
|
+
export declare class Assets {␊
|
|
133
133
|
constructor()␊
|
|
134
134
|
get(id: number): JsAsset | null␊
|
|
135
135
|
}␊
|
|
136
136
|
export type JsAssets = Assets␊
|
|
137
137
|
␊
|
|
138
|
-
export class Bird {␊
|
|
138
|
+
export declare class Bird {␊
|
|
139
139
|
name: string␊
|
|
140
140
|
constructor(name: string)␊
|
|
141
141
|
getCount(): number␊
|
|
@@ -143,24 +143,24 @@ Generated by [AVA](https://avajs.dev).
|
|
|
143
143
|
}␊
|
|
144
144
|
␊
|
|
145
145
|
/** Smoking test for type generation */␊
|
|
146
|
-
export class Blake2BHasher {␊
|
|
146
|
+
export declare class Blake2BHasher {␊
|
|
147
147
|
static withKey(key: Blake2bKey): Blake2BHasher␊
|
|
148
148
|
update(data: Buffer): void␊
|
|
149
149
|
}␊
|
|
150
150
|
export type Blake2bHasher = Blake2BHasher␊
|
|
151
151
|
␊
|
|
152
|
-
export class Blake2BKey {␊
|
|
152
|
+
export declare class Blake2BKey {␊
|
|
153
153
|
␊
|
|
154
154
|
}␊
|
|
155
155
|
export type Blake2bKey = Blake2BKey␊
|
|
156
156
|
␊
|
|
157
|
-
export class ClassWithFactory {␊
|
|
157
|
+
export declare class ClassWithFactory {␊
|
|
158
158
|
name: string␊
|
|
159
159
|
static withName(name: string): ClassWithFactory␊
|
|
160
160
|
setName(name: string): this␊
|
|
161
161
|
}␊
|
|
162
162
|
␊
|
|
163
|
-
export class Context {␊
|
|
163
|
+
export declare class Context {␊
|
|
164
164
|
maybeNeed?: boolean␊
|
|
165
165
|
buffer: Uint8Array␊
|
|
166
166
|
constructor()␊
|
|
@@ -169,60 +169,60 @@ Generated by [AVA](https://avajs.dev).
|
|
|
169
169
|
method(): string␊
|
|
170
170
|
}␊
|
|
171
171
|
␊
|
|
172
|
-
export class CssRuleList {␊
|
|
172
|
+
export declare class CssRuleList {␊
|
|
173
173
|
getRules(): Array<string>␊
|
|
174
174
|
get parentStyleSheet(): CSSStyleSheet␊
|
|
175
175
|
get name(): string | null␊
|
|
176
176
|
}␊
|
|
177
177
|
export type CSSRuleList = CssRuleList␊
|
|
178
178
|
␊
|
|
179
|
-
export class CssStyleSheet {␊
|
|
179
|
+
export declare class CssStyleSheet {␊
|
|
180
180
|
constructor(name: string, rules: Array<string>)␊
|
|
181
181
|
get rules(): CssRuleList␊
|
|
182
182
|
anotherCssStyleSheet(): AnotherCssStyleSheet␊
|
|
183
183
|
}␊
|
|
184
184
|
export type CSSStyleSheet = CssStyleSheet␊
|
|
185
185
|
␊
|
|
186
|
-
export class CustomFinalize {␊
|
|
186
|
+
export declare class CustomFinalize {␊
|
|
187
187
|
constructor(width: number, height: number)␊
|
|
188
188
|
}␊
|
|
189
189
|
␊
|
|
190
|
-
export class Dog {␊
|
|
190
|
+
export declare class Dog {␊
|
|
191
191
|
name: string␊
|
|
192
192
|
constructor(name: string)␊
|
|
193
193
|
}␊
|
|
194
194
|
␊
|
|
195
|
-
export class Fib {␊
|
|
195
|
+
export declare class Fib {␊
|
|
196
196
|
[Symbol.iterator](): Iterator<number, void, number>␊
|
|
197
197
|
constructor()␊
|
|
198
198
|
}␊
|
|
199
199
|
␊
|
|
200
|
-
export class Fib2 {␊
|
|
200
|
+
export declare class Fib2 {␊
|
|
201
201
|
[Symbol.iterator](): Iterator<number, void, number>␊
|
|
202
202
|
static create(seed: number): Fib2␊
|
|
203
203
|
}␊
|
|
204
204
|
␊
|
|
205
|
-
export class Fib3 {␊
|
|
205
|
+
export declare class Fib3 {␊
|
|
206
206
|
current: number␊
|
|
207
207
|
next: number␊
|
|
208
208
|
constructor(current: number, next: number)␊
|
|
209
209
|
[Symbol.iterator](): Iterator<number, void, number>␊
|
|
210
210
|
}␊
|
|
211
211
|
␊
|
|
212
|
-
export class JsClassForEither {␊
|
|
212
|
+
export declare class JsClassForEither {␊
|
|
213
213
|
constructor()␊
|
|
214
214
|
}␊
|
|
215
215
|
␊
|
|
216
|
-
export class JsRemote {␊
|
|
216
|
+
export declare class JsRemote {␊
|
|
217
217
|
name(): string␊
|
|
218
218
|
}␊
|
|
219
219
|
␊
|
|
220
|
-
export class JsRepo {␊
|
|
220
|
+
export declare class JsRepo {␊
|
|
221
221
|
constructor(dir: string)␊
|
|
222
222
|
remote(): JsRemote␊
|
|
223
223
|
}␊
|
|
224
224
|
␊
|
|
225
|
-
export class NinjaTurtle {␊
|
|
225
|
+
export declare class NinjaTurtle {␊
|
|
226
226
|
name: string␊
|
|
227
227
|
static isInstanceOf(value: unknown): boolean␊
|
|
228
228
|
/** Create your ninja turtle! 🐢 */␊
|
|
@@ -232,20 +232,20 @@ Generated by [AVA](https://avajs.dev).
|
|
|
232
232
|
returnThis(this: this): this␊
|
|
233
233
|
}␊
|
|
234
234
|
␊
|
|
235
|
-
export class NotWritableClass {␊
|
|
235
|
+
export declare class NotWritableClass {␊
|
|
236
236
|
name: string␊
|
|
237
237
|
constructor(name: string)␊
|
|
238
238
|
setName(name: string): void␊
|
|
239
239
|
}␊
|
|
240
240
|
␊
|
|
241
|
-
export class Optional {␊
|
|
241
|
+
export declare class Optional {␊
|
|
242
242
|
static optionEnd(required: string, optional?: string | undefined | null): string␊
|
|
243
243
|
static optionStart(optional: string | undefined | null, required: string): string␊
|
|
244
244
|
static optionStartEnd(optional1: string | undefined | null, required: string, optional2?: string | undefined | null): string␊
|
|
245
245
|
static optionOnly(optional?: string | undefined | null): string␊
|
|
246
246
|
}␊
|
|
247
247
|
␊
|
|
248
|
-
export class Width {␊
|
|
248
|
+
export declare class Width {␊
|
|
249
249
|
value: number␊
|
|
250
250
|
constructor(value: number)␊
|
|
251
251
|
}␊
|
|
@@ -254,15 +254,15 @@ Generated by [AVA](https://avajs.dev).
|
|
|
254
254
|
foo: number␊
|
|
255
255
|
}␊
|
|
256
256
|
␊
|
|
257
|
-
export function acceptThreadsafeFunction(func: (err: Error | null, value: number) => any): void␊
|
|
257
|
+
export declare function acceptThreadsafeFunction(func: (err: Error | null, value: number) => any): void␊
|
|
258
258
|
␊
|
|
259
|
-
export function acceptThreadsafeFunctionFatal(func: (value: number) => any): void␊
|
|
259
|
+
export declare function acceptThreadsafeFunctionFatal(func: (value: number) => any): void␊
|
|
260
260
|
␊
|
|
261
|
-
export function acceptThreadsafeFunctionTupleArgs(func: (err: Error | null, arg0: number, arg1: boolean, arg2: string) => any): void␊
|
|
261
|
+
export declare function acceptThreadsafeFunctionTupleArgs(func: (err: Error | null, arg0: number, arg1: boolean, arg2: string) => any): void␊
|
|
262
262
|
␊
|
|
263
|
-
export function add(a: number, b: number): number␊
|
|
263
|
+
export declare function add(a: number, b: number): number␊
|
|
264
264
|
␊
|
|
265
|
-
export const enum ALIAS {␊
|
|
265
|
+
export declare const enum ALIAS {␊
|
|
266
266
|
A = 0,␊
|
|
267
267
|
B = 1␊
|
|
268
268
|
}␊
|
|
@@ -277,74 +277,74 @@ Generated by [AVA](https://avajs.dev).
|
|
|
277
277
|
age?: number␊
|
|
278
278
|
}␊
|
|
279
279
|
␊
|
|
280
|
-
export function appendBuffer(buf: Buffer): Buffer␊
|
|
280
|
+
export declare function appendBuffer(buf: Buffer): Buffer␊
|
|
281
281
|
␊
|
|
282
|
-
export function arrayBufferPassThrough(buf: Uint8Array): Promise<Uint8Array>␊
|
|
282
|
+
export declare function arrayBufferPassThrough(buf: Uint8Array): Promise<Uint8Array>␊
|
|
283
283
|
␊
|
|
284
|
-
export function asyncMultiTwo(arg: number): Promise<number>␊
|
|
284
|
+
export declare function asyncMultiTwo(arg: number): Promise<number>␊
|
|
285
285
|
␊
|
|
286
|
-
export function asyncPlus100(p: Promise<number>): Promise<number>␊
|
|
286
|
+
export declare function asyncPlus100(p: Promise<number>): Promise<number>␊
|
|
287
287
|
␊
|
|
288
|
-
export function asyncReduceBuffer(buf: Buffer): Promise<number>␊
|
|
288
|
+
export declare function asyncReduceBuffer(buf: Buffer): Promise<number>␊
|
|
289
289
|
␊
|
|
290
290
|
export interface B {␊
|
|
291
291
|
bar: number␊
|
|
292
292
|
}␊
|
|
293
293
|
␊
|
|
294
|
-
export function bigintAdd(a: bigint, b: bigint): bigint␊
|
|
294
|
+
export declare function bigintAdd(a: bigint, b: bigint): bigint␊
|
|
295
295
|
␊
|
|
296
|
-
export function bigintFromI128(): bigint␊
|
|
296
|
+
export declare function bigintFromI128(): bigint␊
|
|
297
297
|
␊
|
|
298
|
-
export function bigintFromI64(): bigint␊
|
|
298
|
+
export declare function bigintFromI64(): bigint␊
|
|
299
299
|
␊
|
|
300
|
-
export function bigintGetU64AsString(bi: bigint): string␊
|
|
300
|
+
export declare function bigintGetU64AsString(bi: bigint): string␊
|
|
301
301
|
␊
|
|
302
|
-
export function bufferPassThrough(buf: Buffer): Promise<Buffer>␊
|
|
302
|
+
export declare function bufferPassThrough(buf: Buffer): Promise<Buffer>␊
|
|
303
303
|
␊
|
|
304
304
|
export interface C {␊
|
|
305
305
|
baz: number␊
|
|
306
306
|
}␊
|
|
307
307
|
␊
|
|
308
|
-
export function callbackReturnPromise<T>(functionInput: () => T | Promise<T>, callback: (err: Error | null, result: T) => void): T | Promise<T>␊
|
|
308
|
+
export declare function callbackReturnPromise<T>(functionInput: () => T | Promise<T>, callback: (err: Error | null, result: T) => void): T | Promise<T>␊
|
|
309
309
|
␊
|
|
310
|
-
export function callThreadsafeFunction(callback: (...args: any[]) => any): void␊
|
|
310
|
+
export declare function callThreadsafeFunction(callback: (...args: any[]) => any): void␊
|
|
311
311
|
␊
|
|
312
|
-
export function captureErrorInCallback(cb1: () => void, cb2: (arg0: Error) => void): void␊
|
|
312
|
+
export declare function captureErrorInCallback(cb1: () => void, cb2: (arg0: Error) => void): void␊
|
|
313
313
|
␊
|
|
314
|
-
export function chronoDateAdd1Minute(input: Date): Date␊
|
|
314
|
+
export declare function chronoDateAdd1Minute(input: Date): Date␊
|
|
315
315
|
␊
|
|
316
|
-
export function chronoDateToMillis(input: Date): number␊
|
|
316
|
+
export declare function chronoDateToMillis(input: Date): number␊
|
|
317
317
|
␊
|
|
318
|
-
export function concatLatin1(s: string): string␊
|
|
318
|
+
export declare function concatLatin1(s: string): string␊
|
|
319
319
|
␊
|
|
320
|
-
export function concatStr(s: string): string␊
|
|
320
|
+
export declare function concatStr(s: string): string␊
|
|
321
321
|
␊
|
|
322
|
-
export function concatUtf16(s: string): string␊
|
|
322
|
+
export declare function concatUtf16(s: string): string␊
|
|
323
323
|
␊
|
|
324
|
-
export function contains(source: string, target: string): boolean␊
|
|
324
|
+
export declare function contains(source: string, target: string): boolean␊
|
|
325
325
|
␊
|
|
326
|
-
export function convertU32Array(input: Uint32Array): Array<number>␊
|
|
326
|
+
export declare function convertU32Array(input: Uint32Array): Array<number>␊
|
|
327
327
|
␊
|
|
328
|
-
export function createBigInt(): bigint␊
|
|
328
|
+
export declare function createBigInt(): bigint␊
|
|
329
329
|
␊
|
|
330
|
-
export function createBigIntI64(): bigint␊
|
|
330
|
+
export declare function createBigIntI64(): bigint␊
|
|
331
331
|
␊
|
|
332
|
-
export function createExternal(size: number): ExternalObject<number>␊
|
|
332
|
+
export declare function createExternal(size: number): ExternalObject<number>␊
|
|
333
333
|
␊
|
|
334
|
-
export function createExternalString(content: string): ExternalObject<string>␊
|
|
334
|
+
export declare function createExternalString(content: string): ExternalObject<string>␊
|
|
335
335
|
␊
|
|
336
|
-
export function createExternalTypedArray(): Uint32Array␊
|
|
336
|
+
export declare function createExternalTypedArray(): Uint32Array␊
|
|
337
337
|
␊
|
|
338
|
-
export function createObj(): object␊
|
|
338
|
+
export declare function createObj(): object␊
|
|
339
339
|
␊
|
|
340
|
-
export function createObjectWithClassField(): ObjectFieldClassInstance␊
|
|
340
|
+
export declare function createObjectWithClassField(): ObjectFieldClassInstance␊
|
|
341
341
|
␊
|
|
342
|
-
export function createObjWithProperty(): { value: ArrayBuffer, get getter(): number }␊
|
|
342
|
+
export declare function createObjWithProperty(): { value: ArrayBuffer, get getter(): number }␊
|
|
343
343
|
␊
|
|
344
|
-
export function createSymbol(): symbol␊
|
|
344
|
+
export declare function createSymbol(): symbol␊
|
|
345
345
|
␊
|
|
346
346
|
/** You could break the step and for an new continuous value. */␊
|
|
347
|
-
export const enum CustomNumEnum {␊
|
|
347
|
+
export declare const enum CustomNumEnum {␊
|
|
348
348
|
One = 1,␊
|
|
349
349
|
Two = 2,␊
|
|
350
350
|
Three = 3,␊
|
|
@@ -355,75 +355,75 @@ Generated by [AVA](https://avajs.dev).
|
|
|
355
355
|
Ten = 10␊
|
|
356
356
|
}␊
|
|
357
357
|
␊
|
|
358
|
-
export function customStatusCode(): void␊
|
|
358
|
+
export declare function customStatusCode(): void␊
|
|
359
359
|
␊
|
|
360
360
|
export interface Dates {␊
|
|
361
361
|
start: Date␊
|
|
362
362
|
end?: Date␊
|
|
363
363
|
}␊
|
|
364
364
|
␊
|
|
365
|
-
export function dateToNumber(input: Date): number␊
|
|
365
|
+
export declare function dateToNumber(input: Date): number␊
|
|
366
366
|
␊
|
|
367
367
|
/** This is a const */␊
|
|
368
368
|
export const DEFAULT_COST: number␊
|
|
369
369
|
␊
|
|
370
|
-
export function derefUint8Array(a: Uint8Array, b: Uint8ClampedArray): number␊
|
|
370
|
+
export declare function derefUint8Array(a: Uint8Array, b: Uint8ClampedArray): number␊
|
|
371
371
|
␊
|
|
372
|
-
export function either3(input: string | number | boolean): number␊
|
|
372
|
+
export declare function either3(input: string | number | boolean): number␊
|
|
373
373
|
␊
|
|
374
|
-
export function either4(input: string | number | boolean | Obj): number␊
|
|
374
|
+
export declare function either4(input: string | number | boolean | Obj): number␊
|
|
375
375
|
␊
|
|
376
|
-
export function eitherBoolOrFunction(input: boolean | ((...args: any[]) => any)): void␊
|
|
376
|
+
export declare function eitherBoolOrFunction(input: boolean | ((...args: any[]) => any)): void␊
|
|
377
377
|
␊
|
|
378
|
-
export function eitherFromObjects(input: A | B | C): string␊
|
|
378
|
+
export declare function eitherFromObjects(input: A | B | C): string␊
|
|
379
379
|
␊
|
|
380
|
-
export function eitherFromOption(): JsClassForEither | undefined␊
|
|
380
|
+
export declare function eitherFromOption(): JsClassForEither | undefined␊
|
|
381
381
|
␊
|
|
382
|
-
export function eitherStringOrNumber(input: string | number): number␊
|
|
382
|
+
export declare function eitherStringOrNumber(input: string | number): number␊
|
|
383
383
|
␊
|
|
384
|
-
export const enum Empty {␊
|
|
384
|
+
export declare const enum Empty {␊
|
|
385
385
|
␊
|
|
386
386
|
}␊
|
|
387
387
|
␊
|
|
388
|
-
export function enumToI32(e: CustomNumEnum): number␊
|
|
388
|
+
export declare function enumToI32(e: CustomNumEnum): number␊
|
|
389
389
|
␊
|
|
390
|
-
export function fibonacci(n: number): number␊
|
|
390
|
+
export declare function fibonacci(n: number): number␊
|
|
391
391
|
␊
|
|
392
|
-
export function fnReceivedAliased(s: AliasedStruct, e: ALIAS): void␊
|
|
392
|
+
export declare function fnReceivedAliased(s: AliasedStruct, e: ALIAS): void␊
|
|
393
393
|
␊
|
|
394
|
-
export function getBuffer(): Buffer␊
|
|
394
|
+
export declare function getBuffer(): Buffer␊
|
|
395
395
|
␊
|
|
396
|
-
export function getCwd(callback: (arg0: string) => void): void␊
|
|
396
|
+
export declare function getCwd(callback: (arg0: string) => void): void␊
|
|
397
397
|
␊
|
|
398
|
-
export function getEmptyBuffer(): Buffer␊
|
|
398
|
+
export declare function getEmptyBuffer(): Buffer␊
|
|
399
399
|
␊
|
|
400
|
-
export function getExternal(external: ExternalObject<number>): number␊
|
|
400
|
+
export declare function getExternal(external: ExternalObject<number>): number␊
|
|
401
401
|
␊
|
|
402
|
-
export function getGlobal(): typeof global␊
|
|
402
|
+
export declare function getGlobal(): typeof global␊
|
|
403
403
|
␊
|
|
404
|
-
export function getMapping(): Record<string, number>␊
|
|
404
|
+
export declare function getMapping(): Record<string, number>␊
|
|
405
405
|
␊
|
|
406
|
-
export function getNestedNumArr(): number[][][]␊
|
|
406
|
+
export declare function getNestedNumArr(): number[][][]␊
|
|
407
407
|
␊
|
|
408
|
-
export function getNull(): null␊
|
|
408
|
+
export declare function getNull(): null␊
|
|
409
409
|
␊
|
|
410
|
-
export function getNumArr(): number[]␊
|
|
410
|
+
export declare function getNumArr(): number[]␊
|
|
411
411
|
␊
|
|
412
412
|
/** Gets some numbers */␊
|
|
413
|
-
export function getNums(): Array<number>␊
|
|
413
|
+
export declare function getNums(): Array<number>␊
|
|
414
414
|
␊
|
|
415
|
-
export function getPackageJsonName(packageJson: PackageJson): string␊
|
|
415
|
+
export declare function getPackageJsonName(packageJson: PackageJson): string␊
|
|
416
416
|
␊
|
|
417
|
-
export function getStrFromObject(): void␊
|
|
417
|
+
export declare function getStrFromObject(): void␊
|
|
418
418
|
␊
|
|
419
|
-
export function getterFromObj(): number␊
|
|
419
|
+
export declare function getterFromObj(): number␊
|
|
420
420
|
␊
|
|
421
|
-
export function getUndefined(): void␊
|
|
421
|
+
export declare function getUndefined(): void␊
|
|
422
422
|
␊
|
|
423
|
-
export function getWords(): Array<string>␊
|
|
423
|
+
export declare function getWords(): Array<string>␊
|
|
424
424
|
␊
|
|
425
425
|
/** default enum values are continuos i32s start from 0 */␊
|
|
426
|
-
export const enum Kind {␊
|
|
426
|
+
export declare const enum Kind {␊
|
|
427
427
|
/** Barks */␊
|
|
428
428
|
Dog = 0,␊
|
|
429
429
|
/** Kills birds */␊
|
|
@@ -432,13 +432,13 @@ Generated by [AVA](https://avajs.dev).
|
|
|
432
432
|
Duck = 2␊
|
|
433
433
|
}␊
|
|
434
434
|
␊
|
|
435
|
-
export function listObjKeys(obj: object): Array<string>␊
|
|
435
|
+
export declare function listObjKeys(obj: object): Array<string>␊
|
|
436
436
|
␊
|
|
437
|
-
export function mapOption(val?: number | undefined | null): number | null␊
|
|
437
|
+
export declare function mapOption(val?: number | undefined | null): number | null␊
|
|
438
438
|
␊
|
|
439
|
-
export function mutateExternal(external: ExternalObject<number>, newVal: number): void␊
|
|
439
|
+
export declare function mutateExternal(external: ExternalObject<number>, newVal: number): void␊
|
|
440
440
|
␊
|
|
441
|
-
export function mutateTypedArray(input: Float32Array): void␊
|
|
441
|
+
export declare function mutateTypedArray(input: Float32Array): void␊
|
|
442
442
|
␊
|
|
443
443
|
export interface Obj {␊
|
|
444
444
|
v: string | number␊
|
|
@@ -453,17 +453,17 @@ Generated by [AVA](https://avajs.dev).
|
|
|
453
453
|
callback: (err: Error | null, value: number) => any␊
|
|
454
454
|
}␊
|
|
455
455
|
␊
|
|
456
|
-
export function optionEnd(callback: (arg0: string, arg1?: string | undefined | null) => void): void␊
|
|
456
|
+
export declare function optionEnd(callback: (arg0: string, arg1?: string | undefined | null) => void): void␊
|
|
457
457
|
␊
|
|
458
|
-
export function optionOnly(callback: (arg0?: string | undefined | null) => void): void␊
|
|
458
|
+
export declare function optionOnly(callback: (arg0?: string | undefined | null) => void): void␊
|
|
459
459
|
␊
|
|
460
|
-
export function optionStart(callback: (arg0: string | undefined | null, arg1: string) => void): void␊
|
|
460
|
+
export declare function optionStart(callback: (arg0: string | undefined | null, arg1: string) => void): void␊
|
|
461
461
|
␊
|
|
462
|
-
export function optionStartEnd(callback: (arg0: string | undefined | null, arg1: string, arg2?: string | undefined | null) => void): void␊
|
|
462
|
+
export declare function optionStartEnd(callback: (arg0: string | undefined | null, arg1: string, arg2?: string | undefined | null) => void): void␊
|
|
463
463
|
␊
|
|
464
|
-
export function overrideIndividualArgOnFunction(notOverridden: string, f: () => string, notOverridden2: number): string␊
|
|
464
|
+
export declare function overrideIndividualArgOnFunction(notOverridden: string, f: () => string, notOverridden2: number): string␊
|
|
465
465
|
␊
|
|
466
|
-
export function overrideIndividualArgOnFunctionWithCbArg(callback: (town: string, name?: string | undefined | null) => string, notOverridden: number): object␊
|
|
466
|
+
export declare function overrideIndividualArgOnFunctionWithCbArg(callback: (town: string, name?: string | undefined | null) => string, notOverridden: number): object␊
|
|
467
467
|
␊
|
|
468
468
|
/** This is an interface for package.json */␊
|
|
469
469
|
export interface PackageJson {␊
|
|
@@ -474,134 +474,134 @@ Generated by [AVA](https://avajs.dev).
|
|
|
474
474
|
devDependencies?: Record<string, any>␊
|
|
475
475
|
}␊
|
|
476
476
|
␊
|
|
477
|
-
export function panic(): void␊
|
|
477
|
+
export declare function panic(): void␊
|
|
478
478
|
␊
|
|
479
|
-
export function plusOne(this: Width): number␊
|
|
479
|
+
export declare function plusOne(this: Width): number␊
|
|
480
480
|
␊
|
|
481
|
-
export function promiseInEither(input: number | Promise<number>): Promise<boolean>␊
|
|
481
|
+
export declare function promiseInEither(input: number | Promise<number>): Promise<boolean>␊
|
|
482
482
|
␊
|
|
483
483
|
/** napi = { version = 2, features = ["serde-json"] } */␊
|
|
484
|
-
export function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void␊
|
|
484
|
+
export declare function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void␊
|
|
485
485
|
␊
|
|
486
|
-
export function readFileAsync(path: string): Promise<Buffer>␊
|
|
486
|
+
export declare function readFileAsync(path: string): Promise<Buffer>␊
|
|
487
487
|
␊
|
|
488
|
-
export function readPackageJson(): PackageJson␊
|
|
488
|
+
export declare function readPackageJson(): PackageJson␊
|
|
489
489
|
␊
|
|
490
|
-
export function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void␊
|
|
490
|
+
export declare function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void␊
|
|
491
491
|
␊
|
|
492
|
-
export function receiveClassOrNumber(either: number | JsClassForEither): number␊
|
|
492
|
+
export declare function receiveClassOrNumber(either: number | JsClassForEither): number␊
|
|
493
493
|
␊
|
|
494
|
-
export function receiveDifferentClass(either: JsClassForEither | AnotherClassForEither): number␊
|
|
494
|
+
export declare function receiveDifferentClass(either: JsClassForEither | AnotherClassForEither): number␊
|
|
495
495
|
␊
|
|
496
|
-
export function receiveMutClassOrNumber(either: number | JsClassForEither): number␊
|
|
496
|
+
export declare function receiveMutClassOrNumber(either: number | JsClassForEither): number␊
|
|
497
497
|
␊
|
|
498
|
-
export function receiveObjectOnlyFromJs(obj: { count: number, callback: (err: Error | null, count: number) => void }): void␊
|
|
498
|
+
export declare function receiveObjectOnlyFromJs(obj: { count: number, callback: (err: Error | null, count: number) => void }): void␊
|
|
499
499
|
␊
|
|
500
|
-
export function receiveObjectWithClassField(object: ObjectFieldClassInstance): Bird␊
|
|
500
|
+
export declare function receiveObjectWithClassField(object: ObjectFieldClassInstance): Bird␊
|
|
501
501
|
␊
|
|
502
|
-
export function receiveStrictObject(strictObject: StrictObject): void␊
|
|
502
|
+
export declare function receiveStrictObject(strictObject: StrictObject): void␊
|
|
503
503
|
␊
|
|
504
|
-
export function receiveString(s: string): string␊
|
|
504
|
+
export declare function receiveString(s: string): string␊
|
|
505
505
|
␊
|
|
506
|
-
export function returnEither(input: number): string | number␊
|
|
506
|
+
export declare function returnEither(input: number): string | number␊
|
|
507
507
|
␊
|
|
508
|
-
export function returnEitherClass(input: number): number | JsClassForEither␊
|
|
508
|
+
export declare function returnEitherClass(input: number): number | JsClassForEither␊
|
|
509
509
|
␊
|
|
510
|
-
export function returnJsFunction(): (...args: any[]) => any␊
|
|
510
|
+
export declare function returnJsFunction(): (...args: any[]) => any␊
|
|
511
511
|
␊
|
|
512
|
-
export function returnNull(): null␊
|
|
512
|
+
export declare function returnNull(): null␊
|
|
513
513
|
␊
|
|
514
|
-
export function returnUndefined(): void␊
|
|
514
|
+
export declare function returnUndefined(): void␊
|
|
515
515
|
␊
|
|
516
|
-
export function returnUndefinedIfInvalid(input: boolean): boolean␊
|
|
516
|
+
export declare function returnUndefinedIfInvalid(input: boolean): boolean␊
|
|
517
517
|
␊
|
|
518
|
-
export function returnUndefinedIfInvalidPromise(input: Promise<boolean>): Promise<boolean>␊
|
|
518
|
+
export declare function returnUndefinedIfInvalidPromise(input: Promise<boolean>): Promise<boolean>␊
|
|
519
519
|
␊
|
|
520
|
-
export function roundtripStr(s: string): string␊
|
|
520
|
+
export declare function roundtripStr(s: string): string␊
|
|
521
521
|
␊
|
|
522
|
-
export function runScript(script: string): unknown␊
|
|
522
|
+
export declare function runScript(script: string): unknown␊
|
|
523
523
|
␊
|
|
524
|
-
export function setSymbolInObj(symbol: symbol): object␊
|
|
524
|
+
export declare function setSymbolInObj(symbol: symbol): object␊
|
|
525
525
|
␊
|
|
526
526
|
export interface StrictObject {␊
|
|
527
527
|
name: string␊
|
|
528
528
|
}␊
|
|
529
529
|
␊
|
|
530
|
-
export function sumMapping(nums: Record<string, number>): number␊
|
|
530
|
+
export declare function sumMapping(nums: Record<string, number>): number␊
|
|
531
531
|
␊
|
|
532
|
-
export function sumNums(nums: Array<number>): number␊
|
|
532
|
+
export declare function sumNums(nums: Array<number>): number␊
|
|
533
533
|
␊
|
|
534
|
-
export function testSerdeRoundtrip(data: any): any␊
|
|
534
|
+
export declare function testSerdeRoundtrip(data: any): any␊
|
|
535
535
|
␊
|
|
536
|
-
export function threadsafeFunctionClosureCapture(func: (...args: any[]) => any): void␊
|
|
536
|
+
export declare function threadsafeFunctionClosureCapture(func: (...args: any[]) => any): void␊
|
|
537
537
|
␊
|
|
538
|
-
export function threadsafeFunctionFatalMode(cb: (...args: any[]) => any): void␊
|
|
538
|
+
export declare function threadsafeFunctionFatalMode(cb: (...args: any[]) => any): void␊
|
|
539
539
|
␊
|
|
540
|
-
export function threadsafeFunctionFatalModeError(cb: (...args: any[]) => any): void␊
|
|
540
|
+
export declare function threadsafeFunctionFatalModeError(cb: (...args: any[]) => any): void␊
|
|
541
541
|
␊
|
|
542
|
-
export function threadsafeFunctionThrowError(cb: (...args: any[]) => any): void␊
|
|
542
|
+
export declare function threadsafeFunctionThrowError(cb: (...args: any[]) => any): void␊
|
|
543
543
|
␊
|
|
544
|
-
export function throwError(): void␊
|
|
544
|
+
export declare function throwError(): void␊
|
|
545
545
|
␊
|
|
546
|
-
export function toJsObj(): object␊
|
|
546
|
+
export declare function toJsObj(): object␊
|
|
547
547
|
␊
|
|
548
|
-
export function tsfnAsyncCall(func: (...args: any[]) => any): Promise<void>␊
|
|
548
|
+
export declare function tsfnAsyncCall(func: (...args: any[]) => any): Promise<void>␊
|
|
549
549
|
␊
|
|
550
|
-
export function tsfnCallWithCallback(func: (...args: any[]) => any): void␊
|
|
550
|
+
export declare function tsfnCallWithCallback(func: (...args: any[]) => any): void␊
|
|
551
551
|
␊
|
|
552
|
-
export function tsRename(a: { foo: number }): string[]␊
|
|
552
|
+
export declare function tsRename(a: { foo: number }): string[]␊
|
|
553
553
|
␊
|
|
554
554
|
export interface TsTypeChanged {␊
|
|
555
555
|
typeOverride: object␊
|
|
556
556
|
typeOverrideOptional?: object␊
|
|
557
557
|
}␊
|
|
558
558
|
␊
|
|
559
|
-
export function validateArray(arr: Array<number>): number␊
|
|
559
|
+
export declare function validateArray(arr: Array<number>): number␊
|
|
560
560
|
␊
|
|
561
|
-
export function validateBigint(input: bigint): bigint␊
|
|
561
|
+
export declare function validateBigint(input: bigint): bigint␊
|
|
562
562
|
␊
|
|
563
|
-
export function validateBoolean(i: boolean): boolean␊
|
|
563
|
+
export declare function validateBoolean(i: boolean): boolean␊
|
|
564
564
|
␊
|
|
565
|
-
export function validateBuffer(b: Buffer): number␊
|
|
565
|
+
export declare function validateBuffer(b: Buffer): number␊
|
|
566
566
|
␊
|
|
567
|
-
export function validateDate(d: Date): number␊
|
|
567
|
+
export declare function validateDate(d: Date): number␊
|
|
568
568
|
␊
|
|
569
|
-
export function validateDateTime(d: Date): number␊
|
|
569
|
+
export declare function validateDateTime(d: Date): number␊
|
|
570
570
|
␊
|
|
571
|
-
export function validateExternal(e: ExternalObject<number>): number␊
|
|
571
|
+
export declare function validateExternal(e: ExternalObject<number>): number␊
|
|
572
572
|
␊
|
|
573
|
-
export function validateFunction(cb: () => number): number␊
|
|
573
|
+
export declare function validateFunction(cb: () => number): number␊
|
|
574
574
|
␊
|
|
575
|
-
export function validateHashMap(input: Record<string, number>): number␊
|
|
575
|
+
export declare function validateHashMap(input: Record<string, number>): number␊
|
|
576
576
|
␊
|
|
577
|
-
export function validateNull(i: null): boolean␊
|
|
577
|
+
export declare function validateNull(i: null): boolean␊
|
|
578
578
|
␊
|
|
579
|
-
export function validateNumber(i: number): number␊
|
|
579
|
+
export declare function validateNumber(i: number): number␊
|
|
580
580
|
␊
|
|
581
|
-
export function validateOptional(input1?: string | undefined | null, input2?: boolean | undefined | null): boolean␊
|
|
581
|
+
export declare function validateOptional(input1?: string | undefined | null, input2?: boolean | undefined | null): boolean␊
|
|
582
582
|
␊
|
|
583
|
-
export function validatePromise(p: Promise<number>): Promise<number>␊
|
|
583
|
+
export declare function validatePromise(p: Promise<number>): Promise<number>␊
|
|
584
584
|
␊
|
|
585
|
-
export function validateString(s: string): string␊
|
|
585
|
+
export declare function validateString(s: string): string␊
|
|
586
586
|
␊
|
|
587
|
-
export function validateSymbol(s: symbol): boolean␊
|
|
587
|
+
export declare function validateSymbol(s: symbol): boolean␊
|
|
588
588
|
␊
|
|
589
|
-
export function validateTypedArray(input: Uint8Array): number␊
|
|
589
|
+
export declare function validateTypedArray(input: Uint8Array): number␊
|
|
590
590
|
␊
|
|
591
|
-
export function validateUndefined(i: undefined): boolean␊
|
|
591
|
+
export declare function validateUndefined(i: undefined): boolean␊
|
|
592
592
|
␊
|
|
593
|
-
export function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>␊
|
|
593
|
+
export declare function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>␊
|
|
594
594
|
␊
|
|
595
|
-
export function withoutAbortController(a: number, b: number): Promise<number>␊
|
|
595
|
+
export declare function withoutAbortController(a: number, b: number): Promise<number>␊
|
|
596
596
|
␊
|
|
597
|
-
export function xxh64Alias(input: Buffer): bigint␊
|
|
597
|
+
export declare function xxh64Alias(input: Buffer): bigint␊
|
|
598
598
|
␊
|
|
599
|
-
export namespace xxh2 {␊
|
|
599
|
+
export declare namespace xxh2 {␊
|
|
600
600
|
export function xxh2Plus(a: number, b: number): number␊
|
|
601
601
|
export function xxh3Xxh64Alias(input: Buffer): bigint␊
|
|
602
602
|
}␊
|
|
603
603
|
␊
|
|
604
|
-
export namespace xxh3 {␊
|
|
604
|
+
export declare namespace xxh3 {␊
|
|
605
605
|
/** Xxh3 class */␊
|
|
606
606
|
export class Xxh3 {␊
|
|
607
607
|
constructor()␊
|
|
@@ -622,7 +622,7 @@ Generated by [AVA](https://avajs.dev).
|
|
|
622
622
|
> Snapshot 1
|
|
623
623
|
|
|
624
624
|
`␊
|
|
625
|
-
export class ExternalObject<T> {␊
|
|
625
|
+
export declare class ExternalObject<T> {␊
|
|
626
626
|
readonly '': {␊
|
|
627
627
|
readonly '': unique symbol␊
|
|
628
628
|
[K: symbol]: T␊
|
|
@@ -633,7 +633,7 @@ Generated by [AVA](https://avajs.dev).
|
|
|
633
633
|
* otherwise tag impl fn as constructor␊
|
|
634
634
|
* #[napi(constructor)]␊
|
|
635
635
|
*/␊
|
|
636
|
-
export class Animal {␊
|
|
636
|
+
export declare class Animal {␊
|
|
637
637
|
/** Kind of animal */␊
|
|
638
638
|
readonly kind: Kind␊
|
|
639
639
|
/** This is the constructor */␊
|
|
@@ -663,34 +663,34 @@ Generated by [AVA](https://avajs.dev).
|
|
|
663
663
|
overrideIndividualArgOnMethod(normalTy: string, overriddenTy: {n: string}): Bird␊
|
|
664
664
|
}␊
|
|
665
665
|
␊
|
|
666
|
-
export class AnimalWithDefaultConstructor {␊
|
|
666
|
+
export declare class AnimalWithDefaultConstructor {␊
|
|
667
667
|
name: string␊
|
|
668
668
|
kind: number␊
|
|
669
669
|
constructor(name: string, kind: number)␊
|
|
670
670
|
}␊
|
|
671
671
|
␊
|
|
672
|
-
export class AnotherClassForEither {␊
|
|
672
|
+
export declare class AnotherClassForEither {␊
|
|
673
673
|
constructor()␊
|
|
674
674
|
}␊
|
|
675
675
|
␊
|
|
676
|
-
export class AnotherCssStyleSheet {␊
|
|
676
|
+
export declare class AnotherCssStyleSheet {␊
|
|
677
677
|
get rules(): CssRuleList␊
|
|
678
678
|
}␊
|
|
679
679
|
export type AnotherCSSStyleSheet = AnotherCssStyleSheet␊
|
|
680
680
|
␊
|
|
681
|
-
export class Asset {␊
|
|
681
|
+
export declare class Asset {␊
|
|
682
682
|
constructor()␊
|
|
683
683
|
get filePath(): number␊
|
|
684
684
|
}␊
|
|
685
685
|
export type JsAsset = Asset␊
|
|
686
686
|
␊
|
|
687
|
-
export class Assets {␊
|
|
687
|
+
export declare class Assets {␊
|
|
688
688
|
constructor()␊
|
|
689
689
|
get(id: number): JsAsset | null␊
|
|
690
690
|
}␊
|
|
691
691
|
export type JsAssets = Assets␊
|
|
692
692
|
␊
|
|
693
|
-
export class Bird {␊
|
|
693
|
+
export declare class Bird {␊
|
|
694
694
|
name: string␊
|
|
695
695
|
constructor(name: string)␊
|
|
696
696
|
getCount(): number␊
|
|
@@ -698,24 +698,24 @@ Generated by [AVA](https://avajs.dev).
|
|
|
698
698
|
}␊
|
|
699
699
|
␊
|
|
700
700
|
/** Smoking test for type generation */␊
|
|
701
|
-
export class Blake2BHasher {␊
|
|
701
|
+
export declare class Blake2BHasher {␊
|
|
702
702
|
static withKey(key: Blake2bKey): Blake2BHasher␊
|
|
703
703
|
update(data: Buffer): void␊
|
|
704
704
|
}␊
|
|
705
705
|
export type Blake2bHasher = Blake2BHasher␊
|
|
706
706
|
␊
|
|
707
|
-
export class Blake2BKey {␊
|
|
707
|
+
export declare class Blake2BKey {␊
|
|
708
708
|
␊
|
|
709
709
|
}␊
|
|
710
710
|
export type Blake2bKey = Blake2BKey␊
|
|
711
711
|
␊
|
|
712
|
-
export class ClassWithFactory {␊
|
|
712
|
+
export declare class ClassWithFactory {␊
|
|
713
713
|
name: string␊
|
|
714
714
|
static withName(name: string): ClassWithFactory␊
|
|
715
715
|
setName(name: string): this␊
|
|
716
716
|
}␊
|
|
717
717
|
␊
|
|
718
|
-
export class Context {␊
|
|
718
|
+
export declare class Context {␊
|
|
719
719
|
maybeNeed?: boolean␊
|
|
720
720
|
buffer: Uint8Array␊
|
|
721
721
|
constructor()␊
|
|
@@ -724,60 +724,60 @@ Generated by [AVA](https://avajs.dev).
|
|
|
724
724
|
method(): string␊
|
|
725
725
|
}␊
|
|
726
726
|
␊
|
|
727
|
-
export class CssRuleList {␊
|
|
727
|
+
export declare class CssRuleList {␊
|
|
728
728
|
getRules(): Array<string>␊
|
|
729
729
|
get parentStyleSheet(): CSSStyleSheet␊
|
|
730
730
|
get name(): string | null␊
|
|
731
731
|
}␊
|
|
732
732
|
export type CSSRuleList = CssRuleList␊
|
|
733
733
|
␊
|
|
734
|
-
export class CssStyleSheet {␊
|
|
734
|
+
export declare class CssStyleSheet {␊
|
|
735
735
|
constructor(name: string, rules: Array<string>)␊
|
|
736
736
|
get rules(): CssRuleList␊
|
|
737
737
|
anotherCssStyleSheet(): AnotherCssStyleSheet␊
|
|
738
738
|
}␊
|
|
739
739
|
export type CSSStyleSheet = CssStyleSheet␊
|
|
740
740
|
␊
|
|
741
|
-
export class CustomFinalize {␊
|
|
741
|
+
export declare class CustomFinalize {␊
|
|
742
742
|
constructor(width: number, height: number)␊
|
|
743
743
|
}␊
|
|
744
744
|
␊
|
|
745
|
-
export class Dog {␊
|
|
745
|
+
export declare class Dog {␊
|
|
746
746
|
name: string␊
|
|
747
747
|
constructor(name: string)␊
|
|
748
748
|
}␊
|
|
749
749
|
␊
|
|
750
|
-
export class Fib {␊
|
|
750
|
+
export declare class Fib {␊
|
|
751
751
|
[Symbol.iterator](): Iterator<number, void, number>␊
|
|
752
752
|
constructor()␊
|
|
753
753
|
}␊
|
|
754
754
|
␊
|
|
755
|
-
export class Fib2 {␊
|
|
755
|
+
export declare class Fib2 {␊
|
|
756
756
|
[Symbol.iterator](): Iterator<number, void, number>␊
|
|
757
757
|
static create(seed: number): Fib2␊
|
|
758
758
|
}␊
|
|
759
759
|
␊
|
|
760
|
-
export class Fib3 {␊
|
|
760
|
+
export declare class Fib3 {␊
|
|
761
761
|
current: number␊
|
|
762
762
|
next: number␊
|
|
763
763
|
constructor(current: number, next: number)␊
|
|
764
764
|
[Symbol.iterator](): Iterator<number, void, number>␊
|
|
765
765
|
}␊
|
|
766
766
|
␊
|
|
767
|
-
export class JsClassForEither {␊
|
|
767
|
+
export declare class JsClassForEither {␊
|
|
768
768
|
constructor()␊
|
|
769
769
|
}␊
|
|
770
770
|
␊
|
|
771
|
-
export class JsRemote {␊
|
|
771
|
+
export declare class JsRemote {␊
|
|
772
772
|
name(): string␊
|
|
773
773
|
}␊
|
|
774
774
|
␊
|
|
775
|
-
export class JsRepo {␊
|
|
775
|
+
export declare class JsRepo {␊
|
|
776
776
|
constructor(dir: string)␊
|
|
777
777
|
remote(): JsRemote␊
|
|
778
778
|
}␊
|
|
779
779
|
␊
|
|
780
|
-
export class NinjaTurtle {␊
|
|
780
|
+
export declare class NinjaTurtle {␊
|
|
781
781
|
name: string␊
|
|
782
782
|
static isInstanceOf(value: unknown): boolean␊
|
|
783
783
|
/** Create your ninja turtle! 🐢 */␊
|
|
@@ -787,20 +787,20 @@ Generated by [AVA](https://avajs.dev).
|
|
|
787
787
|
returnThis(this: this): this␊
|
|
788
788
|
}␊
|
|
789
789
|
␊
|
|
790
|
-
export class NotWritableClass {␊
|
|
790
|
+
export declare class NotWritableClass {␊
|
|
791
791
|
name: string␊
|
|
792
792
|
constructor(name: string)␊
|
|
793
793
|
setName(name: string): void␊
|
|
794
794
|
}␊
|
|
795
795
|
␊
|
|
796
|
-
export class Optional {␊
|
|
796
|
+
export declare class Optional {␊
|
|
797
797
|
static optionEnd(required: string, optional?: string | undefined | null): string␊
|
|
798
798
|
static optionStart(optional: string | undefined | null, required: string): string␊
|
|
799
799
|
static optionStartEnd(optional1: string | undefined | null, required: string, optional2?: string | undefined | null): string␊
|
|
800
800
|
static optionOnly(optional?: string | undefined | null): string␊
|
|
801
801
|
}␊
|
|
802
802
|
␊
|
|
803
|
-
export class Width {␊
|
|
803
|
+
export declare class Width {␊
|
|
804
804
|
value: number␊
|
|
805
805
|
constructor(value: number)␊
|
|
806
806
|
}␊
|
|
@@ -809,15 +809,15 @@ Generated by [AVA](https://avajs.dev).
|
|
|
809
809
|
foo: number␊
|
|
810
810
|
}␊
|
|
811
811
|
␊
|
|
812
|
-
export function acceptThreadsafeFunction(func: (err: Error | null, value: number) => any): void␊
|
|
812
|
+
export declare function acceptThreadsafeFunction(func: (err: Error | null, value: number) => any): void␊
|
|
813
813
|
␊
|
|
814
|
-
export function acceptThreadsafeFunctionFatal(func: (value: number) => any): void␊
|
|
814
|
+
export declare function acceptThreadsafeFunctionFatal(func: (value: number) => any): void␊
|
|
815
815
|
␊
|
|
816
|
-
export function acceptThreadsafeFunctionTupleArgs(func: (err: Error | null, arg0: number, arg1: boolean, arg2: string) => any): void␊
|
|
816
|
+
export declare function acceptThreadsafeFunctionTupleArgs(func: (err: Error | null, arg0: number, arg1: boolean, arg2: string) => any): void␊
|
|
817
817
|
␊
|
|
818
|
-
export function add(a: number, b: number): number␊
|
|
818
|
+
export declare function add(a: number, b: number): number␊
|
|
819
819
|
␊
|
|
820
|
-
export enum ALIAS {␊
|
|
820
|
+
export declare enum ALIAS {␊
|
|
821
821
|
A = 0,␊
|
|
822
822
|
B = 1␊
|
|
823
823
|
}␊
|
|
@@ -832,74 +832,74 @@ Generated by [AVA](https://avajs.dev).
|
|
|
832
832
|
age?: number␊
|
|
833
833
|
}␊
|
|
834
834
|
␊
|
|
835
|
-
export function appendBuffer(buf: Buffer): Buffer␊
|
|
835
|
+
export declare function appendBuffer(buf: Buffer): Buffer␊
|
|
836
836
|
␊
|
|
837
|
-
export function arrayBufferPassThrough(buf: Uint8Array): Promise<Uint8Array>␊
|
|
837
|
+
export declare function arrayBufferPassThrough(buf: Uint8Array): Promise<Uint8Array>␊
|
|
838
838
|
␊
|
|
839
|
-
export function asyncMultiTwo(arg: number): Promise<number>␊
|
|
839
|
+
export declare function asyncMultiTwo(arg: number): Promise<number>␊
|
|
840
840
|
␊
|
|
841
|
-
export function asyncPlus100(p: Promise<number>): Promise<number>␊
|
|
841
|
+
export declare function asyncPlus100(p: Promise<number>): Promise<number>␊
|
|
842
842
|
␊
|
|
843
|
-
export function asyncReduceBuffer(buf: Buffer): Promise<number>␊
|
|
843
|
+
export declare function asyncReduceBuffer(buf: Buffer): Promise<number>␊
|
|
844
844
|
␊
|
|
845
845
|
export interface B {␊
|
|
846
846
|
bar: number␊
|
|
847
847
|
}␊
|
|
848
848
|
␊
|
|
849
|
-
export function bigintAdd(a: bigint, b: bigint): bigint␊
|
|
849
|
+
export declare function bigintAdd(a: bigint, b: bigint): bigint␊
|
|
850
850
|
␊
|
|
851
|
-
export function bigintFromI128(): bigint␊
|
|
851
|
+
export declare function bigintFromI128(): bigint␊
|
|
852
852
|
␊
|
|
853
|
-
export function bigintFromI64(): bigint␊
|
|
853
|
+
export declare function bigintFromI64(): bigint␊
|
|
854
854
|
␊
|
|
855
|
-
export function bigintGetU64AsString(bi: bigint): string␊
|
|
855
|
+
export declare function bigintGetU64AsString(bi: bigint): string␊
|
|
856
856
|
␊
|
|
857
|
-
export function bufferPassThrough(buf: Buffer): Promise<Buffer>␊
|
|
857
|
+
export declare function bufferPassThrough(buf: Buffer): Promise<Buffer>␊
|
|
858
858
|
␊
|
|
859
859
|
export interface C {␊
|
|
860
860
|
baz: number␊
|
|
861
861
|
}␊
|
|
862
862
|
␊
|
|
863
|
-
export function callbackReturnPromise<T>(functionInput: () => T | Promise<T>, callback: (err: Error | null, result: T) => void): T | Promise<T>␊
|
|
863
|
+
export declare function callbackReturnPromise<T>(functionInput: () => T | Promise<T>, callback: (err: Error | null, result: T) => void): T | Promise<T>␊
|
|
864
864
|
␊
|
|
865
|
-
export function callThreadsafeFunction(callback: (...args: any[]) => any): void␊
|
|
865
|
+
export declare function callThreadsafeFunction(callback: (...args: any[]) => any): void␊
|
|
866
866
|
␊
|
|
867
|
-
export function captureErrorInCallback(cb1: () => void, cb2: (arg0: Error) => void): void␊
|
|
867
|
+
export declare function captureErrorInCallback(cb1: () => void, cb2: (arg0: Error) => void): void␊
|
|
868
868
|
␊
|
|
869
|
-
export function chronoDateAdd1Minute(input: Date): Date␊
|
|
869
|
+
export declare function chronoDateAdd1Minute(input: Date): Date␊
|
|
870
870
|
␊
|
|
871
|
-
export function chronoDateToMillis(input: Date): number␊
|
|
871
|
+
export declare function chronoDateToMillis(input: Date): number␊
|
|
872
872
|
␊
|
|
873
|
-
export function concatLatin1(s: string): string␊
|
|
873
|
+
export declare function concatLatin1(s: string): string␊
|
|
874
874
|
␊
|
|
875
|
-
export function concatStr(s: string): string␊
|
|
875
|
+
export declare function concatStr(s: string): string␊
|
|
876
876
|
␊
|
|
877
|
-
export function concatUtf16(s: string): string␊
|
|
877
|
+
export declare function concatUtf16(s: string): string␊
|
|
878
878
|
␊
|
|
879
|
-
export function contains(source: string, target: string): boolean␊
|
|
879
|
+
export declare function contains(source: string, target: string): boolean␊
|
|
880
880
|
␊
|
|
881
|
-
export function convertU32Array(input: Uint32Array): Array<number>␊
|
|
881
|
+
export declare function convertU32Array(input: Uint32Array): Array<number>␊
|
|
882
882
|
␊
|
|
883
|
-
export function createBigInt(): bigint␊
|
|
883
|
+
export declare function createBigInt(): bigint␊
|
|
884
884
|
␊
|
|
885
|
-
export function createBigIntI64(): bigint␊
|
|
885
|
+
export declare function createBigIntI64(): bigint␊
|
|
886
886
|
␊
|
|
887
|
-
export function createExternal(size: number): ExternalObject<number>␊
|
|
887
|
+
export declare function createExternal(size: number): ExternalObject<number>␊
|
|
888
888
|
␊
|
|
889
|
-
export function createExternalString(content: string): ExternalObject<string>␊
|
|
889
|
+
export declare function createExternalString(content: string): ExternalObject<string>␊
|
|
890
890
|
␊
|
|
891
|
-
export function createExternalTypedArray(): Uint32Array␊
|
|
891
|
+
export declare function createExternalTypedArray(): Uint32Array␊
|
|
892
892
|
␊
|
|
893
|
-
export function createObj(): object␊
|
|
893
|
+
export declare function createObj(): object␊
|
|
894
894
|
␊
|
|
895
|
-
export function createObjectWithClassField(): ObjectFieldClassInstance␊
|
|
895
|
+
export declare function createObjectWithClassField(): ObjectFieldClassInstance␊
|
|
896
896
|
␊
|
|
897
|
-
export function createObjWithProperty(): { value: ArrayBuffer, get getter(): number }␊
|
|
897
|
+
export declare function createObjWithProperty(): { value: ArrayBuffer, get getter(): number }␊
|
|
898
898
|
␊
|
|
899
|
-
export function createSymbol(): symbol␊
|
|
899
|
+
export declare function createSymbol(): symbol␊
|
|
900
900
|
␊
|
|
901
901
|
/** You could break the step and for an new continuous value. */␊
|
|
902
|
-
export enum CustomNumEnum {␊
|
|
902
|
+
export declare enum CustomNumEnum {␊
|
|
903
903
|
One = 1,␊
|
|
904
904
|
Two = 2,␊
|
|
905
905
|
Three = 3,␊
|
|
@@ -910,75 +910,75 @@ Generated by [AVA](https://avajs.dev).
|
|
|
910
910
|
Ten = 10␊
|
|
911
911
|
}␊
|
|
912
912
|
␊
|
|
913
|
-
export function customStatusCode(): void␊
|
|
913
|
+
export declare function customStatusCode(): void␊
|
|
914
914
|
␊
|
|
915
915
|
export interface Dates {␊
|
|
916
916
|
start: Date␊
|
|
917
917
|
end?: Date␊
|
|
918
918
|
}␊
|
|
919
919
|
␊
|
|
920
|
-
export function dateToNumber(input: Date): number␊
|
|
920
|
+
export declare function dateToNumber(input: Date): number␊
|
|
921
921
|
␊
|
|
922
922
|
/** This is a const */␊
|
|
923
923
|
export const DEFAULT_COST: number␊
|
|
924
924
|
␊
|
|
925
|
-
export function derefUint8Array(a: Uint8Array, b: Uint8ClampedArray): number␊
|
|
925
|
+
export declare function derefUint8Array(a: Uint8Array, b: Uint8ClampedArray): number␊
|
|
926
926
|
␊
|
|
927
|
-
export function either3(input: string | number | boolean): number␊
|
|
927
|
+
export declare function either3(input: string | number | boolean): number␊
|
|
928
928
|
␊
|
|
929
|
-
export function either4(input: string | number | boolean | Obj): number␊
|
|
929
|
+
export declare function either4(input: string | number | boolean | Obj): number␊
|
|
930
930
|
␊
|
|
931
|
-
export function eitherBoolOrFunction(input: boolean | ((...args: any[]) => any)): void␊
|
|
931
|
+
export declare function eitherBoolOrFunction(input: boolean | ((...args: any[]) => any)): void␊
|
|
932
932
|
␊
|
|
933
|
-
export function eitherFromObjects(input: A | B | C): string␊
|
|
933
|
+
export declare function eitherFromObjects(input: A | B | C): string␊
|
|
934
934
|
␊
|
|
935
|
-
export function eitherFromOption(): JsClassForEither | undefined␊
|
|
935
|
+
export declare function eitherFromOption(): JsClassForEither | undefined␊
|
|
936
936
|
␊
|
|
937
|
-
export function eitherStringOrNumber(input: string | number): number␊
|
|
937
|
+
export declare function eitherStringOrNumber(input: string | number): number␊
|
|
938
938
|
␊
|
|
939
|
-
export enum Empty {␊
|
|
939
|
+
export declare enum Empty {␊
|
|
940
940
|
␊
|
|
941
941
|
}␊
|
|
942
942
|
␊
|
|
943
|
-
export function enumToI32(e: CustomNumEnum): number␊
|
|
943
|
+
export declare function enumToI32(e: CustomNumEnum): number␊
|
|
944
944
|
␊
|
|
945
|
-
export function fibonacci(n: number): number␊
|
|
945
|
+
export declare function fibonacci(n: number): number␊
|
|
946
946
|
␊
|
|
947
|
-
export function fnReceivedAliased(s: AliasedStruct, e: ALIAS): void␊
|
|
947
|
+
export declare function fnReceivedAliased(s: AliasedStruct, e: ALIAS): void␊
|
|
948
948
|
␊
|
|
949
|
-
export function getBuffer(): Buffer␊
|
|
949
|
+
export declare function getBuffer(): Buffer␊
|
|
950
950
|
␊
|
|
951
|
-
export function getCwd(callback: (arg0: string) => void): void␊
|
|
951
|
+
export declare function getCwd(callback: (arg0: string) => void): void␊
|
|
952
952
|
␊
|
|
953
|
-
export function getEmptyBuffer(): Buffer␊
|
|
953
|
+
export declare function getEmptyBuffer(): Buffer␊
|
|
954
954
|
␊
|
|
955
|
-
export function getExternal(external: ExternalObject<number>): number␊
|
|
955
|
+
export declare function getExternal(external: ExternalObject<number>): number␊
|
|
956
956
|
␊
|
|
957
|
-
export function getGlobal(): typeof global␊
|
|
957
|
+
export declare function getGlobal(): typeof global␊
|
|
958
958
|
␊
|
|
959
|
-
export function getMapping(): Record<string, number>␊
|
|
959
|
+
export declare function getMapping(): Record<string, number>␊
|
|
960
960
|
␊
|
|
961
|
-
export function getNestedNumArr(): number[][][]␊
|
|
961
|
+
export declare function getNestedNumArr(): number[][][]␊
|
|
962
962
|
␊
|
|
963
|
-
export function getNull(): null␊
|
|
963
|
+
export declare function getNull(): null␊
|
|
964
964
|
␊
|
|
965
|
-
export function getNumArr(): number[]␊
|
|
965
|
+
export declare function getNumArr(): number[]␊
|
|
966
966
|
␊
|
|
967
967
|
/** Gets some numbers */␊
|
|
968
|
-
export function getNums(): Array<number>␊
|
|
968
|
+
export declare function getNums(): Array<number>␊
|
|
969
969
|
␊
|
|
970
|
-
export function getPackageJsonName(packageJson: PackageJson): string␊
|
|
970
|
+
export declare function getPackageJsonName(packageJson: PackageJson): string␊
|
|
971
971
|
␊
|
|
972
|
-
export function getStrFromObject(): void␊
|
|
972
|
+
export declare function getStrFromObject(): void␊
|
|
973
973
|
␊
|
|
974
|
-
export function getterFromObj(): number␊
|
|
974
|
+
export declare function getterFromObj(): number␊
|
|
975
975
|
␊
|
|
976
|
-
export function getUndefined(): void␊
|
|
976
|
+
export declare function getUndefined(): void␊
|
|
977
977
|
␊
|
|
978
|
-
export function getWords(): Array<string>␊
|
|
978
|
+
export declare function getWords(): Array<string>␊
|
|
979
979
|
␊
|
|
980
980
|
/** default enum values are continuos i32s start from 0 */␊
|
|
981
|
-
export enum Kind {␊
|
|
981
|
+
export declare enum Kind {␊
|
|
982
982
|
/** Barks */␊
|
|
983
983
|
Dog = 0,␊
|
|
984
984
|
/** Kills birds */␊
|
|
@@ -987,13 +987,13 @@ Generated by [AVA](https://avajs.dev).
|
|
|
987
987
|
Duck = 2␊
|
|
988
988
|
}␊
|
|
989
989
|
␊
|
|
990
|
-
export function listObjKeys(obj: object): Array<string>␊
|
|
990
|
+
export declare function listObjKeys(obj: object): Array<string>␊
|
|
991
991
|
␊
|
|
992
|
-
export function mapOption(val?: number | undefined | null): number | null␊
|
|
992
|
+
export declare function mapOption(val?: number | undefined | null): number | null␊
|
|
993
993
|
␊
|
|
994
|
-
export function mutateExternal(external: ExternalObject<number>, newVal: number): void␊
|
|
994
|
+
export declare function mutateExternal(external: ExternalObject<number>, newVal: number): void␊
|
|
995
995
|
␊
|
|
996
|
-
export function mutateTypedArray(input: Float32Array): void␊
|
|
996
|
+
export declare function mutateTypedArray(input: Float32Array): void␊
|
|
997
997
|
␊
|
|
998
998
|
export interface Obj {␊
|
|
999
999
|
v: string | number␊
|
|
@@ -1008,17 +1008,17 @@ Generated by [AVA](https://avajs.dev).
|
|
|
1008
1008
|
callback: (err: Error | null, value: number) => any␊
|
|
1009
1009
|
}␊
|
|
1010
1010
|
␊
|
|
1011
|
-
export function optionEnd(callback: (arg0: string, arg1?: string | undefined | null) => void): void␊
|
|
1011
|
+
export declare function optionEnd(callback: (arg0: string, arg1?: string | undefined | null) => void): void␊
|
|
1012
1012
|
␊
|
|
1013
|
-
export function optionOnly(callback: (arg0?: string | undefined | null) => void): void␊
|
|
1013
|
+
export declare function optionOnly(callback: (arg0?: string | undefined | null) => void): void␊
|
|
1014
1014
|
␊
|
|
1015
|
-
export function optionStart(callback: (arg0: string | undefined | null, arg1: string) => void): void␊
|
|
1015
|
+
export declare function optionStart(callback: (arg0: string | undefined | null, arg1: string) => void): void␊
|
|
1016
1016
|
␊
|
|
1017
|
-
export function optionStartEnd(callback: (arg0: string | undefined | null, arg1: string, arg2?: string | undefined | null) => void): void␊
|
|
1017
|
+
export declare function optionStartEnd(callback: (arg0: string | undefined | null, arg1: string, arg2?: string | undefined | null) => void): void␊
|
|
1018
1018
|
␊
|
|
1019
|
-
export function overrideIndividualArgOnFunction(notOverridden: string, f: () => string, notOverridden2: number): string␊
|
|
1019
|
+
export declare function overrideIndividualArgOnFunction(notOverridden: string, f: () => string, notOverridden2: number): string␊
|
|
1020
1020
|
␊
|
|
1021
|
-
export function overrideIndividualArgOnFunctionWithCbArg(callback: (town: string, name?: string | undefined | null) => string, notOverridden: number): object␊
|
|
1021
|
+
export declare function overrideIndividualArgOnFunctionWithCbArg(callback: (town: string, name?: string | undefined | null) => string, notOverridden: number): object␊
|
|
1022
1022
|
␊
|
|
1023
1023
|
/** This is an interface for package.json */␊
|
|
1024
1024
|
export interface PackageJson {␊
|
|
@@ -1029,134 +1029,134 @@ Generated by [AVA](https://avajs.dev).
|
|
|
1029
1029
|
devDependencies?: Record<string, any>␊
|
|
1030
1030
|
}␊
|
|
1031
1031
|
␊
|
|
1032
|
-
export function panic(): void␊
|
|
1032
|
+
export declare function panic(): void␊
|
|
1033
1033
|
␊
|
|
1034
|
-
export function plusOne(this: Width): number␊
|
|
1034
|
+
export declare function plusOne(this: Width): number␊
|
|
1035
1035
|
␊
|
|
1036
|
-
export function promiseInEither(input: number | Promise<number>): Promise<boolean>␊
|
|
1036
|
+
export declare function promiseInEither(input: number | Promise<number>): Promise<boolean>␊
|
|
1037
1037
|
␊
|
|
1038
1038
|
/** napi = { version = 2, features = ["serde-json"] } */␊
|
|
1039
|
-
export function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void␊
|
|
1039
|
+
export declare function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void␊
|
|
1040
1040
|
␊
|
|
1041
|
-
export function readFileAsync(path: string): Promise<Buffer>␊
|
|
1041
|
+
export declare function readFileAsync(path: string): Promise<Buffer>␊
|
|
1042
1042
|
␊
|
|
1043
|
-
export function readPackageJson(): PackageJson␊
|
|
1043
|
+
export declare function readPackageJson(): PackageJson␊
|
|
1044
1044
|
␊
|
|
1045
|
-
export function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void␊
|
|
1045
|
+
export declare function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void␊
|
|
1046
1046
|
␊
|
|
1047
|
-
export function receiveClassOrNumber(either: number | JsClassForEither): number␊
|
|
1047
|
+
export declare function receiveClassOrNumber(either: number | JsClassForEither): number␊
|
|
1048
1048
|
␊
|
|
1049
|
-
export function receiveDifferentClass(either: JsClassForEither | AnotherClassForEither): number␊
|
|
1049
|
+
export declare function receiveDifferentClass(either: JsClassForEither | AnotherClassForEither): number␊
|
|
1050
1050
|
␊
|
|
1051
|
-
export function receiveMutClassOrNumber(either: number | JsClassForEither): number␊
|
|
1051
|
+
export declare function receiveMutClassOrNumber(either: number | JsClassForEither): number␊
|
|
1052
1052
|
␊
|
|
1053
|
-
export function receiveObjectOnlyFromJs(obj: { count: number, callback: (err: Error | null, count: number) => void }): void␊
|
|
1053
|
+
export declare function receiveObjectOnlyFromJs(obj: { count: number, callback: (err: Error | null, count: number) => void }): void␊
|
|
1054
1054
|
␊
|
|
1055
|
-
export function receiveObjectWithClassField(object: ObjectFieldClassInstance): Bird␊
|
|
1055
|
+
export declare function receiveObjectWithClassField(object: ObjectFieldClassInstance): Bird␊
|
|
1056
1056
|
␊
|
|
1057
|
-
export function receiveStrictObject(strictObject: StrictObject): void␊
|
|
1057
|
+
export declare function receiveStrictObject(strictObject: StrictObject): void␊
|
|
1058
1058
|
␊
|
|
1059
|
-
export function receiveString(s: string): string␊
|
|
1059
|
+
export declare function receiveString(s: string): string␊
|
|
1060
1060
|
␊
|
|
1061
|
-
export function returnEither(input: number): string | number␊
|
|
1061
|
+
export declare function returnEither(input: number): string | number␊
|
|
1062
1062
|
␊
|
|
1063
|
-
export function returnEitherClass(input: number): number | JsClassForEither␊
|
|
1063
|
+
export declare function returnEitherClass(input: number): number | JsClassForEither␊
|
|
1064
1064
|
␊
|
|
1065
|
-
export function returnJsFunction(): (...args: any[]) => any␊
|
|
1065
|
+
export declare function returnJsFunction(): (...args: any[]) => any␊
|
|
1066
1066
|
␊
|
|
1067
|
-
export function returnNull(): null␊
|
|
1067
|
+
export declare function returnNull(): null␊
|
|
1068
1068
|
␊
|
|
1069
|
-
export function returnUndefined(): void␊
|
|
1069
|
+
export declare function returnUndefined(): void␊
|
|
1070
1070
|
␊
|
|
1071
|
-
export function returnUndefinedIfInvalid(input: boolean): boolean␊
|
|
1071
|
+
export declare function returnUndefinedIfInvalid(input: boolean): boolean␊
|
|
1072
1072
|
␊
|
|
1073
|
-
export function returnUndefinedIfInvalidPromise(input: Promise<boolean>): Promise<boolean>␊
|
|
1073
|
+
export declare function returnUndefinedIfInvalidPromise(input: Promise<boolean>): Promise<boolean>␊
|
|
1074
1074
|
␊
|
|
1075
|
-
export function roundtripStr(s: string): string␊
|
|
1075
|
+
export declare function roundtripStr(s: string): string␊
|
|
1076
1076
|
␊
|
|
1077
|
-
export function runScript(script: string): unknown␊
|
|
1077
|
+
export declare function runScript(script: string): unknown␊
|
|
1078
1078
|
␊
|
|
1079
|
-
export function setSymbolInObj(symbol: symbol): object␊
|
|
1079
|
+
export declare function setSymbolInObj(symbol: symbol): object␊
|
|
1080
1080
|
␊
|
|
1081
1081
|
export interface StrictObject {␊
|
|
1082
1082
|
name: string␊
|
|
1083
1083
|
}␊
|
|
1084
1084
|
␊
|
|
1085
|
-
export function sumMapping(nums: Record<string, number>): number␊
|
|
1085
|
+
export declare function sumMapping(nums: Record<string, number>): number␊
|
|
1086
1086
|
␊
|
|
1087
|
-
export function sumNums(nums: Array<number>): number␊
|
|
1087
|
+
export declare function sumNums(nums: Array<number>): number␊
|
|
1088
1088
|
␊
|
|
1089
|
-
export function testSerdeRoundtrip(data: any): any␊
|
|
1089
|
+
export declare function testSerdeRoundtrip(data: any): any␊
|
|
1090
1090
|
␊
|
|
1091
|
-
export function threadsafeFunctionClosureCapture(func: (...args: any[]) => any): void␊
|
|
1091
|
+
export declare function threadsafeFunctionClosureCapture(func: (...args: any[]) => any): void␊
|
|
1092
1092
|
␊
|
|
1093
|
-
export function threadsafeFunctionFatalMode(cb: (...args: any[]) => any): void␊
|
|
1093
|
+
export declare function threadsafeFunctionFatalMode(cb: (...args: any[]) => any): void␊
|
|
1094
1094
|
␊
|
|
1095
|
-
export function threadsafeFunctionFatalModeError(cb: (...args: any[]) => any): void␊
|
|
1095
|
+
export declare function threadsafeFunctionFatalModeError(cb: (...args: any[]) => any): void␊
|
|
1096
1096
|
␊
|
|
1097
|
-
export function threadsafeFunctionThrowError(cb: (...args: any[]) => any): void␊
|
|
1097
|
+
export declare function threadsafeFunctionThrowError(cb: (...args: any[]) => any): void␊
|
|
1098
1098
|
␊
|
|
1099
|
-
export function throwError(): void␊
|
|
1099
|
+
export declare function throwError(): void␊
|
|
1100
1100
|
␊
|
|
1101
|
-
export function toJsObj(): object␊
|
|
1101
|
+
export declare function toJsObj(): object␊
|
|
1102
1102
|
␊
|
|
1103
|
-
export function tsfnAsyncCall(func: (...args: any[]) => any): Promise<void>␊
|
|
1103
|
+
export declare function tsfnAsyncCall(func: (...args: any[]) => any): Promise<void>␊
|
|
1104
1104
|
␊
|
|
1105
|
-
export function tsfnCallWithCallback(func: (...args: any[]) => any): void␊
|
|
1105
|
+
export declare function tsfnCallWithCallback(func: (...args: any[]) => any): void␊
|
|
1106
1106
|
␊
|
|
1107
|
-
export function tsRename(a: { foo: number }): string[]␊
|
|
1107
|
+
export declare function tsRename(a: { foo: number }): string[]␊
|
|
1108
1108
|
␊
|
|
1109
1109
|
export interface TsTypeChanged {␊
|
|
1110
1110
|
typeOverride: object␊
|
|
1111
1111
|
typeOverrideOptional?: object␊
|
|
1112
1112
|
}␊
|
|
1113
1113
|
␊
|
|
1114
|
-
export function validateArray(arr: Array<number>): number␊
|
|
1114
|
+
export declare function validateArray(arr: Array<number>): number␊
|
|
1115
1115
|
␊
|
|
1116
|
-
export function validateBigint(input: bigint): bigint␊
|
|
1116
|
+
export declare function validateBigint(input: bigint): bigint␊
|
|
1117
1117
|
␊
|
|
1118
|
-
export function validateBoolean(i: boolean): boolean␊
|
|
1118
|
+
export declare function validateBoolean(i: boolean): boolean␊
|
|
1119
1119
|
␊
|
|
1120
|
-
export function validateBuffer(b: Buffer): number␊
|
|
1120
|
+
export declare function validateBuffer(b: Buffer): number␊
|
|
1121
1121
|
␊
|
|
1122
|
-
export function validateDate(d: Date): number␊
|
|
1122
|
+
export declare function validateDate(d: Date): number␊
|
|
1123
1123
|
␊
|
|
1124
|
-
export function validateDateTime(d: Date): number␊
|
|
1124
|
+
export declare function validateDateTime(d: Date): number␊
|
|
1125
1125
|
␊
|
|
1126
|
-
export function validateExternal(e: ExternalObject<number>): number␊
|
|
1126
|
+
export declare function validateExternal(e: ExternalObject<number>): number␊
|
|
1127
1127
|
␊
|
|
1128
|
-
export function validateFunction(cb: () => number): number␊
|
|
1128
|
+
export declare function validateFunction(cb: () => number): number␊
|
|
1129
1129
|
␊
|
|
1130
|
-
export function validateHashMap(input: Record<string, number>): number␊
|
|
1130
|
+
export declare function validateHashMap(input: Record<string, number>): number␊
|
|
1131
1131
|
␊
|
|
1132
|
-
export function validateNull(i: null): boolean␊
|
|
1132
|
+
export declare function validateNull(i: null): boolean␊
|
|
1133
1133
|
␊
|
|
1134
|
-
export function validateNumber(i: number): number␊
|
|
1134
|
+
export declare function validateNumber(i: number): number␊
|
|
1135
1135
|
␊
|
|
1136
|
-
export function validateOptional(input1?: string | undefined | null, input2?: boolean | undefined | null): boolean␊
|
|
1136
|
+
export declare function validateOptional(input1?: string | undefined | null, input2?: boolean | undefined | null): boolean␊
|
|
1137
1137
|
␊
|
|
1138
|
-
export function validatePromise(p: Promise<number>): Promise<number>␊
|
|
1138
|
+
export declare function validatePromise(p: Promise<number>): Promise<number>␊
|
|
1139
1139
|
␊
|
|
1140
|
-
export function validateString(s: string): string␊
|
|
1140
|
+
export declare function validateString(s: string): string␊
|
|
1141
1141
|
␊
|
|
1142
|
-
export function validateSymbol(s: symbol): boolean␊
|
|
1142
|
+
export declare function validateSymbol(s: symbol): boolean␊
|
|
1143
1143
|
␊
|
|
1144
|
-
export function validateTypedArray(input: Uint8Array): number␊
|
|
1144
|
+
export declare function validateTypedArray(input: Uint8Array): number␊
|
|
1145
1145
|
␊
|
|
1146
|
-
export function validateUndefined(i: undefined): boolean␊
|
|
1146
|
+
export declare function validateUndefined(i: undefined): boolean␊
|
|
1147
1147
|
␊
|
|
1148
|
-
export function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>␊
|
|
1148
|
+
export declare function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>␊
|
|
1149
1149
|
␊
|
|
1150
|
-
export function withoutAbortController(a: number, b: number): Promise<number>␊
|
|
1150
|
+
export declare function withoutAbortController(a: number, b: number): Promise<number>␊
|
|
1151
1151
|
␊
|
|
1152
|
-
export function xxh64Alias(input: Buffer): bigint␊
|
|
1152
|
+
export declare function xxh64Alias(input: Buffer): bigint␊
|
|
1153
1153
|
␊
|
|
1154
|
-
export namespace xxh2 {␊
|
|
1154
|
+
export declare namespace xxh2 {␊
|
|
1155
1155
|
export function xxh2Plus(a: number, b: number): number␊
|
|
1156
1156
|
export function xxh3Xxh64Alias(input: Buffer): bigint␊
|
|
1157
1157
|
}␊
|
|
1158
1158
|
␊
|
|
1159
|
-
export namespace xxh3 {␊
|
|
1159
|
+
export declare namespace xxh3 {␊
|
|
1160
1160
|
/** Xxh3 class */␊
|
|
1161
1161
|
export class Xxh3 {␊
|
|
1162
1162
|
constructor()␊
|