@powerlines/plugin-typedoc 0.3.0 → 0.5.0

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.
@@ -1,2867 +0,0 @@
1
- import { Format } from '@storm-software/build-tools/types';
2
- import { LogLevelLabel } from '@storm-software/config-tools/types';
3
- import { StormWorkspaceConfig } from '@storm-software/config/types';
4
- import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
5
- import { AssetGlob } from '@stryke/types/file';
6
- import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
7
- import { EnvPaths } from '@stryke/env/get-env-paths';
8
- import { PackageJson } from '@stryke/types/package-json';
9
- import { Jiti } from 'jiti';
10
- import { ReflectionClass } from '@deepkit/type';
11
- import { Range } from 'semver';
12
- import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
13
- import * as $ from '@stryke/capnp';
14
- import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
15
- import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
16
- import ts from 'typescript';
17
- import { Volume } from 'memfs';
18
- import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
19
- import { IUnionFs } from 'unionfs';
20
- import { ArrayValues } from '@stryke/types/array';
21
- import { ProjectReflection, TypeDocOptions, Application } from 'typedoc';
22
-
23
- declare const ReflectionKind: {
24
- readonly NEVER: 0;
25
- readonly ANY: 1;
26
- readonly UNKNOWN: 2;
27
- readonly VOID: 3;
28
- readonly OBJECT: 4;
29
- readonly STRING: 5;
30
- readonly NUMBER: 6;
31
- readonly BOOLEAN: 7;
32
- readonly SYMBOL: 8;
33
- readonly BIGINT: 9;
34
- readonly NULL: 10;
35
- readonly UNDEFINED: 11;
36
- readonly REGEXP: 12;
37
- readonly LITERAL: 13;
38
- readonly TEMPLATE_LITERAL: 14;
39
- readonly PROPERTY: 15;
40
- readonly METHOD: 16;
41
- readonly FUNCTION: 17;
42
- readonly PARAMETER: 18;
43
- readonly PROMISE: 19;
44
- readonly CLASS: 20;
45
- readonly TYPE_PARAMETER: 21;
46
- readonly ENUM: 22;
47
- readonly UNION: 23;
48
- readonly INTERSECTION: 24;
49
- readonly ARRAY: 25;
50
- readonly TUPLE: 26;
51
- readonly TUPLE_MEMBER: 27;
52
- readonly ENUM_MEMBER: 28;
53
- readonly REST: 29;
54
- readonly OBJECT_LITERAL: 30;
55
- readonly INDEX_SIGNATURE: 31;
56
- readonly PROPERTY_SIGNATURE: 32;
57
- readonly METHOD_SIGNATURE: 33;
58
- readonly INFER: 34;
59
- readonly CALL_SIGNATURE: 35;
60
- };
61
- type ReflectionKind = (typeof ReflectionKind)[keyof typeof ReflectionKind];
62
- declare const ReflectionVisibility: {
63
- readonly PUBLIC: 0;
64
- readonly PROTECTED: 1;
65
- readonly PRIVATE: 2;
66
- };
67
- type ReflectionVisibility = (typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
68
- declare class TagsReflection extends $.Struct {
69
- static readonly _capnp: {
70
- displayName: string;
71
- id: string;
72
- size: $.ObjectSize;
73
- };
74
- _adoptAlias(value: $.Orphan<$.List<string>>): void;
75
- _disownAlias(): $.Orphan<$.List<string>>;
76
- get alias(): $.List<string>;
77
- _hasAlias(): boolean;
78
- _initAlias(length: number): $.List<string>;
79
- set alias(value: $.List<string>);
80
- get title(): string;
81
- set title(value: string);
82
- get hidden(): boolean;
83
- set hidden(value: boolean);
84
- get readonly(): boolean;
85
- set readonly(value: boolean);
86
- get ignore(): boolean;
87
- set ignore(value: boolean);
88
- get internal(): boolean;
89
- set internal(value: boolean);
90
- _adoptPermission(value: $.Orphan<$.List<string>>): void;
91
- _disownPermission(): $.Orphan<$.List<string>>;
92
- get permission(): $.List<string>;
93
- _hasPermission(): boolean;
94
- _initPermission(length: number): $.List<string>;
95
- set permission(value: $.List<string>);
96
- get domain(): string;
97
- set domain(value: string);
98
- toString(): string;
99
- }
100
- declare const DefaultValueReflection_Value_Which: {
101
- readonly UNDEFINED: 0;
102
- readonly BOOLEAN: 1;
103
- readonly INTEGER: 2;
104
- readonly FLOAT: 3;
105
- readonly STRING: 4;
106
- };
107
- type DefaultValueReflection_Value_Which = (typeof DefaultValueReflection_Value_Which)[keyof typeof DefaultValueReflection_Value_Which];
108
- declare class DefaultValueReflection_Value extends $.Struct {
109
- static readonly UNDEFINED: 0;
110
- static readonly BOOLEAN: 1;
111
- static readonly INTEGER: 2;
112
- static readonly FLOAT: 3;
113
- static readonly STRING: 4;
114
- static readonly _capnp: {
115
- displayName: string;
116
- id: string;
117
- size: $.ObjectSize;
118
- };
119
- get _isUndefined(): boolean;
120
- set undefined(_: true);
121
- get boolean(): boolean;
122
- get _isBoolean(): boolean;
123
- set boolean(value: boolean);
124
- get integer(): number;
125
- get _isInteger(): boolean;
126
- set integer(value: number);
127
- get float(): number;
128
- get _isFloat(): boolean;
129
- set float(value: number);
130
- get string(): string;
131
- get _isString(): boolean;
132
- set string(value: string);
133
- toString(): string;
134
- which(): DefaultValueReflection_Value_Which;
135
- }
136
- declare class DefaultValueReflection extends $.Struct {
137
- static readonly _capnp: {
138
- displayName: string;
139
- id: string;
140
- size: $.ObjectSize;
141
- };
142
- get value(): DefaultValueReflection_Value;
143
- _initValue(): DefaultValueReflection_Value;
144
- toString(): string;
145
- }
146
- declare class SerializedTypeReference extends $.Struct {
147
- static readonly _capnp: {
148
- displayName: string;
149
- id: string;
150
- size: $.ObjectSize;
151
- };
152
- get id(): number;
153
- set id(value: number);
154
- toString(): string;
155
- }
156
- declare class IndexAccessOrigin extends $.Struct {
157
- static readonly _capnp: {
158
- displayName: string;
159
- id: string;
160
- size: $.ObjectSize;
161
- };
162
- _adoptContainer(value: $.Orphan<SerializedTypeReference>): void;
163
- _disownContainer(): $.Orphan<SerializedTypeReference>;
164
- get container(): SerializedTypeReference;
165
- _hasContainer(): boolean;
166
- _initContainer(): SerializedTypeReference;
167
- set container(value: SerializedTypeReference);
168
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
169
- _disownIndex(): $.Orphan<SerializedTypeReference>;
170
- get index(): SerializedTypeReference;
171
- _hasIndex(): boolean;
172
- _initIndex(): SerializedTypeReference;
173
- set index(value: SerializedTypeReference);
174
- toString(): string;
175
- }
176
- declare class SerializedTypeObjectLiteral extends $.Struct {
177
- static readonly _capnp: {
178
- displayName: string;
179
- id: string;
180
- size: $.ObjectSize;
181
- };
182
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
183
- static _Decorators: $.ListCtor<SerializedTypeReference>;
184
- static _Types: $.ListCtor<SerializedTypeReference>;
185
- get typeName(): string;
186
- set typeName(value: string);
187
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
188
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
189
- get typeArguments(): $.List<SerializedTypeReference>;
190
- _hasTypeArguments(): boolean;
191
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
192
- set typeArguments(value: $.List<SerializedTypeReference>);
193
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
194
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
195
- get indexAccessOrigin(): IndexAccessOrigin;
196
- _hasIndexAccessOrigin(): boolean;
197
- _initIndexAccessOrigin(): IndexAccessOrigin;
198
- set indexAccessOrigin(value: IndexAccessOrigin);
199
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
200
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
201
- get decorators(): $.List<SerializedTypeReference>;
202
- _hasDecorators(): boolean;
203
- _initDecorators(length: number): $.List<SerializedTypeReference>;
204
- set decorators(value: $.List<SerializedTypeReference>);
205
- get kind(): ReflectionKind;
206
- set kind(value: ReflectionKind);
207
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
208
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
209
- get types(): $.List<SerializedTypeReference>;
210
- _hasTypes(): boolean;
211
- _initTypes(length: number): $.List<SerializedTypeReference>;
212
- set types(value: $.List<SerializedTypeReference>);
213
- _adoptTags(value: $.Orphan<TagsReflection>): void;
214
- _disownTags(): $.Orphan<TagsReflection>;
215
- get tags(): TagsReflection;
216
- _hasTags(): boolean;
217
- _initTags(): TagsReflection;
218
- set tags(value: TagsReflection);
219
- toString(): string;
220
- }
221
- declare class SerializedTypeClassType extends $.Struct {
222
- static readonly _capnp: {
223
- displayName: string;
224
- id: string;
225
- size: $.ObjectSize;
226
- };
227
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
228
- static _Decorators: $.ListCtor<SerializedTypeReference>;
229
- static _ExtendsArguments: $.ListCtor<SerializedTypeReference>;
230
- static _Arguments: $.ListCtor<SerializedTypeReference>;
231
- static _Types: $.ListCtor<SerializedTypeReference>;
232
- get typeName(): string;
233
- set typeName(value: string);
234
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
235
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
236
- get typeArguments(): $.List<SerializedTypeReference>;
237
- _hasTypeArguments(): boolean;
238
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
239
- set typeArguments(value: $.List<SerializedTypeReference>);
240
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
241
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
242
- get indexAccessOrigin(): IndexAccessOrigin;
243
- _hasIndexAccessOrigin(): boolean;
244
- _initIndexAccessOrigin(): IndexAccessOrigin;
245
- set indexAccessOrigin(value: IndexAccessOrigin);
246
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
247
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
248
- get decorators(): $.List<SerializedTypeReference>;
249
- _hasDecorators(): boolean;
250
- _initDecorators(length: number): $.List<SerializedTypeReference>;
251
- set decorators(value: $.List<SerializedTypeReference>);
252
- get kind(): ReflectionKind;
253
- set kind(value: ReflectionKind);
254
- get name(): string;
255
- set name(value: string);
256
- get globalObject(): boolean;
257
- set globalObject(value: boolean);
258
- get classType(): string;
259
- set classType(value: string);
260
- _adoptExtendsArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
261
- _disownExtendsArguments(): $.Orphan<$.List<SerializedTypeReference>>;
262
- get extendsArguments(): $.List<SerializedTypeReference>;
263
- _hasExtendsArguments(): boolean;
264
- _initExtendsArguments(length: number): $.List<SerializedTypeReference>;
265
- set extendsArguments(value: $.List<SerializedTypeReference>);
266
- _adoptArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
267
- _disownArguments(): $.Orphan<$.List<SerializedTypeReference>>;
268
- get arguments(): $.List<SerializedTypeReference>;
269
- _hasArguments(): boolean;
270
- _initArguments(length: number): $.List<SerializedTypeReference>;
271
- set arguments(value: $.List<SerializedTypeReference>);
272
- _adoptSuperClass(value: $.Orphan<SerializedTypeReference>): void;
273
- _disownSuperClass(): $.Orphan<SerializedTypeReference>;
274
- get superClass(): SerializedTypeReference;
275
- _hasSuperClass(): boolean;
276
- _initSuperClass(): SerializedTypeReference;
277
- set superClass(value: SerializedTypeReference);
278
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
279
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
280
- get types(): $.List<SerializedTypeReference>;
281
- _hasTypes(): boolean;
282
- _initTypes(length: number): $.List<SerializedTypeReference>;
283
- set types(value: $.List<SerializedTypeReference>);
284
- _adoptTags(value: $.Orphan<TagsReflection>): void;
285
- _disownTags(): $.Orphan<TagsReflection>;
286
- get tags(): TagsReflection;
287
- _hasTags(): boolean;
288
- _initTags(): TagsReflection;
289
- set tags(value: TagsReflection);
290
- toString(): string;
291
- }
292
- declare class SerializedTypeParameter extends $.Struct {
293
- static readonly _capnp: {
294
- displayName: string;
295
- id: string;
296
- size: $.ObjectSize;
297
- };
298
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
299
- static _Decorators: $.ListCtor<SerializedTypeReference>;
300
- get typeName(): string;
301
- set typeName(value: string);
302
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
303
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
304
- get typeArguments(): $.List<SerializedTypeReference>;
305
- _hasTypeArguments(): boolean;
306
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
307
- set typeArguments(value: $.List<SerializedTypeReference>);
308
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
309
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
310
- get indexAccessOrigin(): IndexAccessOrigin;
311
- _hasIndexAccessOrigin(): boolean;
312
- _initIndexAccessOrigin(): IndexAccessOrigin;
313
- set indexAccessOrigin(value: IndexAccessOrigin);
314
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
315
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
316
- get decorators(): $.List<SerializedTypeReference>;
317
- _hasDecorators(): boolean;
318
- _initDecorators(length: number): $.List<SerializedTypeReference>;
319
- set decorators(value: $.List<SerializedTypeReference>);
320
- get kind(): ReflectionKind;
321
- set kind(value: ReflectionKind);
322
- get name(): string;
323
- set name(value: string);
324
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
325
- _disownType(): $.Orphan<SerializedTypeReference>;
326
- get type(): SerializedTypeReference;
327
- _hasType(): boolean;
328
- _initType(): SerializedTypeReference;
329
- set type(value: SerializedTypeReference);
330
- get visibility(): ReflectionVisibility;
331
- set visibility(value: ReflectionVisibility);
332
- get readonly(): boolean;
333
- set readonly(value: boolean);
334
- get optional(): boolean;
335
- set optional(value: boolean);
336
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
337
- _disownDefault(): $.Orphan<DefaultValueReflection>;
338
- get default(): DefaultValueReflection;
339
- _hasDefault(): boolean;
340
- _initDefault(): DefaultValueReflection;
341
- set default(value: DefaultValueReflection);
342
- _adoptTags(value: $.Orphan<TagsReflection>): void;
343
- _disownTags(): $.Orphan<TagsReflection>;
344
- get tags(): TagsReflection;
345
- _hasTags(): boolean;
346
- _initTags(): TagsReflection;
347
- set tags(value: TagsReflection);
348
- toString(): string;
349
- }
350
- declare class SerializedTypeMethod extends $.Struct {
351
- static readonly _capnp: {
352
- displayName: string;
353
- id: string;
354
- size: $.ObjectSize;
355
- };
356
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
357
- static _Decorators: $.ListCtor<SerializedTypeReference>;
358
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
359
- get typeName(): string;
360
- set typeName(value: string);
361
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
362
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
363
- get typeArguments(): $.List<SerializedTypeReference>;
364
- _hasTypeArguments(): boolean;
365
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
366
- set typeArguments(value: $.List<SerializedTypeReference>);
367
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
368
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
369
- get indexAccessOrigin(): IndexAccessOrigin;
370
- _hasIndexAccessOrigin(): boolean;
371
- _initIndexAccessOrigin(): IndexAccessOrigin;
372
- set indexAccessOrigin(value: IndexAccessOrigin);
373
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
374
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
375
- get decorators(): $.List<SerializedTypeReference>;
376
- _hasDecorators(): boolean;
377
- _initDecorators(length: number): $.List<SerializedTypeReference>;
378
- set decorators(value: $.List<SerializedTypeReference>);
379
- get visibility(): ReflectionVisibility;
380
- set visibility(value: ReflectionVisibility);
381
- get abstract(): boolean;
382
- set abstract(value: boolean);
383
- get optional(): boolean;
384
- set optional(value: boolean);
385
- get readonly(): boolean;
386
- set readonly(value: boolean);
387
- _adoptTags(value: $.Orphan<TagsReflection>): void;
388
- _disownTags(): $.Orphan<TagsReflection>;
389
- get tags(): TagsReflection;
390
- _hasTags(): boolean;
391
- _initTags(): TagsReflection;
392
- set tags(value: TagsReflection);
393
- get kind(): ReflectionKind;
394
- set kind(value: ReflectionKind);
395
- get name(): string;
396
- set name(value: string);
397
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
398
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
399
- get parameters(): $.List<SerializedTypeParameter>;
400
- _hasParameters(): boolean;
401
- _initParameters(length: number): $.List<SerializedTypeParameter>;
402
- set parameters(value: $.List<SerializedTypeParameter>);
403
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
404
- _disownReturn(): $.Orphan<SerializedTypeReference>;
405
- get return(): SerializedTypeReference;
406
- _hasReturn(): boolean;
407
- _initReturn(): SerializedTypeReference;
408
- set return(value: SerializedTypeReference);
409
- toString(): string;
410
- }
411
- declare class SerializedTypeProperty extends $.Struct {
412
- static readonly _capnp: {
413
- displayName: string;
414
- id: string;
415
- size: $.ObjectSize;
416
- };
417
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
418
- static _Decorators: $.ListCtor<SerializedTypeReference>;
419
- get typeName(): string;
420
- set typeName(value: string);
421
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
422
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
423
- get typeArguments(): $.List<SerializedTypeReference>;
424
- _hasTypeArguments(): boolean;
425
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
426
- set typeArguments(value: $.List<SerializedTypeReference>);
427
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
428
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
429
- get indexAccessOrigin(): IndexAccessOrigin;
430
- _hasIndexAccessOrigin(): boolean;
431
- _initIndexAccessOrigin(): IndexAccessOrigin;
432
- set indexAccessOrigin(value: IndexAccessOrigin);
433
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
434
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
435
- get decorators(): $.List<SerializedTypeReference>;
436
- _hasDecorators(): boolean;
437
- _initDecorators(length: number): $.List<SerializedTypeReference>;
438
- set decorators(value: $.List<SerializedTypeReference>);
439
- get visibility(): ReflectionVisibility;
440
- set visibility(value: ReflectionVisibility);
441
- get abstract(): boolean;
442
- set abstract(value: boolean);
443
- get optional(): boolean;
444
- set optional(value: boolean);
445
- get readonly(): boolean;
446
- set readonly(value: boolean);
447
- _adoptTags(value: $.Orphan<TagsReflection>): void;
448
- _disownTags(): $.Orphan<TagsReflection>;
449
- get tags(): TagsReflection;
450
- _hasTags(): boolean;
451
- _initTags(): TagsReflection;
452
- set tags(value: TagsReflection);
453
- get kind(): ReflectionKind;
454
- set kind(value: ReflectionKind);
455
- get name(): string;
456
- set name(value: string);
457
- get description(): string;
458
- set description(value: string);
459
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
460
- _disownType(): $.Orphan<SerializedTypeReference>;
461
- get type(): SerializedTypeReference;
462
- _hasType(): boolean;
463
- _initType(): SerializedTypeReference;
464
- set type(value: SerializedTypeReference);
465
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
466
- _disownDefault(): $.Orphan<DefaultValueReflection>;
467
- get default(): DefaultValueReflection;
468
- _hasDefault(): boolean;
469
- _initDefault(): DefaultValueReflection;
470
- set default(value: DefaultValueReflection);
471
- toString(): string;
472
- }
473
- declare class SerializedTypeFunction extends $.Struct {
474
- static readonly _capnp: {
475
- displayName: string;
476
- id: string;
477
- size: $.ObjectSize;
478
- };
479
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
480
- static _Decorators: $.ListCtor<SerializedTypeReference>;
481
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
482
- get typeName(): string;
483
- set typeName(value: string);
484
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
485
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
486
- get typeArguments(): $.List<SerializedTypeReference>;
487
- _hasTypeArguments(): boolean;
488
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
489
- set typeArguments(value: $.List<SerializedTypeReference>);
490
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
491
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
492
- get indexAccessOrigin(): IndexAccessOrigin;
493
- _hasIndexAccessOrigin(): boolean;
494
- _initIndexAccessOrigin(): IndexAccessOrigin;
495
- set indexAccessOrigin(value: IndexAccessOrigin);
496
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
497
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
498
- get decorators(): $.List<SerializedTypeReference>;
499
- _hasDecorators(): boolean;
500
- _initDecorators(length: number): $.List<SerializedTypeReference>;
501
- set decorators(value: $.List<SerializedTypeReference>);
502
- get visibility(): ReflectionVisibility;
503
- set visibility(value: ReflectionVisibility);
504
- get abstract(): boolean;
505
- set abstract(value: boolean);
506
- get optional(): boolean;
507
- set optional(value: boolean);
508
- get readonly(): boolean;
509
- set readonly(value: boolean);
510
- _adoptTags(value: $.Orphan<TagsReflection>): void;
511
- _disownTags(): $.Orphan<TagsReflection>;
512
- get tags(): TagsReflection;
513
- _hasTags(): boolean;
514
- _initTags(): TagsReflection;
515
- set tags(value: TagsReflection);
516
- get kind(): ReflectionKind;
517
- set kind(value: ReflectionKind);
518
- get name(): string;
519
- set name(value: string);
520
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
521
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
522
- get parameters(): $.List<SerializedTypeParameter>;
523
- _hasParameters(): boolean;
524
- _initParameters(length: number): $.List<SerializedTypeParameter>;
525
- set parameters(value: $.List<SerializedTypeParameter>);
526
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
527
- _disownReturn(): $.Orphan<SerializedTypeReference>;
528
- get return(): SerializedTypeReference;
529
- _hasReturn(): boolean;
530
- _initReturn(): SerializedTypeReference;
531
- set return(value: SerializedTypeReference);
532
- toString(): string;
533
- }
534
- declare class SerializedTypePromise extends $.Struct {
535
- static readonly _capnp: {
536
- displayName: string;
537
- id: string;
538
- size: $.ObjectSize;
539
- };
540
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
541
- static _Decorators: $.ListCtor<SerializedTypeReference>;
542
- get typeName(): string;
543
- set typeName(value: string);
544
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
545
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
546
- get typeArguments(): $.List<SerializedTypeReference>;
547
- _hasTypeArguments(): boolean;
548
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
549
- set typeArguments(value: $.List<SerializedTypeReference>);
550
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
551
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
552
- get indexAccessOrigin(): IndexAccessOrigin;
553
- _hasIndexAccessOrigin(): boolean;
554
- _initIndexAccessOrigin(): IndexAccessOrigin;
555
- set indexAccessOrigin(value: IndexAccessOrigin);
556
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
557
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
558
- get decorators(): $.List<SerializedTypeReference>;
559
- _hasDecorators(): boolean;
560
- _initDecorators(length: number): $.List<SerializedTypeReference>;
561
- set decorators(value: $.List<SerializedTypeReference>);
562
- get visibility(): ReflectionVisibility;
563
- set visibility(value: ReflectionVisibility);
564
- get abstract(): boolean;
565
- set abstract(value: boolean);
566
- toString(): string;
567
- }
568
- declare class SerializedTypeEnumEntry extends $.Struct {
569
- static readonly _capnp: {
570
- displayName: string;
571
- id: string;
572
- size: $.ObjectSize;
573
- };
574
- get name(): string;
575
- set name(value: string);
576
- get value(): string;
577
- set value(value: string);
578
- toString(): string;
579
- }
580
- declare class SerializedTypeEnum extends $.Struct {
581
- static readonly _capnp: {
582
- displayName: string;
583
- id: string;
584
- size: $.ObjectSize;
585
- };
586
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
587
- static _Decorators: $.ListCtor<SerializedTypeReference>;
588
- static _EnumEntries: $.ListCtor<SerializedTypeEnumEntry>;
589
- get typeName(): string;
590
- set typeName(value: string);
591
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
592
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
593
- get typeArguments(): $.List<SerializedTypeReference>;
594
- _hasTypeArguments(): boolean;
595
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
596
- set typeArguments(value: $.List<SerializedTypeReference>);
597
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
598
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
599
- get indexAccessOrigin(): IndexAccessOrigin;
600
- _hasIndexAccessOrigin(): boolean;
601
- _initIndexAccessOrigin(): IndexAccessOrigin;
602
- set indexAccessOrigin(value: IndexAccessOrigin);
603
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
604
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
605
- get decorators(): $.List<SerializedTypeReference>;
606
- _hasDecorators(): boolean;
607
- _initDecorators(length: number): $.List<SerializedTypeReference>;
608
- set decorators(value: $.List<SerializedTypeReference>);
609
- get kind(): ReflectionKind;
610
- set kind(value: ReflectionKind);
611
- _adoptEnumEntries(value: $.Orphan<$.List<SerializedTypeEnumEntry>>): void;
612
- _disownEnumEntries(): $.Orphan<$.List<SerializedTypeEnumEntry>>;
613
- get enumEntries(): $.List<SerializedTypeEnumEntry>;
614
- _hasEnumEntries(): boolean;
615
- _initEnumEntries(length: number): $.List<SerializedTypeEnumEntry>;
616
- set enumEntries(value: $.List<SerializedTypeEnumEntry>);
617
- _adoptValues(value: $.Orphan<$.List<string>>): void;
618
- _disownValues(): $.Orphan<$.List<string>>;
619
- get values(): $.List<string>;
620
- _hasValues(): boolean;
621
- _initValues(length: number): $.List<string>;
622
- set values(value: $.List<string>);
623
- _adoptIndexType(value: $.Orphan<SerializedTypeReference>): void;
624
- _disownIndexType(): $.Orphan<SerializedTypeReference>;
625
- get indexType(): SerializedTypeReference;
626
- _hasIndexType(): boolean;
627
- _initIndexType(): SerializedTypeReference;
628
- set indexType(value: SerializedTypeReference);
629
- _adoptTags(value: $.Orphan<TagsReflection>): void;
630
- _disownTags(): $.Orphan<TagsReflection>;
631
- get tags(): TagsReflection;
632
- _hasTags(): boolean;
633
- _initTags(): TagsReflection;
634
- set tags(value: TagsReflection);
635
- toString(): string;
636
- }
637
- declare class SerializedTypeUnion extends $.Struct {
638
- static readonly _capnp: {
639
- displayName: string;
640
- id: string;
641
- size: $.ObjectSize;
642
- };
643
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
644
- static _Decorators: $.ListCtor<SerializedTypeReference>;
645
- static _Types: $.ListCtor<SerializedTypeReference>;
646
- get typeName(): string;
647
- set typeName(value: string);
648
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
649
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
650
- get typeArguments(): $.List<SerializedTypeReference>;
651
- _hasTypeArguments(): boolean;
652
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
653
- set typeArguments(value: $.List<SerializedTypeReference>);
654
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
655
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
656
- get indexAccessOrigin(): IndexAccessOrigin;
657
- _hasIndexAccessOrigin(): boolean;
658
- _initIndexAccessOrigin(): IndexAccessOrigin;
659
- set indexAccessOrigin(value: IndexAccessOrigin);
660
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
661
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
662
- get decorators(): $.List<SerializedTypeReference>;
663
- _hasDecorators(): boolean;
664
- _initDecorators(length: number): $.List<SerializedTypeReference>;
665
- set decorators(value: $.List<SerializedTypeReference>);
666
- get kind(): ReflectionKind;
667
- set kind(value: ReflectionKind);
668
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
669
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
670
- get types(): $.List<SerializedTypeReference>;
671
- _hasTypes(): boolean;
672
- _initTypes(length: number): $.List<SerializedTypeReference>;
673
- set types(value: $.List<SerializedTypeReference>);
674
- toString(): string;
675
- }
676
- declare class SerializedTypeIntersection extends $.Struct {
677
- static readonly _capnp: {
678
- displayName: string;
679
- id: string;
680
- size: $.ObjectSize;
681
- };
682
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
683
- static _Decorators: $.ListCtor<SerializedTypeReference>;
684
- static _Types: $.ListCtor<SerializedTypeReference>;
685
- get typeName(): string;
686
- set typeName(value: string);
687
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
688
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
689
- get typeArguments(): $.List<SerializedTypeReference>;
690
- _hasTypeArguments(): boolean;
691
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
692
- set typeArguments(value: $.List<SerializedTypeReference>);
693
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
694
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
695
- get indexAccessOrigin(): IndexAccessOrigin;
696
- _hasIndexAccessOrigin(): boolean;
697
- _initIndexAccessOrigin(): IndexAccessOrigin;
698
- set indexAccessOrigin(value: IndexAccessOrigin);
699
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
700
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
701
- get decorators(): $.List<SerializedTypeReference>;
702
- _hasDecorators(): boolean;
703
- _initDecorators(length: number): $.List<SerializedTypeReference>;
704
- set decorators(value: $.List<SerializedTypeReference>);
705
- get kind(): ReflectionKind;
706
- set kind(value: ReflectionKind);
707
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
708
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
709
- get types(): $.List<SerializedTypeReference>;
710
- _hasTypes(): boolean;
711
- _initTypes(length: number): $.List<SerializedTypeReference>;
712
- set types(value: $.List<SerializedTypeReference>);
713
- toString(): string;
714
- }
715
- declare class SerializedTypeArray extends $.Struct {
716
- static readonly _capnp: {
717
- displayName: string;
718
- id: string;
719
- size: $.ObjectSize;
720
- };
721
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
722
- static _Decorators: $.ListCtor<SerializedTypeReference>;
723
- get typeName(): string;
724
- set typeName(value: string);
725
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
726
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
727
- get typeArguments(): $.List<SerializedTypeReference>;
728
- _hasTypeArguments(): boolean;
729
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
730
- set typeArguments(value: $.List<SerializedTypeReference>);
731
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
732
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
733
- get indexAccessOrigin(): IndexAccessOrigin;
734
- _hasIndexAccessOrigin(): boolean;
735
- _initIndexAccessOrigin(): IndexAccessOrigin;
736
- set indexAccessOrigin(value: IndexAccessOrigin);
737
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
738
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
739
- get decorators(): $.List<SerializedTypeReference>;
740
- _hasDecorators(): boolean;
741
- _initDecorators(length: number): $.List<SerializedTypeReference>;
742
- set decorators(value: $.List<SerializedTypeReference>);
743
- get kind(): ReflectionKind;
744
- set kind(value: ReflectionKind);
745
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
746
- _disownType(): $.Orphan<SerializedTypeReference>;
747
- get type(): SerializedTypeReference;
748
- _hasType(): boolean;
749
- _initType(): SerializedTypeReference;
750
- set type(value: SerializedTypeReference);
751
- _adoptTags(value: $.Orphan<TagsReflection>): void;
752
- _disownTags(): $.Orphan<TagsReflection>;
753
- get tags(): TagsReflection;
754
- _hasTags(): boolean;
755
- _initTags(): TagsReflection;
756
- set tags(value: TagsReflection);
757
- toString(): string;
758
- }
759
- declare class SerializedTypeIndexSignature extends $.Struct {
760
- static readonly _capnp: {
761
- displayName: string;
762
- id: string;
763
- size: $.ObjectSize;
764
- };
765
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
766
- static _Decorators: $.ListCtor<SerializedTypeReference>;
767
- get typeName(): string;
768
- set typeName(value: string);
769
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
770
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
771
- get typeArguments(): $.List<SerializedTypeReference>;
772
- _hasTypeArguments(): boolean;
773
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
774
- set typeArguments(value: $.List<SerializedTypeReference>);
775
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
776
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
777
- get indexAccessOrigin(): IndexAccessOrigin;
778
- _hasIndexAccessOrigin(): boolean;
779
- _initIndexAccessOrigin(): IndexAccessOrigin;
780
- set indexAccessOrigin(value: IndexAccessOrigin);
781
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
782
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
783
- get decorators(): $.List<SerializedTypeReference>;
784
- _hasDecorators(): boolean;
785
- _initDecorators(length: number): $.List<SerializedTypeReference>;
786
- set decorators(value: $.List<SerializedTypeReference>);
787
- get kind(): ReflectionKind;
788
- set kind(value: ReflectionKind);
789
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
790
- _disownIndex(): $.Orphan<SerializedTypeReference>;
791
- get index(): SerializedTypeReference;
792
- _hasIndex(): boolean;
793
- _initIndex(): SerializedTypeReference;
794
- set index(value: SerializedTypeReference);
795
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
796
- _disownType(): $.Orphan<SerializedTypeReference>;
797
- get type(): SerializedTypeReference;
798
- _hasType(): boolean;
799
- _initType(): SerializedTypeReference;
800
- set type(value: SerializedTypeReference);
801
- toString(): string;
802
- }
803
- declare class SerializedTypePropertySignature extends $.Struct {
804
- static readonly _capnp: {
805
- displayName: string;
806
- id: string;
807
- size: $.ObjectSize;
808
- };
809
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
810
- static _Decorators: $.ListCtor<SerializedTypeReference>;
811
- get typeName(): string;
812
- set typeName(value: string);
813
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
814
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
815
- get typeArguments(): $.List<SerializedTypeReference>;
816
- _hasTypeArguments(): boolean;
817
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
818
- set typeArguments(value: $.List<SerializedTypeReference>);
819
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
820
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
821
- get indexAccessOrigin(): IndexAccessOrigin;
822
- _hasIndexAccessOrigin(): boolean;
823
- _initIndexAccessOrigin(): IndexAccessOrigin;
824
- set indexAccessOrigin(value: IndexAccessOrigin);
825
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
826
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
827
- get decorators(): $.List<SerializedTypeReference>;
828
- _hasDecorators(): boolean;
829
- _initDecorators(length: number): $.List<SerializedTypeReference>;
830
- set decorators(value: $.List<SerializedTypeReference>);
831
- get kind(): ReflectionKind;
832
- set kind(value: ReflectionKind);
833
- get name(): string;
834
- set name(value: string);
835
- get optional(): boolean;
836
- set optional(value: boolean);
837
- get readonly(): boolean;
838
- set readonly(value: boolean);
839
- get description(): string;
840
- set description(value: string);
841
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
842
- _disownDefault(): $.Orphan<DefaultValueReflection>;
843
- get default(): DefaultValueReflection;
844
- _hasDefault(): boolean;
845
- _initDefault(): DefaultValueReflection;
846
- set default(value: DefaultValueReflection);
847
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
848
- _disownType(): $.Orphan<SerializedTypeReference>;
849
- get type(): SerializedTypeReference;
850
- _hasType(): boolean;
851
- _initType(): SerializedTypeReference;
852
- set type(value: SerializedTypeReference);
853
- _adoptTags(value: $.Orphan<TagsReflection>): void;
854
- _disownTags(): $.Orphan<TagsReflection>;
855
- get tags(): TagsReflection;
856
- _hasTags(): boolean;
857
- _initTags(): TagsReflection;
858
- set tags(value: TagsReflection);
859
- toString(): string;
860
- }
861
- declare class SerializedTypeMethodSignature extends $.Struct {
862
- static readonly _capnp: {
863
- displayName: string;
864
- id: string;
865
- size: $.ObjectSize;
866
- };
867
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
868
- static _Decorators: $.ListCtor<SerializedTypeReference>;
869
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
870
- get typeName(): string;
871
- set typeName(value: string);
872
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
873
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
874
- get typeArguments(): $.List<SerializedTypeReference>;
875
- _hasTypeArguments(): boolean;
876
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
877
- set typeArguments(value: $.List<SerializedTypeReference>);
878
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
879
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
880
- get indexAccessOrigin(): IndexAccessOrigin;
881
- _hasIndexAccessOrigin(): boolean;
882
- _initIndexAccessOrigin(): IndexAccessOrigin;
883
- set indexAccessOrigin(value: IndexAccessOrigin);
884
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
885
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
886
- get decorators(): $.List<SerializedTypeReference>;
887
- _hasDecorators(): boolean;
888
- _initDecorators(length: number): $.List<SerializedTypeReference>;
889
- set decorators(value: $.List<SerializedTypeReference>);
890
- get kind(): ReflectionKind;
891
- set kind(value: ReflectionKind);
892
- get name(): string;
893
- set name(value: string);
894
- get optional(): boolean;
895
- set optional(value: boolean);
896
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
897
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
898
- get parameters(): $.List<SerializedTypeParameter>;
899
- _hasParameters(): boolean;
900
- _initParameters(length: number): $.List<SerializedTypeParameter>;
901
- set parameters(value: $.List<SerializedTypeParameter>);
902
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
903
- _disownReturn(): $.Orphan<SerializedTypeReference>;
904
- get return(): SerializedTypeReference;
905
- _hasReturn(): boolean;
906
- _initReturn(): SerializedTypeReference;
907
- set return(value: SerializedTypeReference);
908
- _adoptTags(value: $.Orphan<TagsReflection>): void;
909
- _disownTags(): $.Orphan<TagsReflection>;
910
- get tags(): TagsReflection;
911
- _hasTags(): boolean;
912
- _initTags(): TagsReflection;
913
- set tags(value: TagsReflection);
914
- toString(): string;
915
- }
916
- declare class SerializedTypeTypeParameter extends $.Struct {
917
- static readonly _capnp: {
918
- displayName: string;
919
- id: string;
920
- size: $.ObjectSize;
921
- };
922
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
923
- static _Decorators: $.ListCtor<SerializedTypeReference>;
924
- get typeName(): string;
925
- set typeName(value: string);
926
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
927
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
928
- get typeArguments(): $.List<SerializedTypeReference>;
929
- _hasTypeArguments(): boolean;
930
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
931
- set typeArguments(value: $.List<SerializedTypeReference>);
932
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
933
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
934
- get indexAccessOrigin(): IndexAccessOrigin;
935
- _hasIndexAccessOrigin(): boolean;
936
- _initIndexAccessOrigin(): IndexAccessOrigin;
937
- set indexAccessOrigin(value: IndexAccessOrigin);
938
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
939
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
940
- get decorators(): $.List<SerializedTypeReference>;
941
- _hasDecorators(): boolean;
942
- _initDecorators(length: number): $.List<SerializedTypeReference>;
943
- set decorators(value: $.List<SerializedTypeReference>);
944
- get kind(): ReflectionKind;
945
- set kind(value: ReflectionKind);
946
- get name(): string;
947
- set name(value: string);
948
- toString(): string;
949
- }
950
- declare class SerializedTypeInfer extends $.Struct {
951
- static readonly _capnp: {
952
- displayName: string;
953
- id: string;
954
- size: $.ObjectSize;
955
- };
956
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
957
- static _Decorators: $.ListCtor<SerializedTypeReference>;
958
- get typeName(): string;
959
- set typeName(value: string);
960
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
961
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
962
- get typeArguments(): $.List<SerializedTypeReference>;
963
- _hasTypeArguments(): boolean;
964
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
965
- set typeArguments(value: $.List<SerializedTypeReference>);
966
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
967
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
968
- get indexAccessOrigin(): IndexAccessOrigin;
969
- _hasIndexAccessOrigin(): boolean;
970
- _initIndexAccessOrigin(): IndexAccessOrigin;
971
- set indexAccessOrigin(value: IndexAccessOrigin);
972
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
973
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
974
- get decorators(): $.List<SerializedTypeReference>;
975
- _hasDecorators(): boolean;
976
- _initDecorators(length: number): $.List<SerializedTypeReference>;
977
- set decorators(value: $.List<SerializedTypeReference>);
978
- get kind(): ReflectionKind;
979
- set kind(value: ReflectionKind);
980
- toString(): string;
981
- }
982
- declare class SerializedTypeTupleMember extends $.Struct {
983
- static readonly _capnp: {
984
- displayName: string;
985
- id: string;
986
- size: $.ObjectSize;
987
- };
988
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
989
- static _Decorators: $.ListCtor<SerializedTypeReference>;
990
- get typeName(): string;
991
- set typeName(value: string);
992
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
993
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
994
- get typeArguments(): $.List<SerializedTypeReference>;
995
- _hasTypeArguments(): boolean;
996
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
997
- set typeArguments(value: $.List<SerializedTypeReference>);
998
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
999
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1000
- get indexAccessOrigin(): IndexAccessOrigin;
1001
- _hasIndexAccessOrigin(): boolean;
1002
- _initIndexAccessOrigin(): IndexAccessOrigin;
1003
- set indexAccessOrigin(value: IndexAccessOrigin);
1004
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1005
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1006
- get decorators(): $.List<SerializedTypeReference>;
1007
- _hasDecorators(): boolean;
1008
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1009
- set decorators(value: $.List<SerializedTypeReference>);
1010
- get kind(): ReflectionKind;
1011
- set kind(value: ReflectionKind);
1012
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
1013
- _disownType(): $.Orphan<SerializedTypeReference>;
1014
- get type(): SerializedTypeReference;
1015
- _hasType(): boolean;
1016
- _initType(): SerializedTypeReference;
1017
- set type(value: SerializedTypeReference);
1018
- get optional(): boolean;
1019
- set optional(value: boolean);
1020
- get name(): string;
1021
- set name(value: string);
1022
- toString(): string;
1023
- }
1024
- declare class SerializedTypeTuple extends $.Struct {
1025
- static readonly _capnp: {
1026
- displayName: string;
1027
- id: string;
1028
- size: $.ObjectSize;
1029
- };
1030
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1031
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1032
- static _Types: $.ListCtor<SerializedTypeTupleMember>;
1033
- get typeName(): string;
1034
- set typeName(value: string);
1035
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1036
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1037
- get typeArguments(): $.List<SerializedTypeReference>;
1038
- _hasTypeArguments(): boolean;
1039
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1040
- set typeArguments(value: $.List<SerializedTypeReference>);
1041
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1042
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1043
- get indexAccessOrigin(): IndexAccessOrigin;
1044
- _hasIndexAccessOrigin(): boolean;
1045
- _initIndexAccessOrigin(): IndexAccessOrigin;
1046
- set indexAccessOrigin(value: IndexAccessOrigin);
1047
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1048
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1049
- get decorators(): $.List<SerializedTypeReference>;
1050
- _hasDecorators(): boolean;
1051
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1052
- set decorators(value: $.List<SerializedTypeReference>);
1053
- get kind(): ReflectionKind;
1054
- set kind(value: ReflectionKind);
1055
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeTupleMember>>): void;
1056
- _disownTypes(): $.Orphan<$.List<SerializedTypeTupleMember>>;
1057
- get types(): $.List<SerializedTypeTupleMember>;
1058
- _hasTypes(): boolean;
1059
- _initTypes(length: number): $.List<SerializedTypeTupleMember>;
1060
- set types(value: $.List<SerializedTypeTupleMember>);
1061
- toString(): string;
1062
- }
1063
- declare class SerializedTypeRest extends $.Struct {
1064
- static readonly _capnp: {
1065
- displayName: string;
1066
- id: string;
1067
- size: $.ObjectSize;
1068
- };
1069
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1070
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1071
- get typeName(): string;
1072
- set typeName(value: string);
1073
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1074
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1075
- get typeArguments(): $.List<SerializedTypeReference>;
1076
- _hasTypeArguments(): boolean;
1077
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1078
- set typeArguments(value: $.List<SerializedTypeReference>);
1079
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1080
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1081
- get indexAccessOrigin(): IndexAccessOrigin;
1082
- _hasIndexAccessOrigin(): boolean;
1083
- _initIndexAccessOrigin(): IndexAccessOrigin;
1084
- set indexAccessOrigin(value: IndexAccessOrigin);
1085
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1086
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1087
- get decorators(): $.List<SerializedTypeReference>;
1088
- _hasDecorators(): boolean;
1089
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1090
- set decorators(value: $.List<SerializedTypeReference>);
1091
- get kind(): ReflectionKind;
1092
- set kind(value: ReflectionKind);
1093
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
1094
- _disownType(): $.Orphan<SerializedTypeReference>;
1095
- get type(): SerializedTypeReference;
1096
- _hasType(): boolean;
1097
- _initType(): SerializedTypeReference;
1098
- set type(value: SerializedTypeReference);
1099
- toString(): string;
1100
- }
1101
- declare class SimpleSerializedType extends $.Struct {
1102
- static readonly _capnp: {
1103
- displayName: string;
1104
- id: string;
1105
- size: $.ObjectSize;
1106
- };
1107
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1108
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1109
- get typeName(): string;
1110
- set typeName(value: string);
1111
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1112
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1113
- get typeArguments(): $.List<SerializedTypeReference>;
1114
- _hasTypeArguments(): boolean;
1115
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1116
- set typeArguments(value: $.List<SerializedTypeReference>);
1117
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1118
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1119
- get indexAccessOrigin(): IndexAccessOrigin;
1120
- _hasIndexAccessOrigin(): boolean;
1121
- _initIndexAccessOrigin(): IndexAccessOrigin;
1122
- set indexAccessOrigin(value: IndexAccessOrigin);
1123
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1124
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1125
- get decorators(): $.List<SerializedTypeReference>;
1126
- _hasDecorators(): boolean;
1127
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1128
- set decorators(value: $.List<SerializedTypeReference>);
1129
- get kind(): ReflectionKind;
1130
- set kind(value: ReflectionKind);
1131
- _adoptOrigin(value: $.Orphan<SerializedTypeReference>): void;
1132
- _disownOrigin(): $.Orphan<SerializedTypeReference>;
1133
- get origin(): SerializedTypeReference;
1134
- _hasOrigin(): boolean;
1135
- _initOrigin(): SerializedTypeReference;
1136
- set origin(value: SerializedTypeReference);
1137
- toString(): string;
1138
- }
1139
- declare class SerializedTypeLiteralSymbol extends $.Struct {
1140
- static readonly _capnp: {
1141
- displayName: string;
1142
- id: string;
1143
- size: $.ObjectSize;
1144
- };
1145
- /**
1146
- * "symbol"
1147
- *
1148
- */
1149
- get type(): string;
1150
- set type(value: string);
1151
- get name(): string;
1152
- set name(value: string);
1153
- toString(): string;
1154
- }
1155
- declare class SerializedTypeLiteralBigInt extends $.Struct {
1156
- static readonly _capnp: {
1157
- displayName: string;
1158
- id: string;
1159
- size: $.ObjectSize;
1160
- };
1161
- /**
1162
- * "bigint"
1163
- *
1164
- */
1165
- get type(): string;
1166
- set type(value: string);
1167
- get value(): string;
1168
- set value(value: string);
1169
- toString(): string;
1170
- }
1171
- declare class SerializedTypeLiteralRegex extends $.Struct {
1172
- static readonly _capnp: {
1173
- displayName: string;
1174
- id: string;
1175
- size: $.ObjectSize;
1176
- };
1177
- /**
1178
- * "regex"
1179
- *
1180
- */
1181
- get type(): string;
1182
- set type(value: string);
1183
- get regex(): string;
1184
- set regex(value: string);
1185
- toString(): string;
1186
- }
1187
- declare const SerializedTypeLiteral_Literal_Which: {
1188
- readonly SYMBOL: 0;
1189
- readonly STRING: 1;
1190
- readonly NUMBER: 2;
1191
- readonly BOOLEAN: 3;
1192
- readonly BIGINT: 4;
1193
- readonly REGEX: 5;
1194
- };
1195
- type SerializedTypeLiteral_Literal_Which = (typeof SerializedTypeLiteral_Literal_Which)[keyof typeof SerializedTypeLiteral_Literal_Which];
1196
- declare class SerializedTypeLiteral_Literal extends $.Struct {
1197
- static readonly SYMBOL: 0;
1198
- static readonly STRING: 1;
1199
- static readonly NUMBER: 2;
1200
- static readonly BOOLEAN: 3;
1201
- static readonly BIGINT: 4;
1202
- static readonly REGEX: 5;
1203
- static readonly _capnp: {
1204
- displayName: string;
1205
- id: string;
1206
- size: $.ObjectSize;
1207
- };
1208
- _adoptSymbol(value: $.Orphan<SerializedTypeLiteralSymbol>): void;
1209
- _disownSymbol(): $.Orphan<SerializedTypeLiteralSymbol>;
1210
- get symbol(): SerializedTypeLiteralSymbol;
1211
- _hasSymbol(): boolean;
1212
- _initSymbol(): SerializedTypeLiteralSymbol;
1213
- get _isSymbol(): boolean;
1214
- set symbol(value: SerializedTypeLiteralSymbol);
1215
- get string(): string;
1216
- get _isString(): boolean;
1217
- set string(value: string);
1218
- get number(): number;
1219
- get _isNumber(): boolean;
1220
- set number(value: number);
1221
- get boolean(): boolean;
1222
- get _isBoolean(): boolean;
1223
- set boolean(value: boolean);
1224
- _adoptBigint(value: $.Orphan<SerializedTypeLiteralBigInt>): void;
1225
- _disownBigint(): $.Orphan<SerializedTypeLiteralBigInt>;
1226
- get bigint(): SerializedTypeLiteralBigInt;
1227
- _hasBigint(): boolean;
1228
- _initBigint(): SerializedTypeLiteralBigInt;
1229
- get _isBigint(): boolean;
1230
- set bigint(value: SerializedTypeLiteralBigInt);
1231
- _adoptRegex(value: $.Orphan<SerializedTypeLiteralRegex>): void;
1232
- _disownRegex(): $.Orphan<SerializedTypeLiteralRegex>;
1233
- get regex(): SerializedTypeLiteralRegex;
1234
- _hasRegex(): boolean;
1235
- _initRegex(): SerializedTypeLiteralRegex;
1236
- get _isRegex(): boolean;
1237
- set regex(value: SerializedTypeLiteralRegex);
1238
- toString(): string;
1239
- which(): SerializedTypeLiteral_Literal_Which;
1240
- }
1241
- declare class SerializedTypeLiteral extends $.Struct {
1242
- static readonly _capnp: {
1243
- displayName: string;
1244
- id: string;
1245
- size: $.ObjectSize;
1246
- };
1247
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1248
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1249
- get typeName(): string;
1250
- set typeName(value: string);
1251
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1252
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1253
- get typeArguments(): $.List<SerializedTypeReference>;
1254
- _hasTypeArguments(): boolean;
1255
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1256
- set typeArguments(value: $.List<SerializedTypeReference>);
1257
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1258
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1259
- get indexAccessOrigin(): IndexAccessOrigin;
1260
- _hasIndexAccessOrigin(): boolean;
1261
- _initIndexAccessOrigin(): IndexAccessOrigin;
1262
- set indexAccessOrigin(value: IndexAccessOrigin);
1263
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1264
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1265
- get decorators(): $.List<SerializedTypeReference>;
1266
- _hasDecorators(): boolean;
1267
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1268
- set decorators(value: $.List<SerializedTypeReference>);
1269
- get kind(): ReflectionKind;
1270
- set kind(value: ReflectionKind);
1271
- get literal(): SerializedTypeLiteral_Literal;
1272
- _initLiteral(): SerializedTypeLiteral_Literal;
1273
- toString(): string;
1274
- }
1275
- declare class SerializedTypeTemplateLiteral extends $.Struct {
1276
- static readonly _capnp: {
1277
- displayName: string;
1278
- id: string;
1279
- size: $.ObjectSize;
1280
- };
1281
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1282
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1283
- static _Types: $.ListCtor<SerializedTypeReference>;
1284
- get typeName(): string;
1285
- set typeName(value: string);
1286
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1287
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1288
- get typeArguments(): $.List<SerializedTypeReference>;
1289
- _hasTypeArguments(): boolean;
1290
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1291
- set typeArguments(value: $.List<SerializedTypeReference>);
1292
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1293
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1294
- get indexAccessOrigin(): IndexAccessOrigin;
1295
- _hasIndexAccessOrigin(): boolean;
1296
- _initIndexAccessOrigin(): IndexAccessOrigin;
1297
- set indexAccessOrigin(value: IndexAccessOrigin);
1298
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1299
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1300
- get decorators(): $.List<SerializedTypeReference>;
1301
- _hasDecorators(): boolean;
1302
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1303
- set decorators(value: $.List<SerializedTypeReference>);
1304
- get kind(): ReflectionKind;
1305
- set kind(value: ReflectionKind);
1306
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1307
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
1308
- get types(): $.List<SerializedTypeReference>;
1309
- _hasTypes(): boolean;
1310
- _initTypes(length: number): $.List<SerializedTypeReference>;
1311
- set types(value: $.List<SerializedTypeReference>);
1312
- toString(): string;
1313
- }
1314
- declare class SerializedTypeOther extends $.Struct {
1315
- static readonly _capnp: {
1316
- displayName: string;
1317
- id: string;
1318
- size: $.ObjectSize;
1319
- };
1320
- get typeName(): string;
1321
- set typeName(value: string);
1322
- get kind(): ReflectionKind;
1323
- set kind(value: ReflectionKind);
1324
- toString(): string;
1325
- }
1326
- declare const SerializedType_Type_Which: {
1327
- readonly SIMPLE: 0;
1328
- readonly LITERAL: 1;
1329
- readonly TEMPLATE_LITERAL: 2;
1330
- readonly PARAMETER: 3;
1331
- readonly FUNCTION: 4;
1332
- readonly METHOD: 5;
1333
- readonly PROPERTY: 6;
1334
- readonly PROMISE: 7;
1335
- readonly CLASS_TYPE: 8;
1336
- readonly ENUM: 9;
1337
- readonly UNION: 10;
1338
- readonly INTERSECTION: 11;
1339
- readonly ARRAY: 12;
1340
- readonly OBJECT_LITERAL: 13;
1341
- readonly INDEX_SIGNATURE: 14;
1342
- readonly PROPERTY_SIGNATURE: 15;
1343
- readonly METHOD_SIGNATURE: 16;
1344
- readonly TYPE_PARAMETER: 17;
1345
- readonly INFER: 18;
1346
- readonly TUPLE: 19;
1347
- readonly TUPLE_MEMBER: 20;
1348
- readonly REST: 21;
1349
- /**
1350
- * For any other type that is not explicitly defined
1351
- *
1352
- */
1353
- readonly OTHER: 22;
1354
- };
1355
- type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
1356
- declare class SerializedType_Type extends $.Struct {
1357
- static readonly SIMPLE: 0;
1358
- static readonly LITERAL: 1;
1359
- static readonly TEMPLATE_LITERAL: 2;
1360
- static readonly PARAMETER: 3;
1361
- static readonly FUNCTION: 4;
1362
- static readonly METHOD: 5;
1363
- static readonly PROPERTY: 6;
1364
- static readonly PROMISE: 7;
1365
- static readonly CLASS_TYPE: 8;
1366
- static readonly ENUM: 9;
1367
- static readonly UNION: 10;
1368
- static readonly INTERSECTION: 11;
1369
- static readonly ARRAY: 12;
1370
- static readonly OBJECT_LITERAL: 13;
1371
- static readonly INDEX_SIGNATURE: 14;
1372
- static readonly PROPERTY_SIGNATURE: 15;
1373
- static readonly METHOD_SIGNATURE: 16;
1374
- static readonly TYPE_PARAMETER: 17;
1375
- static readonly INFER: 18;
1376
- static readonly TUPLE: 19;
1377
- static readonly TUPLE_MEMBER: 20;
1378
- static readonly REST: 21;
1379
- static readonly OTHER: 22;
1380
- static readonly _capnp: {
1381
- displayName: string;
1382
- id: string;
1383
- size: $.ObjectSize;
1384
- };
1385
- _adoptSimple(value: $.Orphan<SimpleSerializedType>): void;
1386
- _disownSimple(): $.Orphan<SimpleSerializedType>;
1387
- get simple(): SimpleSerializedType;
1388
- _hasSimple(): boolean;
1389
- _initSimple(): SimpleSerializedType;
1390
- get _isSimple(): boolean;
1391
- set simple(value: SimpleSerializedType);
1392
- _adoptLiteral(value: $.Orphan<SerializedTypeLiteral>): void;
1393
- _disownLiteral(): $.Orphan<SerializedTypeLiteral>;
1394
- get literal(): SerializedTypeLiteral;
1395
- _hasLiteral(): boolean;
1396
- _initLiteral(): SerializedTypeLiteral;
1397
- get _isLiteral(): boolean;
1398
- set literal(value: SerializedTypeLiteral);
1399
- _adoptTemplateLiteral(value: $.Orphan<SerializedTypeTemplateLiteral>): void;
1400
- _disownTemplateLiteral(): $.Orphan<SerializedTypeTemplateLiteral>;
1401
- get templateLiteral(): SerializedTypeTemplateLiteral;
1402
- _hasTemplateLiteral(): boolean;
1403
- _initTemplateLiteral(): SerializedTypeTemplateLiteral;
1404
- get _isTemplateLiteral(): boolean;
1405
- set templateLiteral(value: SerializedTypeTemplateLiteral);
1406
- _adoptParameter(value: $.Orphan<SerializedTypeParameter>): void;
1407
- _disownParameter(): $.Orphan<SerializedTypeParameter>;
1408
- get parameter(): SerializedTypeParameter;
1409
- _hasParameter(): boolean;
1410
- _initParameter(): SerializedTypeParameter;
1411
- get _isParameter(): boolean;
1412
- set parameter(value: SerializedTypeParameter);
1413
- _adoptFunction(value: $.Orphan<SerializedTypeFunction>): void;
1414
- _disownFunction(): $.Orphan<SerializedTypeFunction>;
1415
- get function(): SerializedTypeFunction;
1416
- _hasFunction(): boolean;
1417
- _initFunction(): SerializedTypeFunction;
1418
- get _isFunction(): boolean;
1419
- set function(value: SerializedTypeFunction);
1420
- _adoptMethod(value: $.Orphan<SerializedTypeMethod>): void;
1421
- _disownMethod(): $.Orphan<SerializedTypeMethod>;
1422
- get method(): SerializedTypeMethod;
1423
- _hasMethod(): boolean;
1424
- _initMethod(): SerializedTypeMethod;
1425
- get _isMethod(): boolean;
1426
- set method(value: SerializedTypeMethod);
1427
- _adoptProperty(value: $.Orphan<SerializedTypeProperty>): void;
1428
- _disownProperty(): $.Orphan<SerializedTypeProperty>;
1429
- get property(): SerializedTypeProperty;
1430
- _hasProperty(): boolean;
1431
- _initProperty(): SerializedTypeProperty;
1432
- get _isProperty(): boolean;
1433
- set property(value: SerializedTypeProperty);
1434
- _adoptPromise(value: $.Orphan<SerializedTypePromise>): void;
1435
- _disownPromise(): $.Orphan<SerializedTypePromise>;
1436
- get promise(): SerializedTypePromise;
1437
- _hasPromise(): boolean;
1438
- _initPromise(): SerializedTypePromise;
1439
- get _isPromise(): boolean;
1440
- set promise(value: SerializedTypePromise);
1441
- _adoptClassType(value: $.Orphan<SerializedTypeClassType>): void;
1442
- _disownClassType(): $.Orphan<SerializedTypeClassType>;
1443
- get classType(): SerializedTypeClassType;
1444
- _hasClassType(): boolean;
1445
- _initClassType(): SerializedTypeClassType;
1446
- get _isClassType(): boolean;
1447
- set classType(value: SerializedTypeClassType);
1448
- _adoptEnum(value: $.Orphan<SerializedTypeEnum>): void;
1449
- _disownEnum(): $.Orphan<SerializedTypeEnum>;
1450
- get enum(): SerializedTypeEnum;
1451
- _hasEnum(): boolean;
1452
- _initEnum(): SerializedTypeEnum;
1453
- get _isEnum(): boolean;
1454
- set enum(value: SerializedTypeEnum);
1455
- _adoptUnion(value: $.Orphan<SerializedTypeUnion>): void;
1456
- _disownUnion(): $.Orphan<SerializedTypeUnion>;
1457
- get union(): SerializedTypeUnion;
1458
- _hasUnion(): boolean;
1459
- _initUnion(): SerializedTypeUnion;
1460
- get _isUnion(): boolean;
1461
- set union(value: SerializedTypeUnion);
1462
- _adoptIntersection(value: $.Orphan<SerializedTypeIntersection>): void;
1463
- _disownIntersection(): $.Orphan<SerializedTypeIntersection>;
1464
- get intersection(): SerializedTypeIntersection;
1465
- _hasIntersection(): boolean;
1466
- _initIntersection(): SerializedTypeIntersection;
1467
- get _isIntersection(): boolean;
1468
- set intersection(value: SerializedTypeIntersection);
1469
- _adoptArray(value: $.Orphan<SerializedTypeArray>): void;
1470
- _disownArray(): $.Orphan<SerializedTypeArray>;
1471
- get array(): SerializedTypeArray;
1472
- _hasArray(): boolean;
1473
- _initArray(): SerializedTypeArray;
1474
- get _isArray(): boolean;
1475
- set array(value: SerializedTypeArray);
1476
- _adoptObjectLiteral(value: $.Orphan<SerializedTypeObjectLiteral>): void;
1477
- _disownObjectLiteral(): $.Orphan<SerializedTypeObjectLiteral>;
1478
- get objectLiteral(): SerializedTypeObjectLiteral;
1479
- _hasObjectLiteral(): boolean;
1480
- _initObjectLiteral(): SerializedTypeObjectLiteral;
1481
- get _isObjectLiteral(): boolean;
1482
- set objectLiteral(value: SerializedTypeObjectLiteral);
1483
- _adoptIndexSignature(value: $.Orphan<SerializedTypeIndexSignature>): void;
1484
- _disownIndexSignature(): $.Orphan<SerializedTypeIndexSignature>;
1485
- get indexSignature(): SerializedTypeIndexSignature;
1486
- _hasIndexSignature(): boolean;
1487
- _initIndexSignature(): SerializedTypeIndexSignature;
1488
- get _isIndexSignature(): boolean;
1489
- set indexSignature(value: SerializedTypeIndexSignature);
1490
- _adoptPropertySignature(value: $.Orphan<SerializedTypePropertySignature>): void;
1491
- _disownPropertySignature(): $.Orphan<SerializedTypePropertySignature>;
1492
- get propertySignature(): SerializedTypePropertySignature;
1493
- _hasPropertySignature(): boolean;
1494
- _initPropertySignature(): SerializedTypePropertySignature;
1495
- get _isPropertySignature(): boolean;
1496
- set propertySignature(value: SerializedTypePropertySignature);
1497
- _adoptMethodSignature(value: $.Orphan<SerializedTypeMethodSignature>): void;
1498
- _disownMethodSignature(): $.Orphan<SerializedTypeMethodSignature>;
1499
- get methodSignature(): SerializedTypeMethodSignature;
1500
- _hasMethodSignature(): boolean;
1501
- _initMethodSignature(): SerializedTypeMethodSignature;
1502
- get _isMethodSignature(): boolean;
1503
- set methodSignature(value: SerializedTypeMethodSignature);
1504
- _adoptTypeParameter(value: $.Orphan<SerializedTypeTypeParameter>): void;
1505
- _disownTypeParameter(): $.Orphan<SerializedTypeTypeParameter>;
1506
- get typeParameter(): SerializedTypeTypeParameter;
1507
- _hasTypeParameter(): boolean;
1508
- _initTypeParameter(): SerializedTypeTypeParameter;
1509
- get _isTypeParameter(): boolean;
1510
- set typeParameter(value: SerializedTypeTypeParameter);
1511
- _adoptInfer(value: $.Orphan<SerializedTypeInfer>): void;
1512
- _disownInfer(): $.Orphan<SerializedTypeInfer>;
1513
- get infer(): SerializedTypeInfer;
1514
- _hasInfer(): boolean;
1515
- _initInfer(): SerializedTypeInfer;
1516
- get _isInfer(): boolean;
1517
- set infer(value: SerializedTypeInfer);
1518
- _adoptTuple(value: $.Orphan<SerializedTypeTuple>): void;
1519
- _disownTuple(): $.Orphan<SerializedTypeTuple>;
1520
- get tuple(): SerializedTypeTuple;
1521
- _hasTuple(): boolean;
1522
- _initTuple(): SerializedTypeTuple;
1523
- get _isTuple(): boolean;
1524
- set tuple(value: SerializedTypeTuple);
1525
- _adoptTupleMember(value: $.Orphan<SerializedTypeTupleMember>): void;
1526
- _disownTupleMember(): $.Orphan<SerializedTypeTupleMember>;
1527
- get tupleMember(): SerializedTypeTupleMember;
1528
- _hasTupleMember(): boolean;
1529
- _initTupleMember(): SerializedTypeTupleMember;
1530
- get _isTupleMember(): boolean;
1531
- set tupleMember(value: SerializedTypeTupleMember);
1532
- _adoptRest(value: $.Orphan<SerializedTypeRest>): void;
1533
- _disownRest(): $.Orphan<SerializedTypeRest>;
1534
- get rest(): SerializedTypeRest;
1535
- _hasRest(): boolean;
1536
- _initRest(): SerializedTypeRest;
1537
- get _isRest(): boolean;
1538
- set rest(value: SerializedTypeRest);
1539
- _adoptOther(value: $.Orphan<SerializedTypeOther>): void;
1540
- _disownOther(): $.Orphan<SerializedTypeOther>;
1541
- /**
1542
- * For any other type that is not explicitly defined
1543
- *
1544
- */
1545
- get other(): SerializedTypeOther;
1546
- _hasOther(): boolean;
1547
- _initOther(): SerializedTypeOther;
1548
- get _isOther(): boolean;
1549
- set other(value: SerializedTypeOther);
1550
- toString(): string;
1551
- which(): SerializedType_Type_Which;
1552
- }
1553
- declare class SerializedType extends $.Struct {
1554
- static readonly _capnp: {
1555
- displayName: string;
1556
- id: string;
1557
- size: $.ObjectSize;
1558
- };
1559
- get type(): SerializedType_Type;
1560
- _initType(): SerializedType_Type;
1561
- toString(): string;
1562
- }
1563
- declare class SerializedTypes extends $.Struct {
1564
- static readonly _capnp: {
1565
- displayName: string;
1566
- id: string;
1567
- size: $.ObjectSize;
1568
- };
1569
- static _Types: $.ListCtor<SerializedType>;
1570
- _adoptTypes(value: $.Orphan<$.List<SerializedType>>): void;
1571
- _disownTypes(): $.Orphan<$.List<SerializedType>>;
1572
- get types(): $.List<SerializedType>;
1573
- _hasTypes(): boolean;
1574
- _initTypes(length: number): $.List<SerializedType>;
1575
- set types(value: $.List<SerializedType>);
1576
- toString(): string;
1577
- }
1578
-
1579
- type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
1580
- interface BuildConfig {
1581
- /**
1582
- * The platform to build the project for
1583
- *
1584
- * @defaultValue "neutral"
1585
- */
1586
- platform?: "node" | "browser" | "neutral";
1587
- /**
1588
- * The alias mappings to use for module resolution during the build process.
1589
- *
1590
- * @remarks
1591
- * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
1592
- *
1593
- * @example
1594
- * ```ts
1595
- * {
1596
- * alias: {
1597
- * "@utils": "./src/utils",
1598
- * "@components": "./src/components"
1599
- * }
1600
- * }
1601
- * ```
1602
- */
1603
- alias?: Record<string, string>;
1604
- /**
1605
- * A list of modules that should not be bundled, even if they are external dependencies.
1606
- *
1607
- * @remarks
1608
- * This option is useful for excluding specific modules from the bundle, such as Node.js built-in modules or other libraries that should not be bundled.
1609
- */
1610
- external?: (string | RegExp)[];
1611
- /**
1612
- * A list of modules that should always be bundled, even if they are external dependencies.
1613
- */
1614
- noExternal?: (string | RegExp)[];
1615
- /**
1616
- * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
1617
- */
1618
- skipNodeModulesBundle?: boolean;
1619
- /**
1620
- * Should the Powerlines processes skip the `"prepare"` task prior to building?
1621
- *
1622
- * @defaultValue false
1623
- */
1624
- skipPrepare?: boolean;
1625
- }
1626
- type BuildResolvedConfig = BuildConfig;
1627
-
1628
- interface ResolvedEntryTypeDefinition extends TypeDefinition {
1629
- /**
1630
- * The user provided entry point in the source code
1631
- */
1632
- input: TypeDefinition;
1633
- /**
1634
- * An optional name to use in the package export during the build process
1635
- */
1636
- output?: string;
1637
- }
1638
- type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview" | "mainFields" | "extensions"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr" | "mainFields" | "extensions">> & {
1639
- /**
1640
- * The name of the environment
1641
- */
1642
- name: string;
1643
- /**
1644
- * Configuration options for the preview server
1645
- */
1646
- preview?: ResolvedPreviewOptions;
1647
- };
1648
- type LintResolvedConfig = Required<LintConfig>;
1649
- type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
1650
- type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
1651
- assets: ResolvedAssetGlob[];
1652
- }>;
1653
- /**
1654
- * The resolved options for the Powerlines project configuration.
1655
- */
1656
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "build" | "transform" | "override" | "framework">> & {
1657
- /**
1658
- * The configuration options that were provided inline to the Powerlines CLI.
1659
- */
1660
- inlineConfig: InlineConfig<TUserConfig>;
1661
- /**
1662
- * The original configuration options that were provided by the user to the Powerlines process.
1663
- */
1664
- userConfig: TUserConfig;
1665
- /**
1666
- * A string identifier for the Powerlines command being executed.
1667
- */
1668
- command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
1669
- /**
1670
- * The root directory of the project's source code
1671
- *
1672
- * @defaultValue "\{projectRoot\}/src"
1673
- */
1674
- sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
1675
- /**
1676
- * The root directory of the project.
1677
- */
1678
- projectRoot: NonUndefined<TUserConfig["root"]>;
1679
- /**
1680
- * The type of project being built.
1681
- */
1682
- projectType: NonUndefined<TUserConfig["type"]>;
1683
- /**
1684
- * The output configuration options to use for the build process
1685
- */
1686
- output: OutputResolvedConfig;
1687
- /**
1688
- * The linting configuration options to use for the build process
1689
- */
1690
- lint: LintResolvedConfig | false;
1691
- /**
1692
- * The log level to use for the Powerlines processes.
1693
- *
1694
- * @defaultValue "info"
1695
- */
1696
- logLevel: LogLevelLabel | null;
1697
- };
1698
-
1699
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1700
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1701
-
1702
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1703
- /**
1704
- * The order in which the plugin should be applied.
1705
- */
1706
- order?: "pre" | "post" | null | undefined;
1707
- /**
1708
- * A filter to determine when the hook should be called.
1709
- */
1710
- filter?: TFilter;
1711
- /**
1712
- * The hook function to be called.
1713
- */
1714
- handler: THookFunction;
1715
- }
1716
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1717
- interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
1718
- /**
1719
- * A function that returns configuration options to be merged with the build context's options.
1720
- *
1721
- * @remarks
1722
- * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
1723
- *
1724
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
1725
- *
1726
- * @see https://vitejs.dev/guide/api-plugin#config
1727
- *
1728
- * @param this - The build context.
1729
- * @param config - The partial configuration object to be modified.
1730
- * @returns A promise that resolves to a partial configuration object.
1731
- */
1732
- config: (this: Context<TContext["config"]>) => MaybePromise<Partial<TContext["config"]["userConfig"]>>;
1733
- /**
1734
- * Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
1735
- *
1736
- * @remarks
1737
- * This hook is called for each environment with a partially resolved environment config that already accounts for the default environment config values set at the root level. If plugins need to modify the config of a given environment, they should do it in this hook instead of the config hook. Leaving the config hook only for modifying the root default environment config.
1738
- *
1739
- * @see https://vitejs.dev/guide/api-plugin#configenvironment
1740
- *
1741
- * @param this - The build context.
1742
- * @param name - The name of the environment being configured.
1743
- * @param environment - The Vite-like environment object containing information about the current build environment.
1744
- * @returns A promise that resolves when the hook is complete.
1745
- */
1746
- configEnvironment: (this: TContext, name: string, environment: EnvironmentConfig) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;
1747
- /**
1748
- * A hook that is called when the plugin is resolved.
1749
- *
1750
- * @see https://vitejs.dev/guide/api-plugin#configresolved
1751
- *
1752
- * @param this - The build context.
1753
- * @returns A promise that resolves when the hook is complete.
1754
- */
1755
- configResolved: (this: TContext) => MaybePromise<void>;
1756
- /**
1757
- * A hook that is called at the start of the build process.
1758
- *
1759
- * @param this - The build context and unplugin build context.
1760
- * @returns A promise that resolves when the hook is complete.
1761
- */
1762
- buildStart: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1763
- /**
1764
- * A hook that is called at the end of the build process.
1765
- *
1766
- * @param this - The build context and unplugin build context.
1767
- * @returns A promise that resolves when the hook is complete.
1768
- */
1769
- buildEnd: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1770
- /**
1771
- * A hook that is called to transform the source code.
1772
- *
1773
- * @param this - The build context, unplugin build context, and unplugin context.
1774
- * @param code - The source code to transform.
1775
- * @param id - The identifier of the source code.
1776
- * @returns A promise that resolves when the hook is complete.
1777
- */
1778
- transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
1779
- /**
1780
- * A hook that is called to load the source code.
1781
- *
1782
- * @param this - The build context, unplugin build context, and unplugin context.
1783
- * @param id - The identifier of the source code.
1784
- * @returns A promise that resolves when the hook is complete.
1785
- */
1786
- load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
1787
- /**
1788
- * A hook that is called to resolve the identifier of the source code.
1789
- *
1790
- * @param this - The build context, unplugin build context, and unplugin context.
1791
- * @param id - The identifier of the source code.
1792
- * @param importer - The importer of the source code.
1793
- * @param options - The options for resolving the identifier.
1794
- * @returns A promise that resolves when the hook is complete.
1795
- */
1796
- resolveId: (this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1797
- isEntry: boolean;
1798
- }) => MaybePromise<string | ExternalIdResult | null | undefined>;
1799
- /**
1800
- * A hook that is called to write the bundle to disk.
1801
- *
1802
- * @param this - The build context.
1803
- * @returns A promise that resolves when the hook is complete.
1804
- */
1805
- writeBundle: (this: TContext) => MaybePromise<void>;
1806
- }
1807
- type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant] = Required<UnpluginOptions>[TBuildVariant]> = {
1808
- [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike ? (this: ThisParameterType<TOptions[TKey]> & TContext, ...args: Parameters<TOptions[TKey]>) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>> : TOptions[TKey];
1809
- };
1810
- type PluginHooks<TContext extends PluginContext = PluginContext> = {
1811
- [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]>;
1812
- } & {
1813
- /**
1814
- * A function that returns configuration options to be merged with the build context's options.
1815
- *
1816
- * @remarks
1817
- * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
1818
- *
1819
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
1820
- *
1821
- * @see https://vitejs.dev/guide/api-plugin#config
1822
- *
1823
- * @param this - The build context.
1824
- * @param config - The partial configuration object to be modified.
1825
- * @returns A promise that resolves to a partial configuration object.
1826
- */
1827
- config: PluginHook<(this: Context<TContext["config"]>) => MaybePromise<Partial<TContext["config"]["userConfig"]>>> | Partial<TContext["config"]["userConfig"]>;
1828
- /**
1829
- * A hook that is called to transform the source code.
1830
- *
1831
- * @param this - The build context, unplugin build context, and unplugin context.
1832
- * @param code - The source code to transform.
1833
- * @param id - The identifier of the source code.
1834
- * @returns A promise that resolves when the hook is complete.
1835
- */
1836
- transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
1837
- /**
1838
- * A hook that is called to load the source code.
1839
- *
1840
- * @param this - The build context, unplugin build context, and unplugin context.
1841
- * @param id - The identifier of the source code.
1842
- * @returns A promise that resolves when the hook is complete.
1843
- */
1844
- load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
1845
- /**
1846
- * A hook that is called to resolve the identifier of the source code.
1847
- *
1848
- * @param this - The build context, unplugin build context, and unplugin context.
1849
- * @param id - The identifier of the source code.
1850
- * @param importer - The importer of the source code.
1851
- * @param options - The options for resolving the identifier.
1852
- * @returns A promise that resolves when the hook is complete.
1853
- */
1854
- resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1855
- isEntry: boolean;
1856
- }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
1857
- };
1858
- type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1859
- [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1860
- };
1861
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1862
- /**
1863
- * The name of the plugin, for use in deduplication, error messages and logs.
1864
- */
1865
- name: string;
1866
- /**
1867
- * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.
1868
- *
1869
- * @remarks
1870
- * The Plugin invocation order is as follows:
1871
- * - `enforce: 'pre'` plugins
1872
- * - `order: 'pre'` plugin hooks
1873
- * - any other plugins (normal)
1874
- * - `order: 'post'` plugin hooks
1875
- * - `enforce: 'post'` plugins
1876
- *
1877
- * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering
1878
- * @see https://rollupjs.org/plugin-development/#build-hooks
1879
- * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post
1880
- * @see https://esbuild.github.io/plugins/#concepts
1881
- */
1882
- enforce?: "pre" | "post";
1883
- /**
1884
- * A function to determine if two plugins are the same and can be de-duplicated.
1885
- *
1886
- * @remarks
1887
- * If this is not provided, the plugin will not be de-duplicated.
1888
- *
1889
- * @param other - The other plugin to compare against.
1890
- * @returns `true` if the two plugins are the same, `false` otherwise.
1891
- */
1892
- dedupe?: false | ((other: PluginConfig<any>) => boolean);
1893
- /**
1894
- * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1895
- */
1896
- dependsOn?: PluginConfig<TContext>[];
1897
- /**
1898
- * Define environments where this plugin should be active. By default, the plugin is active in all environments.
1899
- *
1900
- * @param environment - The environment to check.
1901
- * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1902
- */
1903
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<any>>;
1904
- }
1905
-
1906
- type ReflectionMode = "default" | "explicit" | "never";
1907
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
1908
- /**
1909
- * Defines the level of reflection to be used during the transpilation process.
1910
- *
1911
- * @remarks
1912
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
1913
- * - `minimal` - Only the essential type information is captured.
1914
- * - `normal` - Additional type information is captured, including some contextual data.
1915
- * - `verbose` - All available type information is captured, including detailed contextual data.
1916
- */
1917
- type ReflectionLevel = "minimal" | "normal" | "verbose";
1918
- interface DeepkitOptions {
1919
- /**
1920
- * Either true to activate reflection for all files compiled using this tsconfig,
1921
- * or a list of globs/file paths relative to this tsconfig.json.
1922
- * Globs/file paths can be prefixed with a ! to exclude them.
1923
- */
1924
- reflection?: RawReflectionMode;
1925
- /**
1926
- * Defines the level of reflection to be used during the transpilation process.
1927
- *
1928
- * @remarks
1929
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
1930
- * - `minimal` - Only the essential type information is captured.
1931
- * - `normal` - Additional type information is captured, including some contextual data.
1932
- * - `verbose` - All available type information is captured, including detailed contextual data.
1933
- */
1934
- reflectionLevel?: ReflectionLevel;
1935
- }
1936
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
1937
- /**
1938
- * The TypeScript compiler configuration.
1939
- *
1940
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
1941
- */
1942
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
1943
- /**
1944
- * Either true to activate reflection for all files compiled using this tsconfig,
1945
- * or a list of globs/file paths relative to this tsconfig.json.
1946
- * Globs/file paths can be prefixed with a ! to exclude them.
1947
- */
1948
- reflection?: RawReflectionMode;
1949
- /**
1950
- * Defines the level of reflection to be used during the transpilation process.
1951
- *
1952
- * @remarks
1953
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
1954
- * - `minimal` - Only the essential type information is captured.
1955
- * - `normal` - Additional type information is captured, including some contextual data.
1956
- * - `verbose` - All available type information is captured, including detailed contextual data.
1957
- */
1958
- reflectionLevel?: ReflectionLevel;
1959
- /**
1960
- * Instructs the TypeScript compiler how to compile `.ts` files.
1961
- */
1962
- compilerOptions?: TSCompilerOptions;
1963
- }
1964
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
1965
- originalTsconfigJson: TsConfigJson;
1966
- tsconfigJson: TSConfig;
1967
- tsconfigFilePath: string;
1968
- };
1969
-
1970
- declare const __VFS_INIT__ = "__VFS_INIT__";
1971
- declare const __VFS_REVERT__ = "__VFS_REVERT__";
1972
- declare const __VFS_CACHE__ = "__VFS_CACHE__";
1973
- declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
1974
- declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
1975
- interface VirtualFile {
1976
- /**
1977
- * A virtual path to the file in the virtual file system.
1978
- */
1979
- path: string;
1980
- /**
1981
- * The contents of the virtual file.
1982
- */
1983
- contents: string;
1984
- }
1985
- interface VirtualBuiltinFile extends VirtualFile {
1986
- /**
1987
- * The unique identifier for the virtual file.
1988
- *
1989
- * @remarks
1990
- * This property is read-only and is set when the file is created.
1991
- */
1992
- id: string;
1993
- }
1994
- type OutputModeType = "fs" | "virtual";
1995
- interface ResolveFSOptions {
1996
- mode?: OutputModeType;
1997
- }
1998
- type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
1999
- interface ResolvePathOptions extends ResolveFSOptions {
2000
- /**
2001
- * Should the resolved path include the file extension?
2002
- *
2003
- * @defaultValue true
2004
- */
2005
- withExtension?: boolean;
2006
- /**
2007
- * The paths to search for the file.
2008
- */
2009
- paths?: string[];
2010
- /**
2011
- * The type of the path to resolve.
2012
- */
2013
- type?: "file" | "directory";
2014
- }
2015
- type WriteFileOptions = WriteFileOptions$1 & ResolveFSOptions;
2016
- interface WriteBuiltinFileOptions extends ResolveFSOptions {
2017
- skipFormat?: boolean;
2018
- }
2019
- interface VirtualFileSystemInterface {
2020
- [__VFS_INIT__]: () => void;
2021
- [__VFS_REVERT__]: () => void;
2022
- /**
2023
- * The underlying builtin module Ids.
2024
- */
2025
- builtinIdMap: Map<string, string>;
2026
- /**
2027
- * Checks if a path or ID corresponds to a builtin file.
2028
- *
2029
- * @param id - The id of the builtin file to check against.
2030
- * @param pathOrId - The path or id of the file to check.
2031
- * @returns Whether the path or ID corresponds to a builtin file.
2032
- */
2033
- isMatchingBuiltinId: (id: string, pathOrId: string) => boolean;
2034
- /**
2035
- * Checks if a provided string is a valid builtin ID (does not need to already be created in the file system).
2036
- *
2037
- * @param id - The ID to check.
2038
- * @returns Whether the ID is a valid builtin ID.
2039
- */
2040
- isValidBuiltinId: (id: string) => boolean;
2041
- /**
2042
- * Check if a path or ID corresponds to a virtual file.
2043
- *
2044
- * @param pathOrId - The path or ID to check.
2045
- * @param options - Optional parameters for resolving the path.
2046
- * @returns Whether the path or ID corresponds to a virtual file.
2047
- */
2048
- isVirtualFile: (pathOrId: string, options?: ResolvePathOptions) => boolean;
2049
- /**
2050
- * Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
2051
- *
2052
- * @see https://www.typescriptlang.org/tsconfig#paths
2053
- *
2054
- * @param pathOrId - The path or ID to check.
2055
- * @returns Whether the path or ID corresponds to a virtual file.
2056
- */
2057
- isTsconfigPath: (pathOrId: string) => boolean;
2058
- /**
2059
- * Checks if a given path or ID corresponds to a builtin module file.
2060
- */
2061
- isBuiltinFile: (pathOrID: string, options?: ResolvePathOptions) => boolean;
2062
- /**
2063
- * Returns a list of builtin module files in the virtual file system.
2064
- */
2065
- listBuiltinFiles: () => Promise<VirtualBuiltinFile[]>;
2066
- /**
2067
- * Checks if a file exists in the virtual file system (VFS).
2068
- */
2069
- existsSync: (pathOrId: string) => boolean;
2070
- /**
2071
- * Checks if a file exists in the virtual file system (VFS).
2072
- *
2073
- * @param path - The path of the file to check.
2074
- * @returns `true` if the file exists, otherwise `false`.
2075
- */
2076
- fileExistsSync: (path: string) => boolean;
2077
- /**
2078
- * Checks if a directory exists in the virtual file system (VFS).
2079
- *
2080
- * @param path - The path of the directory to check.
2081
- * @returns `true` if the directory exists, otherwise `false`.
2082
- */
2083
- directoryExistsSync: (path: string) => boolean;
2084
- /**
2085
- * Checks if a path exists in the virtual file system (VFS).
2086
- *
2087
- * @param path - The path to check.
2088
- * @returns `true` if the path exists, otherwise `false`.
2089
- */
2090
- pathExistsSync: (path: string) => boolean;
2091
- /**
2092
- * Gets the stats of a file in the virtual file system (VFS).
2093
- *
2094
- * @param pathOrId - The path or id of the file.
2095
- * @param options - Optional parameters for getting the stats.
2096
- * @returns The stats of the file if it exists, otherwise undefined.
2097
- */
2098
- lstat: (pathOrId: string, options?: StatSyncOptions & {
2099
- bigint?: false | undefined;
2100
- throwIfNoEntry: false;
2101
- }) => Promise<Stats>;
2102
- /**
2103
- * Gets the stats of a file in the virtual file system (VFS).
2104
- *
2105
- * @param pathOrId - The path or id of the file.
2106
- * @param options - Optional parameters for getting the stats.
2107
- * @returns The stats of the file if it exists, otherwise undefined.
2108
- */
2109
- lstatSync: (pathOrId: string, options?: StatSyncOptions & {
2110
- bigint?: false | undefined;
2111
- throwIfNoEntry: false;
2112
- }) => Stats | undefined;
2113
- /**
2114
- * Gets the stats of a file in the virtual file system (VFS).
2115
- *
2116
- * @param pathOrId - The path or id of the file.
2117
- * @returns The stats of the file if it exists, otherwise false.
2118
- */
2119
- stat: (pathOrId: string, options?: StatSyncOptions & {
2120
- bigint?: false | undefined;
2121
- throwIfNoEntry: false;
2122
- }) => Promise<Stats>;
2123
- /**
2124
- * Gets the stats of a file in the virtual file system (VFS).
2125
- *
2126
- * @param pathOrId - The path or id of the file.
2127
- * @returns The stats of the file if it exists, otherwise false.
2128
- */
2129
- statSync: (pathOrId: string, options?: StatSyncOptions & {
2130
- bigint?: false | undefined;
2131
- throwIfNoEntry: false;
2132
- }) => Stats | undefined;
2133
- /**
2134
- * Lists files in a given path.
2135
- *
2136
- * @param path - The path to list files from.
2137
- * @param options - Options for listing files, such as encoding and recursion.
2138
- * @returns An array of file names in the specified path.
2139
- */
2140
- readdirSync: (path: string, options?: {
2141
- encoding: BufferEncoding | null;
2142
- withFileTypes?: false | undefined;
2143
- recursive?: boolean | undefined;
2144
- } | BufferEncoding) => string[];
2145
- /**
2146
- * Lists files in a given path.
2147
- *
2148
- * @param path - The path to list files from.
2149
- * @param options - Options for listing files, such as encoding and recursion.
2150
- * @returns An array of file names in the specified path.
2151
- */
2152
- readdir: (path: string, options?: {
2153
- encoding: BufferEncoding | null;
2154
- withFileTypes?: false | undefined;
2155
- recursive?: boolean | undefined;
2156
- } | BufferEncoding) => Promise<string[]>;
2157
- /**
2158
- * Removes a file or symbolic link in the virtual file system (VFS).
2159
- *
2160
- * @param path - The path to the file to remove.
2161
- * @returns A promise that resolves when the file is removed.
2162
- */
2163
- unlinkSync: (path: PathLike, options?: ResolveFSOptions) => void;
2164
- /**
2165
- * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
2166
- *
2167
- * @param path - The path to the file to remove.
2168
- * @returns A promise that resolves when the file is removed.
2169
- */
2170
- unlink: (path: string, options?: ResolveFSOptions) => Promise<void>;
2171
- /**
2172
- * Removes a directory in the virtual file system (VFS).
2173
- *
2174
- * @param path - The path to create the directory at.
2175
- * @param options - Options for creating the directory.
2176
- */
2177
- rmdirSync: (path: PathLike, options?: RmDirOptions & ResolveFSOptions) => any;
2178
- /**
2179
- * Removes a directory in the virtual file system (VFS).
2180
- *
2181
- * @param path - The path to create the directory at.
2182
- * @param options - Options for creating the directory.
2183
- * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
2184
- */
2185
- rmdir: (path: PathLike, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
2186
- /**
2187
- * Removes a file in the virtual file system (VFS).
2188
- *
2189
- * @param path - The path to the file to remove.
2190
- * @param options - Options for removing the file.
2191
- * @returns A promise that resolves when the file is removed.
2192
- */
2193
- rm: (path: PathLike, options?: RmOptions & ResolveFSOptions) => Promise<void>;
2194
- /**
2195
- * Creates a directory in the virtual file system (VFS).
2196
- *
2197
- * @param path - The path to create the directory at.
2198
- * @param options - Options for creating the directory.
2199
- * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
2200
- */
2201
- mkdirSync: (path: PathLike, options?: MakeDirectoryOptions) => string | undefined;
2202
- /**
2203
- * Creates a directory in the virtual file system (VFS).
2204
- *
2205
- * @param path - The path to create the directory at.
2206
- * @param options - Options for creating the directory.
2207
- * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
2208
- */
2209
- mkdir: (path: PathLike, options?: MakeDirectoryOptions) => Promise<string | undefined>;
2210
- /**
2211
- * Reads a file from the virtual file system (VFS).
2212
- *
2213
- * @param pathOrId - The path or id of the file.
2214
- * @returns The contents of the file if it exists, otherwise undefined.
2215
- */
2216
- readFile: (pathOrId: string) => Promise<string | undefined>;
2217
- /**
2218
- * Reads a file from the virtual file system (VFS).
2219
- *
2220
- * @param pathOrId - The path or id of the file.
2221
- */
2222
- readFileSync: (pathOrId: string) => string | undefined;
2223
- /**
2224
- * Writes a file to the virtual file system (VFS).
2225
- *
2226
- * @param file - The path to the file.
2227
- * @param data - The contents of the file.
2228
- * @param options - Optional parameters for writing the file.
2229
- * @returns A promise that resolves when the file is written.
2230
- */
2231
- writeFile: (file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions) => Promise<void>;
2232
- /**
2233
- * Writes a file to the virtual file system (VFS).
2234
- *
2235
- * @param file - The path to the file.
2236
- * @param data - The contents of the file.
2237
- * @param options - Optional parameters for writing the file.
2238
- */
2239
- writeFileSync: (file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions) => void;
2240
- /**
2241
- * Adds a builtin module file to the virtual file system.
2242
- *
2243
- * @param id - The unique identifier for the builtin module file.
2244
- * @param path - The path to the builtin module file.
2245
- * @param contents - The contents of the builtin module file.
2246
- * @param options - Optional parameters for writing the builtin module file.
2247
- */
2248
- writeBuiltinFile: (id: string, path: string, contents: string, options?: WriteBuiltinFileOptions) => Promise<void>;
2249
- /**
2250
- * Adds an entry file to the virtual file system.
2251
- *
2252
- * @param name - The unique identifier for the entry file.
2253
- * @param contents - The contents of the entry file.
2254
- * @param options - Optional parameters for writing the entry file.
2255
- */
2256
- writeEntryFile: (name: string, contents: string, options?: WriteBuiltinFileOptions) => Promise<void>;
2257
- /**
2258
- * Writes a file to disk from the physical file system (on disk).
2259
- *
2260
- * @param path - The path to the file to write.
2261
- * @param contents - The contents of the file to write.
2262
- * @param options - Optional parameters for writing the file.
2263
- * @returns A promise that resolves when the file is written.
2264
- */
2265
- writeFileToDisk: (path: string, contents: string, options?: {
2266
- skipFormat?: boolean;
2267
- }) => Promise<void>;
2268
- /**
2269
- * Resolves a path or ID to a file path in the virtual file system.
2270
- *
2271
- * @param pathOrId - The path or id of the file to resolve.
2272
- * @param options - Optional parameters for resolving the path.
2273
- * @returns The resolved path of the file if it exists, otherwise false.
2274
- */
2275
- resolvePath: (pathOrId: string, options?: ResolvePathOptions) => string | false;
2276
- /**
2277
- * Resolves a path or ID to a file path in the virtual file system.
2278
- *
2279
- * @param pathOrId - The path or id of the file to resolve.
2280
- * @returns The resolved path of the file if it exists, otherwise false.
2281
- */
2282
- realpathSync: (pathOrId: string) => string;
2283
- /**
2284
- * Resolves a path or ID to a builtin module file id in the virtual file system.
2285
- *
2286
- * @param pathOrId - The path or id of the file to resolve.
2287
- * @param paths - Optional array of paths to search for the file.
2288
- * @returns The resolved id of the builtin module file if it exists, otherwise false.
2289
- */
2290
- resolveId: (pathOrId: string) => string | false;
2291
- /**
2292
- * Resolves a path based on TypeScript's `tsconfig.json` paths.
2293
- *
2294
- * @see https://www.typescriptlang.org/tsconfig#paths
2295
- *
2296
- * @param path - The path to check.
2297
- * @returns The resolved file path if it exists, otherwise undefined.
2298
- */
2299
- resolveTsconfigPath: (path: string) => string | false;
2300
- /**
2301
- * Resolves a package name based on TypeScript's `tsconfig.json` paths.
2302
- *
2303
- * @see https://www.typescriptlang.org/tsconfig#paths
2304
- *
2305
- * @param path - The path to check.
2306
- * @returns The resolved package name if it exists, otherwise undefined.
2307
- */
2308
- resolveTsconfigPathPackage: (path: string) => string | false;
2309
- /**
2310
- * A map of cached file paths to their underlying file content.
2311
- */
2312
- [__VFS_CACHE__]: Map<string, string>;
2313
- /**
2314
- * A reference to the underlying virtual file system.
2315
- */
2316
- [__VFS_VIRTUAL__]: Volume;
2317
- /**
2318
- * A reference to the underlying unified file system.
2319
- */
2320
- [__VFS_UNIFIED__]: IUnionFs;
2321
- }
2322
-
2323
- interface MetaInfo {
2324
- /**
2325
- * The checksum generated from the resolved options
2326
- */
2327
- checksum: string;
2328
- /**
2329
- * The build id
2330
- */
2331
- buildId: string;
2332
- /**
2333
- * The release id
2334
- */
2335
- releaseId: string;
2336
- /**
2337
- * The build timestamp
2338
- */
2339
- timestamp: number;
2340
- /**
2341
- * A hash that represents the path to the project root directory
2342
- */
2343
- projectRootHash: string;
2344
- /**
2345
- * A hash that represents the path to the project root directory
2346
- */
2347
- configHash: string;
2348
- /**
2349
- * A mapping of runtime ids to their corresponding file paths
2350
- */
2351
- builtinIdMap: Record<string, string>;
2352
- /**
2353
- * A mapping of virtual file paths to their corresponding file contents
2354
- */
2355
- virtualFiles: Record<string, string | null>;
2356
- }
2357
- interface Resolver extends Jiti {
2358
- plugin: Jiti;
2359
- }
2360
- type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
2361
- dataBuffer?: ArrayBuffer;
2362
- messageRoot?: SerializedTypes;
2363
- };
2364
- type ReflectionRecord<T extends Record<string, any> = Record<string, any>> = Record<string, Reflection<T>>;
2365
- interface InitContextOptions {
2366
- /**
2367
- * If false, the plugin will be loaded after all other plugins.
2368
- *
2369
- * @defaultValue true
2370
- */
2371
- isHighPriority: boolean;
2372
- }
2373
- interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2374
- /**
2375
- * The Storm workspace configuration
2376
- */
2377
- workspaceConfig: WorkspaceConfig;
2378
- /**
2379
- * An object containing the options provided to Powerlines
2380
- */
2381
- config: TResolvedConfig;
2382
- /**
2383
- * A logging function for the Powerlines engine
2384
- */
2385
- log: LogFn;
2386
- /**
2387
- * The metadata information
2388
- */
2389
- meta: MetaInfo;
2390
- /**
2391
- * The metadata information currently written to disk
2392
- */
2393
- persistedMeta?: MetaInfo;
2394
- /**
2395
- * The reflections found and used by Powerlines plugins
2396
- *
2397
- * @remarks
2398
- * These reflections are used by plugins to store data that will be passed around the Powerlines processes. Please note: these values are not persisted to disk by default.
2399
- */
2400
- reflections: {
2401
- [P in keyof unknown]: ReflectionRecord;
2402
- };
2403
- /**
2404
- * The parsed TypeScript configuration from the `tsconfig.json` file
2405
- */
2406
- tsconfig: ParsedTypeScriptConfig;
2407
- /**
2408
- * The entry points of the source code
2409
- */
2410
- entry: ResolvedEntryTypeDefinition[];
2411
- /**
2412
- * The relative path to the Powerlines workspace root directory
2413
- */
2414
- relativeToWorkspaceRoot: string;
2415
- /**
2416
- * The Powerlines artifacts directory
2417
- */
2418
- artifactsPath: string;
2419
- /**
2420
- * The path to the Powerlines builtin runtime modules directory
2421
- */
2422
- builtinsPath: string;
2423
- /**
2424
- * The path to the Powerlines entry modules directory
2425
- */
2426
- entryPath: string;
2427
- /**
2428
- * The path to the Powerlines TypeScript declaration files directory
2429
- */
2430
- dtsPath: string;
2431
- /**
2432
- * The path to a directory where the reflection data buffers (used by the build processes) are stored
2433
- */
2434
- dataPath: string;
2435
- /**
2436
- * The path to a directory where the project cache (used by the build processes) is stored
2437
- */
2438
- cachePath: string;
2439
- /**
2440
- * The Powerlines environment paths
2441
- */
2442
- envPaths: EnvPaths;
2443
- /**
2444
- * The file system path to the Powerlines package installation
2445
- */
2446
- powerlinesPath: string;
2447
- /**
2448
- * The dependency installations required by the project
2449
- */
2450
- dependencies: Record<string, string | Range>;
2451
- /**
2452
- * The development dependency installations required by the project
2453
- */
2454
- devDependencies: Record<string, string | Range>;
2455
- /**
2456
- * The project's `package.json` file content
2457
- */
2458
- packageJson: PackageJson;
2459
- /**
2460
- * The project's `project.json` file content
2461
- */
2462
- projectJson?: Record<string, any>;
2463
- /**
2464
- * The virtual file system manager used during the build process to reference generated runtime files
2465
- */
2466
- fs: VirtualFileSystemInterface;
2467
- /**
2468
- * The Jiti module resolver
2469
- */
2470
- resolver: Resolver;
2471
- /**
2472
- * A function to update the context fields using a new user configuration options
2473
- */
2474
- withUserConfig: (userConfig: UserConfig, options?: InitContextOptions) => Promise<void>;
2475
- /**
2476
- * A function to update the context fields using inline configuration options
2477
- */
2478
- withInlineConfig: (inlineConfig: InlineConfig, options?: InitContextOptions) => Promise<void>;
2479
- /**
2480
- * Create a new logger instance
2481
- *
2482
- * @param name - The name to use for the logger instance
2483
- * @returns A logger function
2484
- */
2485
- createLog: (name: string | null) => LogFn;
2486
- /**
2487
- * Extend the current logger instance with a new name
2488
- *
2489
- * @param name - The name to use for the extended logger instance
2490
- * @returns A logger function
2491
- */
2492
- extendLog: (name: string) => LogFn;
2493
- }
2494
- interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
2495
- /**
2496
- * The environment specific resolved configuration
2497
- */
2498
- environment: EnvironmentResolvedConfig;
2499
- /**
2500
- * An alternative property name for the {@link log} property
2501
- *
2502
- * @remarks
2503
- * This is provided for compatibility with other logging libraries that expect a `logger` property.
2504
- */
2505
- logger: LogFn;
2506
- }
2507
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & UnpluginBuildContext;
2508
-
2509
- type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
2510
- /**
2511
- * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
2512
- */
2513
- type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
2514
- type PluginFactory<TProps = unknown, in out TContext extends PluginContext = PluginContext> = (options: TProps) => Plugin<TContext>;
2515
- /**
2516
- * A configuration tuple for a Powerlines plugin.
2517
- */
2518
- type PluginConfigTuple<TProps = unknown, TContext extends PluginContext = PluginContext> = [string | PluginFactory<TProps, TContext>, TProps] | [Plugin<TContext>];
2519
- /**
2520
- * A configuration object for a Powerlines plugin.
2521
- */
2522
- type PluginConfigObject<TProps = unknown, TContext extends PluginContext = PluginContext> = {
2523
- plugin: string | PluginFactory<TProps, TContext>;
2524
- options: TProps;
2525
- } | {
2526
- plugin: Plugin<TContext>;
2527
- options?: never;
2528
- };
2529
- /**
2530
- * A configuration tuple for a Powerlines plugin.
2531
- */
2532
- type PluginConfig<TContext extends PluginContext = PluginContext, TProps = unknown> = string | PluginFactory<void, TContext> | Plugin<TContext> | PluginConfigTuple<TProps> | PluginConfigObject<TProps>;
2533
- type ProjectType = "application" | "library";
2534
- interface ESLintConfig {
2535
- eslintOptions?: any;
2536
- reportErrorsOnly?: boolean;
2537
- maxWarnings?: number;
2538
- formatter?: string | null;
2539
- outputFile?: string | null;
2540
- type?: "base" | "recommended" | "strict";
2541
- }
2542
- interface LintConfig {
2543
- /**
2544
- * Configuration options for ESLint
2545
- */
2546
- eslint?: ESLintConfig;
2547
- }
2548
- interface OutputConfig {
2549
- /**
2550
- * The path to output the final compiled files to
2551
- *
2552
- * @remarks
2553
- * If a value is not provided, Powerlines will attempt to:
2554
- * 1. Use the `outDir` value in the `tsconfig.json` file.
2555
- * 2. Use the `dist` directory in the project root directory.
2556
- *
2557
- * @defaultValue "dist/\{projectRoot\}"
2558
- */
2559
- outputPath?: string;
2560
- /**
2561
- * The format of the output files
2562
- *
2563
- * @defaultValue "virtual"
2564
- */
2565
- mode?: OutputModeType;
2566
- /**
2567
- * The path of the generated runtime declaration file relative to the workspace root.
2568
- *
2569
- * @defaultValue "\{projectRoot\}/powerlines.d.ts"
2570
- */
2571
- dts?: string | false;
2572
- /**
2573
- * A prefix to use for identifying builtin modules
2574
- *
2575
- * @remarks
2576
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
2577
- *
2578
- * @defaultValue "powerlines"
2579
- */
2580
- builtinPrefix?: string;
2581
- /**
2582
- * The folder where the generated runtime artifacts will be located
2583
- *
2584
- * @remarks
2585
- * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
2586
- *
2587
- * @defaultValue "\{projectRoot\}/.powerlines"
2588
- */
2589
- artifactsFolder?: string;
2590
- /**
2591
- * The module format of the output files
2592
- *
2593
- * @remarks
2594
- * This option can be a single format or an array of formats. If an array is provided, multiple builds will be generated for each format.
2595
- *
2596
- * @defaultValue "esm"
2597
- */
2598
- format?: Format | Format[];
2599
- /**
2600
- * A list of assets to copy to the output directory
2601
- *
2602
- * @remarks
2603
- * The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
2604
- */
2605
- assets?: Array<string | AssetGlob>;
2606
- }
2607
- interface BaseConfig {
2608
- /**
2609
- * The name of the project
2610
- */
2611
- name?: string;
2612
- /**
2613
- * The project display title
2614
- *
2615
- * @remarks
2616
- * This option is used in documentation generation and other places where a human-readable title is needed.
2617
- */
2618
- title?: string;
2619
- /**
2620
- * A description of the project
2621
- *
2622
- * @remarks
2623
- * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
2624
- */
2625
- description?: string;
2626
- /**
2627
- * The log level to use for the Powerlines processes.
2628
- *
2629
- * @defaultValue "info"
2630
- */
2631
- logLevel?: LogLevelLabel | null;
2632
- /**
2633
- * A custom logger function to use for logging messages
2634
- */
2635
- customLogger?: LogFn;
2636
- /**
2637
- * Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
2638
- *
2639
- * @defaultValue "production"
2640
- */
2641
- mode?: "development" | "test" | "production";
2642
- /**
2643
- * The entry point(s) for the application
2644
- */
2645
- entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
2646
- /**
2647
- * Configuration for linting the source code
2648
- */
2649
- lint?: LintConfig | false;
2650
- /**
2651
- * Configuration for the output of the build process
2652
- */
2653
- output?: OutputConfig;
2654
- /**
2655
- * Configuration for the transformation of the source code
2656
- */
2657
- transform?: Record<string, any>;
2658
- /**
2659
- * Options to to provide to the build process
2660
- */
2661
- build?: BuildConfig;
2662
- /**
2663
- * Configuration for documentation generation
2664
- *
2665
- * @remarks
2666
- * This configuration will be used by the documentation generation plugins during the `docs` command.
2667
- */
2668
- docs?: Record<string, any>;
2669
- /**
2670
- * The path to the tsconfig file to be used by the compiler
2671
- *
2672
- * @remarks
2673
- * If a value is not provided, the plugin will attempt to find the `tsconfig.json` file in the project root directory. The parsed tsconfig compiler options will be merged with the {@link Options.tsconfigRaw} value (if provided).
2674
- *
2675
- * @defaultValue "\{projectRoot\}/tsconfig.json"
2676
- */
2677
- tsconfig?: string;
2678
- /**
2679
- * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
2680
- *
2681
- * @see https://www.typescriptlang.org/tsconfig
2682
- *
2683
- * @remarks
2684
- * If populated, this option takes higher priority than `tsconfig`
2685
- */
2686
- tsconfigRaw?: TSConfig;
2687
- }
2688
- interface EnvironmentConfig extends BaseConfig {
2689
- /**
2690
- * Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
2691
- *
2692
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
2693
- */
2694
- mainFields?: string[];
2695
- /**
2696
- * Array of strings indicating what conditions should be used for module resolution.
2697
- */
2698
- conditions?: string[];
2699
- /**
2700
- * Array of strings indicating what conditions should be used for external modules.
2701
- */
2702
- externalConditions?: string[];
2703
- /**
2704
- * Array of strings indicating what file extensions should be used for module resolution.
2705
- *
2706
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
2707
- */
2708
- extensions?: string[];
2709
- /**
2710
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
2711
- *
2712
- * @remarks
2713
- * This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
2714
- */
2715
- dedupe?: string[];
2716
- /**
2717
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
2718
- */
2719
- builtins?: (string | RegExp)[];
2720
- /**
2721
- * Configuration options for the preview server
2722
- */
2723
- preview?: PreviewOptions;
2724
- /**
2725
- * A flag indicating whether the build is for a Server-Side Rendering environment.
2726
- */
2727
- ssr?: boolean;
2728
- /**
2729
- * Define if this environment is used for Server-Side Rendering
2730
- *
2731
- * @defaultValue "server" (if it isn't the client environment)
2732
- */
2733
- consumer?: "client" | "server";
2734
- }
2735
- interface CommonUserConfig extends BaseConfig {
2736
- /**
2737
- * The type of project being built
2738
- *
2739
- * @defaultValue "application"
2740
- */
2741
- type?: ProjectType;
2742
- /**
2743
- * The root directory of the project
2744
- */
2745
- root: string;
2746
- /**
2747
- * The root directory of the project's source code
2748
- *
2749
- * @defaultValue "\{root\}/src"
2750
- */
2751
- sourceRoot?: string;
2752
- /**
2753
- * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
2754
- *
2755
- * @remarks
2756
- * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
2757
- */
2758
- configFile?: string;
2759
- /**
2760
- * Should the Powerlines CLI processes skip installing missing packages?
2761
- *
2762
- * @remarks
2763
- * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
2764
- *
2765
- * @defaultValue false
2766
- */
2767
- skipInstalls?: boolean;
2768
- /**
2769
- * Should the compiler processes skip any improvements that make use of cache?
2770
- *
2771
- * @defaultValue false
2772
- */
2773
- skipCache?: boolean;
2774
- /**
2775
- * A list of resolvable paths to plugins used during the build process
2776
- */
2777
- plugins?: PluginConfig<PluginContext<any>>[];
2778
- /**
2779
- * Environment-specific configurations
2780
- */
2781
- environments?: Record<string, EnvironmentConfig>;
2782
- /**
2783
- * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
2784
- *
2785
- * @defaultValue "powerlines"
2786
- */
2787
- framework?: string;
2788
- }
2789
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
2790
- build?: TBuildConfig & {
2791
- /**
2792
- * The build variant being used by the Powerlines engine.
2793
- */
2794
- variant?: TBuildVariant;
2795
- };
2796
- override?: Partial<TBuildResolvedConfig>;
2797
- };
2798
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "release" | "clean";
2799
- /**
2800
- * The configuration provided while executing Powerlines commands.
2801
- */
2802
- type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
2803
- /**
2804
- * A string identifier for the Powerlines command being executed
2805
- */
2806
- command: PowerlinesCommand;
2807
- };
2808
-
2809
- interface GenerateDocsOptions {
2810
- frontmatter?: Record<string, any>;
2811
- outputPath?: string;
2812
- project: ProjectReflection;
2813
- }
2814
- interface TypeDocPluginOptions extends Partial<Omit<TypeDocOptions, "out">> {
2815
- /**
2816
- * The output path for the generated documentation.
2817
- *
2818
- * @defaultValue "docs/generated/api-reference"
2819
- */
2820
- outputPath?: string;
2821
- /**
2822
- * The base URL for the documentation site.
2823
- *
2824
- * @defaultValue "/docs/"
2825
- */
2826
- basePath?: string;
2827
- /**
2828
- * Options to be passed to the TypeDoc generator.
2829
- *
2830
- * @remarks
2831
- * These options will be override any other values passed to the TypeDoc generator.
2832
- */
2833
- override?: Partial<TypeDocOptions>;
2834
- }
2835
- interface TypeDocPluginUserConfig extends UserConfig {
2836
- /**
2837
- * Options for the TypeDoc plugin.
2838
- */
2839
- docs?: {
2840
- typedoc: TypeDocPluginOptions;
2841
- };
2842
- }
2843
- interface TypeDocPluginResolvedConfig extends ResolvedConfig {
2844
- /**
2845
- * Options for the TypeDoc plugin.
2846
- */
2847
- docs: {
2848
- typedoc: TypeDocOptions & {
2849
- outputPath: string;
2850
- baseUrl: string;
2851
- override?: Partial<TypeDocOptions>;
2852
- };
2853
- };
2854
- }
2855
- type TypeDocPluginContext<TResolvedConfig extends TypeDocPluginResolvedConfig = TypeDocPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
2856
- /**
2857
- * The initialized TypeDoc application.
2858
- */
2859
- typedoc: Application;
2860
- };
2861
- declare type __ΩGenerateDocsOptions = any[];
2862
- declare type __ΩTypeDocPluginOptions = any[];
2863
- declare type __ΩTypeDocPluginUserConfig = any[];
2864
- declare type __ΩTypeDocPluginResolvedConfig = any[];
2865
- declare type __ΩTypeDocPluginContext = any[];
2866
-
2867
- export type { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig };