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