@powerlines/plugin-date 0.12.56 → 0.12.58

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.
Files changed (63) hide show
  1. package/README.md +8 -2
  2. package/dist/components/date-fns.cjs +1 -519
  3. package/dist/components/date-fns.mjs +1 -0
  4. package/dist/components/dayjs.cjs +1 -464
  5. package/dist/components/dayjs.mjs +1 -0
  6. package/dist/components/index.cjs +1 -1
  7. package/dist/components/index.mjs +1 -0
  8. package/dist/components/luxon.cjs +1 -468
  9. package/dist/components/luxon.mjs +1 -0
  10. package/dist/components/moment.cjs +1 -454
  11. package/dist/components/moment.mjs +1 -0
  12. package/dist/components-MTvNCZDU.mjs +1 -0
  13. package/dist/{components/date-fns.js → date-fns-CY0chrAO.cjs} +5 -11
  14. package/dist/date-fns-e9ZSXC-n.mjs +513 -0
  15. package/dist/{components/dayjs.js → dayjs-C8RNvs_i.cjs} +4 -10
  16. package/dist/dayjs-DdpR-Gm_.mjs +458 -0
  17. package/dist/file-header-CL5ggH4h.cjs +10 -0
  18. package/dist/file-header-DOeykm47.mjs +10 -0
  19. package/dist/index.cjs +66 -6
  20. package/dist/index.mjs +64 -0
  21. package/dist/{components/luxon.js → luxon-C4TR9kDJ.mjs} +4 -10
  22. package/dist/luxon-oeMoLSAd.cjs +462 -0
  23. package/dist/{components/moment.js → moment-D7ZhINWA.mjs} +5 -11
  24. package/dist/moment-ZKt5-ae-.cjs +448 -0
  25. package/dist/plugin-G4qbpIjB.mjs +1 -0
  26. package/dist/runtime-DztkBZpw.cjs +0 -0
  27. package/dist/runtime-cDYyRPa0.mjs +1 -0
  28. package/dist/types/index.cjs +1 -1
  29. package/dist/types/index.mjs +1 -0
  30. package/dist/types/plugin.cjs +1 -1
  31. package/dist/types/plugin.mjs +1 -0
  32. package/dist/types/runtime.cjs +1 -1
  33. package/dist/types/runtime.mjs +1 -0
  34. package/dist/types-C5ggNT4K.mjs +1 -0
  35. package/dist/types-CKPddlfS.cjs +0 -0
  36. package/package.json +39 -28
  37. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  38. package/dist/chunk-UCUR73HG.js +0 -7
  39. package/dist/components/date-fns.d.cts +0 -38
  40. package/dist/components/date-fns.d.ts +0 -38
  41. package/dist/components/dayjs.d.cts +0 -38
  42. package/dist/components/dayjs.d.ts +0 -38
  43. package/dist/components/index.d.cts +0 -32
  44. package/dist/components/index.d.ts +0 -32
  45. package/dist/components/index.js +0 -1
  46. package/dist/components/luxon.d.cts +0 -38
  47. package/dist/components/luxon.d.ts +0 -38
  48. package/dist/components/moment.d.cts +0 -38
  49. package/dist/components/moment.d.ts +0 -38
  50. package/dist/index.d.cts +0 -41
  51. package/dist/index.d.ts +0 -41
  52. package/dist/index.js +0 -7
  53. package/dist/plugin-CSk7OuX1.d.cts +0 -4121
  54. package/dist/plugin-CSk7OuX1.d.ts +0 -4121
  55. package/dist/types/index.d.cts +0 -29
  56. package/dist/types/index.d.ts +0 -29
  57. package/dist/types/index.js +0 -1
  58. package/dist/types/plugin.d.cts +0 -28
  59. package/dist/types/plugin.d.ts +0 -28
  60. package/dist/types/runtime.d.cts +0 -710
  61. package/dist/types/runtime.d.ts +0 -710
  62. /package/dist/{types/plugin.js → components-DTkri-mp.cjs} +0 -0
  63. /package/dist/{types/runtime.js → plugin-OjUZLLkc.cjs} +0 -0
@@ -1,4121 +0,0 @@
1
- import { Children } from '@alloy-js/core/jsx-runtime';
2
- import { ReflectionClass } from '@deepkit/type';
3
- import * as $ from '@stryke/capnp';
4
- import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
5
- import { Format } from '@storm-software/build-tools/types';
6
- import { LogLevelLabel } from '@storm-software/config-tools/types';
7
- import { StormWorkspaceConfig } from '@storm-software/config/types';
8
- import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
9
- import { TypeDefinitionParameter, TypeDefinition, DotenvConfiguration } from '@stryke/types/configuration';
10
- import { AssetGlob } from '@stryke/types/file';
11
- import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
12
- import { BabelAPI } from '@babel/helper-plugin-utils';
13
- import { EnvPaths } from '@stryke/env/get-env-paths';
14
- import { FetchRequestOptions } from '@stryke/http/fetch';
15
- import { PackageJson } from '@stryke/types/package-json';
16
- import { Jiti } from 'jiti';
17
- import { SourceMap } from 'magic-string';
18
- import { ParserOptions, ParseResult } from 'oxc-parser';
19
- import { Range } from 'semver';
20
- import { Project } from 'ts-morph';
21
- import { RequestInfo, Response } from 'undici';
22
- import { UnpluginContext, UnpluginMessage, ExternalIdResult, UnpluginBuildContext, TransformResult as TransformResult$1, HookFilter, UnpluginOptions } from 'unplugin';
23
- import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
24
- import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
25
- import ts from 'typescript';
26
- import { ArrayValues } from '@stryke/types/array';
27
- import { DotenvParseOutput } from '@stryke/env/types';
28
-
29
- type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
30
- interface BuildConfig {
31
- /**
32
- * The platform to build the project for
33
- *
34
- * @defaultValue "neutral"
35
- */
36
- platform?: "node" | "browser" | "neutral";
37
- /**
38
- * Array of strings indicating the polyfills to include for the build.
39
- *
40
- * @remarks
41
- * This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
42
- *
43
- * @example
44
- * ```ts
45
- * {
46
- * polyfill: ['{projectRoot}/custom-polyfill.ts']
47
- * }
48
- * ```
49
- */
50
- polyfill?: string[];
51
- /**
52
- * 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.
53
- *
54
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
55
- */
56
- mainFields?: string[];
57
- /**
58
- * Array of strings indicating what conditions should be used for module resolution.
59
- */
60
- conditions?: string[];
61
- /**
62
- * Array of strings indicating what file extensions should be used for module resolution.
63
- *
64
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
65
- */
66
- extensions?: string[];
67
- /**
68
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
69
- *
70
- * @remarks
71
- * 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.
72
- */
73
- dedupe?: string[];
74
- /**
75
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
76
- */
77
- builtins?: (string | RegExp)[];
78
- /**
79
- * Define global variable replacements.
80
- *
81
- * @remarks
82
- * This option allows you to specify global constants that will be replaced in the code during the build process. It is similar to the `define` option in esbuild and Vite, enabling you to replace specific identifiers with constant expressions at build time.
83
- *
84
- * @example
85
- * ```ts
86
- * {
87
- * define: {
88
- * __VERSION__: '"1.0.0"',
89
- * __DEV__: 'process.env.NODE_ENV !== "production"'
90
- * }
91
- * }
92
- * ```
93
- *
94
- * @see https://esbuild.github.io/api/#define
95
- * @see https://vitejs.dev/config/build-options.html#define
96
- * @see https://github.com/rollup/plugins/tree/master/packages/replace
97
- */
98
- define?: Record<string, any>;
99
- /**
100
- * Global variables that will have import statements injected where necessary
101
- *
102
- * @remarks
103
- * This option allows you to specify global variables that should be automatically imported from specified modules whenever they are used in the code. This is particularly useful for polyfilling Node.js globals in a browser environment.
104
- *
105
- * @example
106
- * ```ts
107
- * {
108
- * inject: {
109
- * process: 'process/browser',
110
- * Buffer: ['buffer', 'Buffer'],
111
- * }
112
- * }
113
- * ```
114
- *
115
- * @see https://github.com/rollup/plugins/tree/master/packages/inject
116
- */
117
- inject?: Record<string, string | string[]>;
118
- /**
119
- * The alias mappings to use for module resolution during the build process.
120
- *
121
- * @remarks
122
- * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
123
- *
124
- * @example
125
- * ```ts
126
- * {
127
- * alias: {
128
- * "@utils": "./src/utils",
129
- * "@components": "./src/components"
130
- * }
131
- * }
132
- * ```
133
- *
134
- * @see https://github.com/rollup/plugins/tree/master/packages/alias
135
- */
136
- alias?: Record<string, string> | Array<{
137
- find: string | RegExp;
138
- replacement: string;
139
- }>;
140
- /**
141
- * A list of modules that should not be bundled, even if they are external dependencies.
142
- *
143
- * @remarks
144
- * 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.
145
- */
146
- external?: (string | RegExp)[];
147
- /**
148
- * A list of modules that should always be bundled, even if they are external dependencies.
149
- */
150
- noExternal?: (string | RegExp)[];
151
- /**
152
- * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
153
- */
154
- skipNodeModulesBundle?: boolean;
155
- /**
156
- * An optional set of override options to apply to the selected build variant.
157
- *
158
- * @remarks
159
- * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
160
- */
161
- override?: Record<string, any>;
162
- }
163
- type BuildResolvedConfig = Omit<BuildConfig, "override">;
164
-
165
- type BabelPluginPass<TState = unknown> = PluginPass & TState;
166
- type BabelTransformPluginFilter = (code: string, id: string) => boolean;
167
- type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
168
- name: string;
169
- log: LogFn;
170
- api: BabelAPI;
171
- options: TOptions;
172
- context: TContext;
173
- dirname: string;
174
- }) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
175
- $$name: string;
176
- };
177
- type BabelTransformPluginOptions<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = PluginItem | BabelTransformPlugin<TContext, TOptions, TState> | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions] | [
178
- BabelTransformPlugin<TContext, TOptions, TState>,
179
- TOptions,
180
- BabelTransformPluginFilter
181
- ];
182
-
183
- declare enum StoragePreset {
184
- VIRTUAL = "virtual",
185
- FS = "fs"
186
- }
187
- /**
188
- * Interface defining the methods and properties for a storage adapter.
189
- */
190
- interface StorageAdapter {
191
- /**
192
- * A name identifying the storage adapter type.
193
- */
194
- name: string;
195
- /**
196
- * Checks if a key exists in the storage.
197
- *
198
- * @param key - The key to check for existence.
199
- * @returns A promise that resolves to `true` if the key exists, otherwise `false`.
200
- */
201
- exists: (key: string) => Promise<boolean>;
202
- /**
203
- * Synchronously checks if a key exists in the storage.
204
- *
205
- * @param key - The key to check for existence.
206
- * @returns Returns `true` if the key exists, otherwise `false`.
207
- */
208
- existsSync: (key: string) => boolean;
209
- /**
210
- * Read a value associated with a key from the storage.
211
- *
212
- * @param key - The key to read the value for.
213
- * @returns A promise that resolves to the value if found, otherwise `null`.
214
- */
215
- get: (key: string) => Promise<string | null>;
216
- /**
217
- * Synchronously reads the value associated with a key from the storage.
218
- *
219
- * @param key - The key to read the value for.
220
- * @returns The value if found, otherwise `null`.
221
- */
222
- getSync: (key: string) => string | null;
223
- /**
224
- * Writes a value to the storage for the given key.
225
- *
226
- * @param key - The key to associate the value with.
227
- * @param value - The value to store.
228
- */
229
- set: (key: string, value: string) => Promise<void>;
230
- /**
231
- * Synchronously writes a value to the storage for the given key.
232
- *
233
- * @param key - The key to associate the value with.
234
- * @param value - The value to store.
235
- */
236
- setSync: (key: string, value: string) => void;
237
- /**
238
- * Removes a value from the storage.
239
- *
240
- * @param key - The key whose value should be removed.
241
- */
242
- remove: (key: string) => Promise<void>;
243
- /**
244
- * Synchronously removes a value from the storage.
245
- *
246
- * @param key - The key whose value should be removed.
247
- */
248
- removeSync: (key: string) => void;
249
- /**
250
- * Remove all entries from the storage that match the provided base path.
251
- *
252
- * @param base - The base path or prefix to clear entries from.
253
- */
254
- clear: (base?: string) => Promise<void>;
255
- /**
256
- * Synchronously remove all entries from the storage that match the provided base path.
257
- *
258
- * @param base - The base path or prefix to clear entries from.
259
- */
260
- clearSync: (base?: string) => void;
261
- /**
262
- * Lists all keys under the provided base path.
263
- *
264
- * @param base - The base path or prefix to list keys from.
265
- * @returns A promise resolving to the list of keys.
266
- */
267
- list: (base?: string) => Promise<string[]>;
268
- /**
269
- * Synchronously lists all keys under the provided base path.
270
- *
271
- * @param base - The base path or prefix to list keys from.
272
- * @returns The list of keys.
273
- */
274
- listSync: (base?: string) => string[];
275
- /**
276
- * Releases any resources held by the storage adapter.
277
- */
278
- dispose: () => MaybePromise<void>;
279
- }
280
- /**
281
- * A mapping of file paths to storage adapter names and their corresponding {@link StorageAdapter} instances.
282
- */
283
- type StoragePort = Record<string, StorageAdapter>;
284
- interface VirtualFileMetadata {
285
- /**
286
- * The identifier for the file data.
287
- */
288
- id: string;
289
- /**
290
- * The timestamp of the virtual file.
291
- */
292
- timestamp: number;
293
- /**
294
- * The type of the file.
295
- *
296
- * @remarks
297
- * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
298
- * - `builtin`: Indicates that the file is a built-in module provided by the system.
299
- * - `entry`: Indicates that the file is an entry point for execution.
300
- * - `normal`: Indicates that the file is a standard file without any special role.
301
- */
302
- type: string;
303
- /**
304
- * Additional metadata associated with the file.
305
- */
306
- properties: Record<string, string>;
307
- }
308
- interface VirtualFileData {
309
- /**
310
- * The identifier for the file data.
311
- */
312
- id?: string;
313
- /**
314
- * The contents of the virtual file.
315
- */
316
- code: string;
317
- /**
318
- * The type of the file.
319
- *
320
- * @remarks
321
- * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
322
- * - `builtin`: Indicates that the file is a built-in module provided by the system.
323
- * - `entry`: Indicates that the file is an entry point for execution.
324
- * - `normal`: Indicates that the file is a standard file without any special role.
325
- */
326
- type?: string;
327
- /**
328
- * Additional metadata associated with the file.
329
- */
330
- properties?: Record<string, string>;
331
- }
332
- interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
333
- /**
334
- * An additional name for the file.
335
- */
336
- path: string;
337
- /**
338
- * The timestamp of the virtual file.
339
- */
340
- timestamp: number;
341
- }
342
- interface WriteOptions {
343
- /**
344
- * Should the file skip formatting before being written?
345
- *
346
- * @defaultValue false
347
- */
348
- skipFormat?: boolean;
349
- /**
350
- * Additional metadata for the file.
351
- */
352
- meta?: VirtualFileMetadata;
353
- }
354
- interface ResolveOptions extends ResolveOptions$1 {
355
- /**
356
- * If true, the module is being resolved as an entry point.
357
- */
358
- isEntry?: boolean;
359
- /**
360
- * If true, the resolver will skip using the cache when resolving modules.
361
- */
362
- skipCache?: boolean;
363
- /**
364
- * An array of external modules or patterns to exclude from resolution.
365
- */
366
- external?: (string | RegExp)[];
367
- /**
368
- * An array of modules or patterns to include in the resolution, even if they are marked as external.
369
- */
370
- noExternal?: (string | RegExp)[];
371
- /**
372
- * An array of patterns to match when resolving modules.
373
- */
374
- skipNodeModulesBundle?: boolean;
375
- }
376
- interface VirtualFileSystemInterface {
377
- /**
378
- * The underlying file metadata.
379
- */
380
- metadata: Readonly<Record<string, VirtualFileMetadata>>;
381
- /**
382
- * A map of file paths to their module ids.
383
- */
384
- ids: Readonly<Record<string, string>>;
385
- /**
386
- * A map of module ids to their file paths.
387
- */
388
- paths: Readonly<Record<string, string>>;
389
- /**
390
- * Checks if a file exists in the virtual file system (VFS).
391
- *
392
- * @param path - The path or id of the file.
393
- * @returns `true` if the file exists, otherwise `false`.
394
- */
395
- exists: (path: string) => Promise<boolean>;
396
- /**
397
- * Synchronously Checks if a file exists in the virtual file system (VFS).
398
- *
399
- * @param path - The path or id of the file.
400
- * @returns `true` if the file exists, otherwise `false`.
401
- */
402
- existsSync: (path: string) => boolean;
403
- /**
404
- * Checks if a file is virtual in the virtual file system (VFS).
405
- *
406
- * @param path - The path or id of the file.
407
- * @returns `true` if the file is virtual, otherwise `false`.
408
- */
409
- isVirtual: (path: string) => boolean;
410
- /**
411
- * Gets the metadata of a file in the virtual file system (VFS).
412
- *
413
- * @param path - The path or id of the file.
414
- * @returns The metadata of the file if it exists, otherwise undefined.
415
- */
416
- getMetadata: (path: string) => VirtualFileMetadata | undefined;
417
- /**
418
- * Lists files in a given path.
419
- *
420
- * @param path - The path to list files from.
421
- * @returns An array of file names in the specified path.
422
- */
423
- listSync: (path: string) => string[];
424
- /**
425
- * Lists files in a given path.
426
- *
427
- * @param path - The path to list files from.
428
- * @returns An array of file names in the specified path.
429
- */
430
- list: (path: string) => Promise<string[]>;
431
- /**
432
- * Removes a file or symbolic link in the virtual file system (VFS).
433
- *
434
- * @param path - The path to the file to remove.
435
- * @returns A promise that resolves when the file is removed.
436
- */
437
- removeSync: (path: string) => void;
438
- /**
439
- * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
440
- *
441
- * @param path - The path to the file to remove.
442
- * @returns A promise that resolves when the file is removed.
443
- */
444
- remove: (path: string) => Promise<void>;
445
- /**
446
- * Reads a file from the virtual file system (VFS).
447
- *
448
- * @param path - The path or id of the file.
449
- * @returns The contents of the file if it exists, otherwise undefined.
450
- */
451
- read: (path: string) => Promise<string | undefined>;
452
- /**
453
- * Reads a file from the virtual file system (VFS).
454
- *
455
- * @param path - The path or id of the file.
456
- */
457
- readSync: (path: string) => string | undefined;
458
- /**
459
- * Writes a file to the virtual file system (VFS).
460
- *
461
- * @param path - The path to the file.
462
- * @param data - The contents of the file.
463
- * @param options - Options for writing the file.
464
- * @returns A promise that resolves when the file is written.
465
- */
466
- write: (path: string, data: string, options?: WriteOptions) => Promise<void>;
467
- /**
468
- * Writes a file to the virtual file system (VFS).
469
- *
470
- * @param path - The path to the file.
471
- * @param data - The contents of the file.
472
- * @param options - Options for writing the file.
473
- */
474
- writeSync: (path: string, data: string, options?: WriteOptions) => void;
475
- /**
476
- * Moves a file from one path to another in the virtual file system (VFS).
477
- *
478
- * @param srcPath - The source path to move
479
- * @param destPath - The destination path to move to
480
- */
481
- move: (srcPath: string, destPath: string) => Promise<void>;
482
- /**
483
- * Synchronously moves a file from one path to another in the virtual file system (VFS).
484
- *
485
- * @param srcPath - The source path to move
486
- * @param destPath - The destination path to move to
487
- */
488
- moveSync: (srcPath: string, destPath: string) => void;
489
- /**
490
- * Copies a file from one path to another in the virtual file system (VFS).
491
- *
492
- * @param srcPath - The source path to copy
493
- * @param destPath - The destination path to copy to
494
- */
495
- copy: (srcPath: string, destPath: string) => Promise<void>;
496
- /**
497
- * Synchronously copies a file from one path to another in the virtual file system (VFS).
498
- *
499
- * @param srcPath - The source path to copy
500
- * @param destPath - The destination path to copy to
501
- */
502
- copySync: (srcPath: string, destPath: string) => void;
503
- /**
504
- * Glob files in the virtual file system (VFS) based on the provided pattern(s).
505
- *
506
- * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
507
- * @returns An array of file paths matching the provided pattern(s)
508
- */
509
- glob: (pattern: string | string[]) => Promise<string[]>;
510
- /**
511
- * Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
512
- *
513
- * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
514
- * @returns An array of file paths matching the provided pattern(s)
515
- */
516
- globSync: (pattern: string | string[]) => string[];
517
- /**
518
- * A helper function to resolve modules using the Jiti resolver
519
- *
520
- * @remarks
521
- * This function can be used to resolve modules relative to the project root directory.
522
- *
523
- * @example
524
- * ```ts
525
- * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
526
- * ```
527
- *
528
- * @param id - The module to resolve.
529
- * @param importer - An optional path to the importer module.
530
- * @param options - Additional resolution options.
531
- * @returns A promise that resolves to the resolved module path.
532
- */
533
- resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
534
- /**
535
- * A synchronous helper function to resolve modules using the Jiti resolver
536
- *
537
- * @remarks
538
- * This function can be used to resolve modules relative to the project root directory.
539
- *
540
- * @example
541
- * ```ts
542
- * const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
543
- * ```
544
- *
545
- * @param id - The module to resolve.
546
- * @param importer - An optional path to the importer module.
547
- * @param options - Additional resolution options.
548
- * @returns The resolved module path.
549
- */
550
- resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
551
- /**
552
- * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
553
- */
554
- dispose: () => Promise<void>;
555
- }
556
-
557
- type ReflectionMode = "default" | "explicit" | "never";
558
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
559
- /**
560
- * Defines the level of reflection to be used during the transpilation process.
561
- *
562
- * @remarks
563
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
564
- * - `minimal` - Only the essential type information is captured.
565
- * - `normal` - Additional type information is captured, including some contextual data.
566
- * - `verbose` - All available type information is captured, including detailed contextual data.
567
- */
568
- type ReflectionLevel = "minimal" | "normal" | "verbose";
569
- interface DeepkitOptions {
570
- /**
571
- * Either true to activate reflection for all files compiled using this tsconfig,
572
- * or a list of globs/file paths relative to this tsconfig.json.
573
- * Globs/file paths can be prefixed with a ! to exclude them.
574
- */
575
- reflection?: RawReflectionMode;
576
- /**
577
- * Defines the level of reflection to be used during the transpilation process.
578
- *
579
- * @remarks
580
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
581
- * - `minimal` - Only the essential type information is captured.
582
- * - `normal` - Additional type information is captured, including some contextual data.
583
- * - `verbose` - All available type information is captured, including detailed contextual data.
584
- */
585
- reflectionLevel?: ReflectionLevel;
586
- }
587
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
588
- /**
589
- * The TypeScript compiler configuration.
590
- *
591
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
592
- */
593
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
594
- /**
595
- * Either true to activate reflection for all files compiled using this tsconfig,
596
- * or a list of globs/file paths relative to this tsconfig.json.
597
- * Globs/file paths can be prefixed with a ! to exclude them.
598
- */
599
- reflection?: RawReflectionMode;
600
- /**
601
- * Defines the level of reflection to be used during the transpilation process.
602
- *
603
- * @remarks
604
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
605
- * - `minimal` - Only the essential type information is captured.
606
- * - `normal` - Additional type information is captured, including some contextual data.
607
- * - `verbose` - All available type information is captured, including detailed contextual data.
608
- */
609
- reflectionLevel?: ReflectionLevel;
610
- /**
611
- * Instructs the TypeScript compiler how to compile `.ts` files.
612
- */
613
- compilerOptions?: TSCompilerOptions;
614
- }
615
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
616
- originalTsconfigJson: TsConfigJson;
617
- tsconfigJson: TSConfig;
618
- tsconfigFilePath: string;
619
- };
620
-
621
- type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
622
- /**
623
- * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
624
- */
625
- type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
626
- type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext>>;
627
- /**
628
- * A configuration tuple for a Powerlines plugin.
629
- */
630
- type PluginConfigTuple<TContext extends PluginContext = PluginContext, TOptions = any> = [string | PluginFactory<TContext, TOptions>, TOptions] | [Plugin<TContext>];
631
- /**
632
- * A configuration object for a Powerlines plugin.
633
- */
634
- type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions = any> = {
635
- plugin: string | PluginFactory<TContext, TOptions>;
636
- options: TOptions;
637
- } | {
638
- plugin: Plugin<TContext>;
639
- options?: never;
640
- };
641
- /**
642
- * A configuration tuple for a Powerlines plugin.
643
- */
644
- type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
645
- type ProjectType = "application" | "library";
646
- type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
647
- /**
648
- * The Babel plugins to be used during the build process
649
- */
650
- plugins?: BabelTransformPluginOptions[];
651
- /**
652
- * The Babel presets to be used during the build process
653
- */
654
- presets?: BabelTransformPluginOptions[];
655
- };
656
- interface DeployConfig {
657
- /**
658
- * The deployment variant being used by the Powerlines engine.
659
- *
660
- * @example
661
- * ```ts
662
- * export default defineConfig({
663
- * deploy: {
664
- * variant: "cloudflare"
665
- * }
666
- * });
667
- *
668
- * ```
669
- */
670
- variant?: string;
671
- }
672
- interface OutputConfig {
673
- /**
674
- * The path to output the final compiled files to
675
- *
676
- * @remarks
677
- * If a value is not provided, Powerlines will attempt to:
678
- * 1. Use the `outDir` value in the `tsconfig.json` file.
679
- * 2. Use the `dist` directory in the project root directory.
680
- *
681
- * @defaultValue "dist/\{projectRoot\}"
682
- */
683
- outputPath?: string;
684
- /**
685
- * The output directory path for the project build.
686
- *
687
- * @remarks
688
- * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
689
- *
690
- * @defaultValue "\{projectRoot\}/dist"
691
- */
692
- buildPath?: string;
693
- /**
694
- * The folder where the generated runtime artifacts will be located
695
- *
696
- * @remarks
697
- * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
698
- *
699
- * @defaultValue "\{projectRoot\}/.powerlines"
700
- */
701
- artifactsPath?: string;
702
- /**
703
- * The path of the generated runtime declaration file relative to the workspace root.
704
- *
705
- * @defaultValue "\{projectRoot\}/powerlines.d.ts"
706
- */
707
- dts?: string | false;
708
- /**
709
- * A prefix to use for identifying builtin modules
710
- *
711
- * @remarks
712
- * 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"`.
713
- *
714
- * @defaultValue "powerlines"
715
- */
716
- builtinPrefix?: string;
717
- /**
718
- * The module format of the output files
719
- *
720
- * @remarks
721
- * 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.
722
- *
723
- * @defaultValue "esm"
724
- */
725
- format?: Format | Format[];
726
- /**
727
- * A list of assets to copy to the output directory
728
- *
729
- * @remarks
730
- * 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.
731
- */
732
- assets?: Array<string | AssetGlob>;
733
- /**
734
- * A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
735
- *
736
- * @remarks
737
- * If a string preset is provided, it must be one of the following values:
738
- * - `"virtual"`: Uses the local file system for storage.
739
- * - `"fs"`: Uses an in-memory virtual file system for storage.
740
- *
741
- * If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
742
- *
743
- * @defaultValue "virtual"
744
- */
745
- storage?: StoragePort | StoragePreset;
746
- }
747
- interface BaseConfig {
748
- /**
749
- * The entry point(s) for the application
750
- */
751
- entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
752
- /**
753
- * Configuration for the output of the build process
754
- */
755
- output?: OutputConfig;
756
- /**
757
- * Configuration for linting the source code
758
- *
759
- * @remarks
760
- * If set to `false`, linting will be disabled.
761
- */
762
- lint?: Record<string, any> | false;
763
- /**
764
- * Configuration for testing the source code
765
- *
766
- * @remarks
767
- * If set to `false`, testing will be disabled.
768
- */
769
- test?: Record<string, any> | false;
770
- /**
771
- * Configuration for the transformation of the source code
772
- */
773
- transform?: Record<string, any>;
774
- /**
775
- * Configuration provided to build processes
776
- *
777
- * @remarks
778
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
779
- */
780
- build?: BuildConfig;
781
- /**
782
- * Configuration for documentation generation
783
- *
784
- * @remarks
785
- * This configuration will be used by the documentation generation plugins during the `docs` command.
786
- */
787
- docs?: Record<string, any>;
788
- /**
789
- * Configuration for deploying the source code
790
- *
791
- * @remarks
792
- * If set to `false`, the deployment will be disabled.
793
- */
794
- deploy?: DeployConfig | false;
795
- /**
796
- * The path to the tsconfig file to be used by the compiler
797
- *
798
- * @remarks
799
- * 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).
800
- *
801
- * @defaultValue "\{projectRoot\}/tsconfig.json"
802
- */
803
- tsconfig?: string;
804
- /**
805
- * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
806
- *
807
- * @see https://www.typescriptlang.org/tsconfig
808
- *
809
- * @remarks
810
- * If populated, this option takes higher priority than `tsconfig`
811
- */
812
- tsconfigRaw?: TSConfig;
813
- }
814
- interface EnvironmentConfig extends BaseConfig {
815
- /**
816
- * Configuration options for the preview server
817
- */
818
- preview?: PreviewOptions;
819
- /**
820
- * A flag indicating whether the build is for a Server-Side Rendering environment.
821
- */
822
- ssr?: boolean;
823
- /**
824
- * Define if this environment is used for Server-Side Rendering
825
- *
826
- * @defaultValue "server" (if it isn't the client environment)
827
- */
828
- consumer?: "client" | "server";
829
- }
830
- interface CommonUserConfig extends BaseConfig {
831
- /**
832
- * The name of the project
833
- */
834
- name?: string;
835
- /**
836
- * The project display title
837
- *
838
- * @remarks
839
- * This option is used in documentation generation and other places where a human-readable title is needed.
840
- */
841
- title?: string;
842
- /**
843
- * A description of the project
844
- *
845
- * @remarks
846
- * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
847
- */
848
- description?: string;
849
- /**
850
- * The log level to use for the Powerlines processes.
851
- *
852
- * @defaultValue "info"
853
- */
854
- logLevel?: LogLevelLabel | null;
855
- /**
856
- * A custom logger function to use for logging messages
857
- */
858
- customLogger?: LogFn;
859
- /**
860
- * 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.
861
- *
862
- * @defaultValue "production"
863
- */
864
- mode?: "development" | "test" | "production";
865
- /**
866
- * The type of project being built
867
- *
868
- * @defaultValue "application"
869
- */
870
- type?: ProjectType;
871
- /**
872
- * The root directory of the project
873
- */
874
- root: string;
875
- /**
876
- * The root directory of the project's source code
877
- *
878
- * @defaultValue "\{root\}/src"
879
- */
880
- sourceRoot?: string;
881
- /**
882
- * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
883
- *
884
- * @remarks
885
- * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
886
- */
887
- configFile?: string;
888
- /**
889
- * Should the Powerlines CLI processes skip installing missing packages?
890
- *
891
- * @remarks
892
- * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
893
- *
894
- * @defaultValue false
895
- */
896
- skipInstalls?: boolean;
897
- /**
898
- * Should the compiler processes skip any improvements that make use of cache?
899
- *
900
- * @defaultValue false
901
- */
902
- skipCache?: boolean;
903
- /**
904
- * A list of resolvable paths to plugins used during the build process
905
- */
906
- plugins?: PluginConfig<PluginContext<any>>[];
907
- /**
908
- * Environment-specific configurations
909
- */
910
- environments?: Record<string, EnvironmentConfig>;
911
- /**
912
- * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
913
- *
914
- * @remarks
915
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
916
- *
917
- * @defaultValue "powerlines"
918
- */
919
- framework?: string;
920
- }
921
- interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
922
- /**
923
- * Configuration provided to build processes
924
- *
925
- * @remarks
926
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
927
- */
928
- build: Omit<TBuildConfig, "override"> & {
929
- /**
930
- * The build variant being used by the Powerlines engine.
931
- */
932
- variant?: TBuildVariant;
933
- /**
934
- * An optional set of override options to apply to the selected build variant.
935
- *
936
- * @remarks
937
- * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
938
- */
939
- override?: Partial<TBuildResolvedConfig>;
940
- };
941
- }
942
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
943
- /**
944
- * The configuration provided while executing Powerlines commands.
945
- */
946
- type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
947
- /**
948
- * A string identifier for the Powerlines command being executed
949
- */
950
- command: PowerlinesCommand;
951
- };
952
-
953
- interface ResolvedEntryTypeDefinition extends TypeDefinition {
954
- /**
955
- * The user provided entry point in the source code
956
- */
957
- input: TypeDefinition;
958
- /**
959
- * An optional name to use in the package export during the build process
960
- */
961
- output?: string;
962
- }
963
- type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
964
- type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
965
- /**
966
- * The name of the environment
967
- */
968
- name: string;
969
- /**
970
- * Configuration options for the preview server
971
- */
972
- preview?: ResolvedPreviewOptions;
973
- };
974
- type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
975
- type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
976
- assets: ResolvedAssetGlob[];
977
- }> & Pick<OutputConfig, "storage">;
978
- /**
979
- * The resolved options for the Powerlines project configuration.
980
- */
981
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
982
- /**
983
- * The configuration options that were provided inline to the Powerlines CLI.
984
- */
985
- inlineConfig: InlineConfig<TUserConfig>;
986
- /**
987
- * The original configuration options that were provided by the user to the Powerlines process.
988
- */
989
- userConfig: TUserConfig;
990
- /**
991
- * A string identifier for the Powerlines command being executed.
992
- */
993
- command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
994
- /**
995
- * The root directory of the project's source code
996
- *
997
- * @defaultValue "\{projectRoot\}/src"
998
- */
999
- sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
1000
- /**
1001
- * The root directory of the project.
1002
- */
1003
- projectRoot: NonUndefined<TUserConfig["root"]>;
1004
- /**
1005
- * The type of project being built.
1006
- */
1007
- projectType: NonUndefined<TUserConfig["type"]>;
1008
- /**
1009
- * The output configuration options to use for the build process
1010
- */
1011
- output: OutputResolvedConfig;
1012
- /**
1013
- * Configuration provided to build processes
1014
- *
1015
- * @remarks
1016
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1017
- */
1018
- build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
1019
- /**
1020
- * The log level to use for the Powerlines processes.
1021
- *
1022
- * @defaultValue "info"
1023
- */
1024
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
1025
- };
1026
-
1027
- /**
1028
- * The severity level of a {@link LogRecord}.
1029
- */
1030
- type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
1031
- declare const LogLevel: {
1032
- DEBUG: LogLevel;
1033
- INFO: LogLevel;
1034
- WARNING: LogLevel;
1035
- ERROR: LogLevel;
1036
- FATAL: LogLevel;
1037
- };
1038
- interface MetaInfo {
1039
- /**
1040
- * The checksum generated from the resolved options
1041
- */
1042
- checksum: string;
1043
- /**
1044
- * The build id
1045
- */
1046
- buildId: string;
1047
- /**
1048
- * The release id
1049
- */
1050
- releaseId: string;
1051
- /**
1052
- * The build timestamp
1053
- */
1054
- timestamp: number;
1055
- /**
1056
- * A hash that represents the path to the project root directory
1057
- */
1058
- projectRootHash: string;
1059
- /**
1060
- * A hash that represents the path to the project root directory
1061
- */
1062
- configHash: string;
1063
- }
1064
- interface Resolver extends Jiti {
1065
- plugin: Jiti;
1066
- }
1067
- interface TransformResult {
1068
- code: string;
1069
- map: SourceMap | null;
1070
- }
1071
- interface InitContextOptions {
1072
- /**
1073
- * If false, the plugin will be loaded after all other plugins.
1074
- *
1075
- * @defaultValue true
1076
- */
1077
- isHighPriority: boolean;
1078
- }
1079
- interface FetchOptions extends FetchRequestOptions {
1080
- /**
1081
- * An indicator specifying that the request should bypass any caching
1082
- */
1083
- skipCache?: boolean;
1084
- }
1085
- interface ParseOptions extends ParserOptions {
1086
- /**
1087
- * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1088
- */
1089
- allowReturnOutsideFunction?: boolean;
1090
- }
1091
- /**
1092
- * The unresolved Powerlines context.
1093
- *
1094
- * @remarks
1095
- * This context is used before the user configuration has been fully resolved after the `config`.
1096
- */
1097
- interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
1098
- /**
1099
- * The Storm workspace configuration
1100
- */
1101
- workspaceConfig: WorkspaceConfig;
1102
- /**
1103
- * An object containing the options provided to Powerlines
1104
- */
1105
- config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1106
- projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1107
- sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1108
- output: TResolvedConfig["output"];
1109
- };
1110
- /**
1111
- * A logging function for the Powerlines engine
1112
- */
1113
- log: LogFn;
1114
- /**
1115
- * A logging function for fatal messages
1116
- */
1117
- fatal: (message: string | UnpluginMessage) => void;
1118
- /**
1119
- * A logging function for error messages
1120
- */
1121
- error: (message: string | UnpluginMessage) => void;
1122
- /**
1123
- * A logging function for warning messages
1124
- */
1125
- warn: (message: string | UnpluginMessage) => void;
1126
- /**
1127
- * A logging function for informational messages
1128
- */
1129
- info: (message: string | UnpluginMessage) => void;
1130
- /**
1131
- * A logging function for debug messages
1132
- */
1133
- debug: (message: string | UnpluginMessage) => void;
1134
- /**
1135
- * A logging function for trace messages
1136
- */
1137
- trace: (message: string | UnpluginMessage) => void;
1138
- /**
1139
- * The metadata information
1140
- */
1141
- meta: MetaInfo;
1142
- /**
1143
- * The metadata information currently written to disk
1144
- */
1145
- persistedMeta?: MetaInfo;
1146
- /**
1147
- * The Powerlines artifacts directory
1148
- */
1149
- artifactsPath: string;
1150
- /**
1151
- * The path to the Powerlines builtin runtime modules directory
1152
- */
1153
- builtinsPath: string;
1154
- /**
1155
- * The path to the Powerlines entry modules directory
1156
- */
1157
- entryPath: string;
1158
- /**
1159
- * The path to the Powerlines TypeScript declaration files directory
1160
- */
1161
- dtsPath: string;
1162
- /**
1163
- * The path to a directory where the reflection data buffers (used by the build processes) are stored
1164
- */
1165
- dataPath: string;
1166
- /**
1167
- * The path to a directory where the project cache (used by the build processes) is stored
1168
- */
1169
- cachePath: string;
1170
- /**
1171
- * The Powerlines environment paths
1172
- */
1173
- envPaths: EnvPaths;
1174
- /**
1175
- * The file system path to the Powerlines package installation
1176
- */
1177
- powerlinesPath: string;
1178
- /**
1179
- * The relative path to the Powerlines workspace root directory
1180
- */
1181
- relativeToWorkspaceRoot: string;
1182
- /**
1183
- * The project's `package.json` file content
1184
- */
1185
- packageJson: PackageJson & Record<string, any>;
1186
- /**
1187
- * The project's `project.json` file content
1188
- */
1189
- projectJson?: Record<string, any>;
1190
- /**
1191
- * The dependency installations required by the project
1192
- */
1193
- dependencies: Record<string, string | Range>;
1194
- /**
1195
- * The development dependency installations required by the project
1196
- */
1197
- devDependencies: Record<string, string | Range>;
1198
- /**
1199
- * The parsed TypeScript configuration from the `tsconfig.json` file
1200
- */
1201
- tsconfig: ParsedTypeScriptConfig;
1202
- /**
1203
- * The entry points of the source code
1204
- */
1205
- entry: ResolvedEntryTypeDefinition[];
1206
- /**
1207
- * The virtual file system manager used during the build process to reference generated runtime files
1208
- */
1209
- fs: VirtualFileSystemInterface;
1210
- /**
1211
- * The Jiti module resolver
1212
- */
1213
- resolver: Resolver;
1214
- /**
1215
- * The builtin module id that exist in the Powerlines virtual file system
1216
- */
1217
- builtins: string[];
1218
- /**
1219
- * The {@link Project} instance used for type reflection and module manipulation
1220
- *
1221
- * @see https://ts-morph.com/
1222
- *
1223
- * @remarks
1224
- * This instance is created lazily on first access.
1225
- */
1226
- program: Project;
1227
- /**
1228
- * A function to perform HTTP fetch requests
1229
- *
1230
- * @remarks
1231
- * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1232
- *
1233
- * @example
1234
- * ```ts
1235
- * const response = await context.fetch("https://api.example.com/data");
1236
- * const data = await response.json();
1237
- * ```
1238
- *
1239
- * @see https://github.com/nodejs/undici
1240
- *
1241
- * @param input - The URL to fetch.
1242
- * @param options - The fetch request options.
1243
- * @returns A promise that resolves to a response returned by the fetch.
1244
- */
1245
- fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1246
- /**
1247
- * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1248
- *
1249
- * @remarks
1250
- * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1251
- *
1252
- * @example
1253
- * ```ts
1254
- * const ast = context.parse("const x: number = 42;");
1255
- * ```
1256
- *
1257
- * @see https://rollupjs.org/plugin-development/#this-parse
1258
- * @see https://github.com/oxc/oxc
1259
- *
1260
- * @param code - The source code to parse.
1261
- * @param options - The options to pass to the parser.
1262
- * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1263
- */
1264
- parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1265
- /**
1266
- * A helper function to resolve modules using the Jiti resolver
1267
- *
1268
- * @remarks
1269
- * This function can be used to resolve modules relative to the project root directory.
1270
- *
1271
- * @example
1272
- * ```ts
1273
- * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
1274
- * ```
1275
- *
1276
- * @param id - The module to resolve.
1277
- * @param importer - An optional path to the importer module.
1278
- * @param options - Additional resolution options.
1279
- * @returns A promise that resolves to the resolved module path.
1280
- */
1281
- resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
1282
- /**
1283
- * A helper function to load modules using the Jiti resolver
1284
- *
1285
- * @remarks
1286
- * This function can be used to load modules relative to the project root directory.
1287
- *
1288
- * @example
1289
- * ```ts
1290
- * const module = await context.load("some-module", "/path/to/importer");
1291
- * ```
1292
- *
1293
- * @param id - The module to load.
1294
- * @returns A promise that resolves to the loaded module.
1295
- */
1296
- load: (id: string) => Promise<TransformResult | undefined>;
1297
- /**
1298
- * The Powerlines builtin virtual files
1299
- */
1300
- getBuiltins: () => Promise<VirtualFile[]>;
1301
- /**
1302
- * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
1303
- *
1304
- * @param code - The source code of the builtin file
1305
- * @param id - The unique identifier of the builtin file
1306
- * @param path - An optional path to write the builtin file to
1307
- */
1308
- emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
1309
- /**
1310
- * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1311
- *
1312
- * @param code - The source code of the entry file
1313
- * @param path - An optional path to write the entry file to
1314
- */
1315
- emitEntry: (code: string, path: string) => Promise<void>;
1316
- /**
1317
- * A function to update the context fields using a new user configuration options
1318
- */
1319
- withUserConfig: (userConfig: UserConfig, options?: InitContextOptions) => Promise<void>;
1320
- /**
1321
- * A function to update the context fields using inline configuration options
1322
- */
1323
- withInlineConfig: (inlineConfig: InlineConfig, options?: InitContextOptions) => Promise<void>;
1324
- /**
1325
- * Create a new logger instance
1326
- *
1327
- * @param name - The name to use for the logger instance
1328
- * @returns A logger function
1329
- */
1330
- createLog: (name: string | null) => LogFn;
1331
- /**
1332
- * Extend the current logger instance with a new name
1333
- *
1334
- * @param name - The name to use for the extended logger instance
1335
- * @returns A logger function
1336
- */
1337
- extendLog: (name: string) => LogFn;
1338
- /**
1339
- * Generates a checksum representing the current context state
1340
- *
1341
- * @returns A promise that resolves to a string representing the checksum
1342
- */
1343
- generateChecksum: () => Promise<string>;
1344
- }
1345
- type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
1346
- /**
1347
- * The fully resolved Powerlines configuration
1348
- */
1349
- config: TResolvedConfig;
1350
- };
1351
- interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
1352
- /**
1353
- * The environment specific resolved configuration
1354
- */
1355
- environment: EnvironmentResolvedConfig;
1356
- /**
1357
- * An alternative property name for the {@link log} property
1358
- *
1359
- * @remarks
1360
- * This is provided for compatibility with other logging libraries that expect a `logger` property.
1361
- */
1362
- logger: LogFn;
1363
- }
1364
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1365
-
1366
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1367
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1368
-
1369
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1370
- /**
1371
- * The order in which the plugin should be applied.
1372
- */
1373
- order?: "pre" | "post" | null | undefined;
1374
- /**
1375
- * A filter to determine when the hook should be called.
1376
- */
1377
- filter?: Pick<HookFilter, TFilter>;
1378
- /**
1379
- * The hook function to be called.
1380
- */
1381
- handler: THookFunction;
1382
- }
1383
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1384
- /**
1385
- * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1386
- */
1387
- interface GenerateTypesResult {
1388
- directives?: string[];
1389
- code: string;
1390
- }
1391
- type DeepPartial<T> = {
1392
- [K in keyof T]?: DeepPartial<T[K]>;
1393
- };
1394
- type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
1395
- interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
1396
- /**
1397
- * A function that returns configuration options to be merged with the build context's options.
1398
- *
1399
- * @remarks
1400
- * 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.
1401
- *
1402
- * @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.
1403
- *
1404
- * @see https://vitejs.dev/guide/api-plugin#config
1405
- *
1406
- * @param this - The build context.
1407
- * @param config - The partial configuration object to be modified.
1408
- * @returns A promise that resolves to a partial configuration object.
1409
- */
1410
- config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
1411
- /**
1412
- * 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.
1413
- *
1414
- * @remarks
1415
- * 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.
1416
- *
1417
- * @see https://vitejs.dev/guide/api-plugin#configenvironment
1418
- *
1419
- * @param this - The build context.
1420
- * @param name - The name of the environment being configured.
1421
- * @param environment - The Vite-like environment object containing information about the current build environment.
1422
- * @returns A promise that resolves when the hook is complete.
1423
- */
1424
- configEnvironment: (this: TContext, name: string, environment: EnvironmentConfig) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;
1425
- /**
1426
- * A hook that is called when the plugin is resolved.
1427
- *
1428
- * @see https://vitejs.dev/guide/api-plugin#configresolved
1429
- *
1430
- * @param this - The build context.
1431
- * @returns A promise that resolves when the hook is complete.
1432
- */
1433
- configResolved: (this: TContext) => MaybePromise<void>;
1434
- /**
1435
- * A hook that is called to overwrite the generated declaration types file (.d.ts). The generated type definitions should describe the built-in modules/logic added during the `prepare` task.
1436
- *
1437
- * @param this - The build context.
1438
- * @param code - The source code to generate types for.
1439
- * @returns A promise that resolves when the hook is complete.
1440
- */
1441
- generateTypes: (this: TContext, code: string) => MaybePromise<GenerateTypesResult | string | undefined | null>;
1442
- /**
1443
- * A hook that is called at the start of the build process.
1444
- *
1445
- * @param this - The build context and unplugin build context.
1446
- * @returns A promise that resolves when the hook is complete.
1447
- */
1448
- buildStart: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1449
- /**
1450
- * A hook that is called at the end of the build process.
1451
- *
1452
- * @param this - The build context and unplugin build context.
1453
- * @returns A promise that resolves when the hook is complete.
1454
- */
1455
- buildEnd: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1456
- /**
1457
- * A hook that is called to transform the source code.
1458
- *
1459
- * @param this - The build context, unplugin build context, and unplugin context.
1460
- * @param code - The source code to transform.
1461
- * @param id - The identifier of the source code.
1462
- * @returns A promise that resolves when the hook is complete.
1463
- */
1464
- transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>;
1465
- /**
1466
- * A hook that is called to load the source code.
1467
- *
1468
- * @param this - The build context, unplugin build context, and unplugin context.
1469
- * @param id - The identifier of the source code.
1470
- * @returns A promise that resolves when the hook is complete.
1471
- */
1472
- load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>;
1473
- /**
1474
- * A hook that is called to resolve the identifier of the source code.
1475
- *
1476
- * @param this - The build context, unplugin build context, and unplugin context.
1477
- * @param id - The identifier of the source code.
1478
- * @param importer - The importer of the source code.
1479
- * @param options - The options for resolving the identifier.
1480
- * @returns A promise that resolves when the hook is complete.
1481
- */
1482
- resolveId: (this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1483
- isEntry: boolean;
1484
- }) => MaybePromise<string | ExternalIdResult | null | undefined>;
1485
- /**
1486
- * A hook that is called to write the bundle to disk.
1487
- *
1488
- * @param this - The build context.
1489
- * @returns A promise that resolves when the hook is complete.
1490
- */
1491
- writeBundle: (this: TContext) => MaybePromise<void>;
1492
- }
1493
- type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant] = Required<UnpluginOptions>[TBuildVariant]> = {
1494
- [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];
1495
- };
1496
- type PluginHooks<TContext extends PluginContext = PluginContext> = {
1497
- [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]>;
1498
- } & {
1499
- /**
1500
- * A function that returns configuration options to be merged with the build context's options.
1501
- *
1502
- * @remarks
1503
- * 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.
1504
- *
1505
- * @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.
1506
- *
1507
- * @see https://vitejs.dev/guide/api-plugin#config
1508
- *
1509
- * @param this - The build context.
1510
- * @param config - The partial configuration object to be modified.
1511
- * @returns A promise that resolves to a partial configuration object.
1512
- */
1513
- config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
1514
- /**
1515
- * A hook that is called to transform the source code.
1516
- *
1517
- * @param this - The build context, unplugin build context, and unplugin context.
1518
- * @param code - The source code to transform.
1519
- * @param id - The identifier of the source code.
1520
- * @returns A promise that resolves when the hook is complete.
1521
- */
1522
- transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>, "code" | "id">;
1523
- /**
1524
- * A hook that is called to load the source code.
1525
- *
1526
- * @param this - The build context, unplugin build context, and unplugin context.
1527
- * @param id - The identifier of the source code.
1528
- * @returns A promise that resolves when the hook is complete.
1529
- */
1530
- load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>, "id">;
1531
- /**
1532
- * A hook that is called to resolve the identifier of the source code.
1533
- *
1534
- * @param this - The build context, unplugin build context, and unplugin context.
1535
- * @param id - The identifier of the source code.
1536
- * @param importer - The importer of the source code.
1537
- * @param options - The options for resolving the identifier.
1538
- * @returns A promise that resolves when the hook is complete.
1539
- */
1540
- resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1541
- isEntry: boolean;
1542
- }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
1543
- };
1544
- type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1545
- [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1546
- };
1547
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1548
- /**
1549
- * The name of the plugin, for use in deduplication, error messages and logs.
1550
- */
1551
- name: string;
1552
- /**
1553
- * An API object that can be used for inter-plugin communication.
1554
- *
1555
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
1556
- */
1557
- api?: Record<string, any>;
1558
- /**
1559
- * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.
1560
- *
1561
- * @remarks
1562
- * The Plugin invocation order is as follows:
1563
- * - `enforce: 'pre'` plugins
1564
- * - `order: 'pre'` plugin hooks
1565
- * - any other plugins (normal)
1566
- * - `order: 'post'` plugin hooks
1567
- * - `enforce: 'post'` plugins
1568
- *
1569
- * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering
1570
- * @see https://rollupjs.org/plugin-development/#build-hooks
1571
- * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post
1572
- * @see https://esbuild.github.io/plugins/#concepts
1573
- */
1574
- enforce?: "pre" | "post";
1575
- /**
1576
- * A function to determine if two plugins are the same and can be de-duplicated.
1577
- *
1578
- * @remarks
1579
- * If this is not provided, plugins are de-duplicated by comparing their names.
1580
- *
1581
- * @param other - The other plugin to compare against.
1582
- * @returns `true` if the two plugins are the same, `false` otherwise.
1583
- */
1584
- dedupe?: false | ((other: Plugin<any>) => boolean);
1585
- /**
1586
- * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1587
- */
1588
- dependsOn?: PluginConfig<any>[];
1589
- /**
1590
- * Define environments where this plugin should be active. By default, the plugin is active in all environments.
1591
- *
1592
- * @param environment - The environment to check.
1593
- * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1594
- */
1595
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
1596
- }
1597
-
1598
- declare const ReflectionKind: {
1599
- readonly NEVER: 0;
1600
- readonly ANY: 1;
1601
- readonly UNKNOWN: 2;
1602
- readonly VOID: 3;
1603
- readonly OBJECT: 4;
1604
- readonly STRING: 5;
1605
- readonly NUMBER: 6;
1606
- readonly BOOLEAN: 7;
1607
- readonly SYMBOL: 8;
1608
- readonly BIGINT: 9;
1609
- readonly NULL: 10;
1610
- readonly UNDEFINED: 11;
1611
- readonly REGEXP: 12;
1612
- readonly LITERAL: 13;
1613
- readonly TEMPLATE_LITERAL: 14;
1614
- readonly PROPERTY: 15;
1615
- readonly METHOD: 16;
1616
- readonly FUNCTION: 17;
1617
- readonly PARAMETER: 18;
1618
- readonly PROMISE: 19;
1619
- readonly CLASS: 20;
1620
- readonly TYPE_PARAMETER: 21;
1621
- readonly ENUM: 22;
1622
- readonly UNION: 23;
1623
- readonly INTERSECTION: 24;
1624
- readonly ARRAY: 25;
1625
- readonly TUPLE: 26;
1626
- readonly TUPLE_MEMBER: 27;
1627
- readonly ENUM_MEMBER: 28;
1628
- readonly REST: 29;
1629
- readonly OBJECT_LITERAL: 30;
1630
- readonly INDEX_SIGNATURE: 31;
1631
- readonly PROPERTY_SIGNATURE: 32;
1632
- readonly METHOD_SIGNATURE: 33;
1633
- readonly INFER: 34;
1634
- readonly CALL_SIGNATURE: 35;
1635
- };
1636
- type ReflectionKind = (typeof ReflectionKind)[keyof typeof ReflectionKind];
1637
- declare const ReflectionVisibility: {
1638
- readonly PUBLIC: 0;
1639
- readonly PROTECTED: 1;
1640
- readonly PRIVATE: 2;
1641
- };
1642
- type ReflectionVisibility = (typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
1643
- declare class TagsReflection extends $.Struct {
1644
- static readonly _capnp: {
1645
- displayName: string;
1646
- id: string;
1647
- size: $.ObjectSize;
1648
- };
1649
- _adoptAlias(value: $.Orphan<$.List<string>>): void;
1650
- _disownAlias(): $.Orphan<$.List<string>>;
1651
- get alias(): $.List<string>;
1652
- _hasAlias(): boolean;
1653
- _initAlias(length: number): $.List<string>;
1654
- set alias(value: $.List<string>);
1655
- get title(): string;
1656
- set title(value: string);
1657
- get hidden(): boolean;
1658
- set hidden(value: boolean);
1659
- get readonly(): boolean;
1660
- set readonly(value: boolean);
1661
- get ignore(): boolean;
1662
- set ignore(value: boolean);
1663
- get internal(): boolean;
1664
- set internal(value: boolean);
1665
- _adoptPermission(value: $.Orphan<$.List<string>>): void;
1666
- _disownPermission(): $.Orphan<$.List<string>>;
1667
- get permission(): $.List<string>;
1668
- _hasPermission(): boolean;
1669
- _initPermission(length: number): $.List<string>;
1670
- set permission(value: $.List<string>);
1671
- get domain(): string;
1672
- set domain(value: string);
1673
- toString(): string;
1674
- }
1675
- declare const DefaultValueReflection_Value_Which: {
1676
- readonly UNDEFINED: 0;
1677
- readonly BOOLEAN: 1;
1678
- readonly INTEGER: 2;
1679
- readonly FLOAT: 3;
1680
- readonly STRING: 4;
1681
- };
1682
- type DefaultValueReflection_Value_Which = (typeof DefaultValueReflection_Value_Which)[keyof typeof DefaultValueReflection_Value_Which];
1683
- declare class DefaultValueReflection_Value extends $.Struct {
1684
- static readonly UNDEFINED: 0;
1685
- static readonly BOOLEAN: 1;
1686
- static readonly INTEGER: 2;
1687
- static readonly FLOAT: 3;
1688
- static readonly STRING: 4;
1689
- static readonly _capnp: {
1690
- displayName: string;
1691
- id: string;
1692
- size: $.ObjectSize;
1693
- };
1694
- get _isUndefined(): boolean;
1695
- set undefined(_: true);
1696
- get boolean(): boolean;
1697
- get _isBoolean(): boolean;
1698
- set boolean(value: boolean);
1699
- get integer(): number;
1700
- get _isInteger(): boolean;
1701
- set integer(value: number);
1702
- get float(): number;
1703
- get _isFloat(): boolean;
1704
- set float(value: number);
1705
- get string(): string;
1706
- get _isString(): boolean;
1707
- set string(value: string);
1708
- toString(): string;
1709
- which(): DefaultValueReflection_Value_Which;
1710
- }
1711
- declare class DefaultValueReflection extends $.Struct {
1712
- static readonly _capnp: {
1713
- displayName: string;
1714
- id: string;
1715
- size: $.ObjectSize;
1716
- };
1717
- get value(): DefaultValueReflection_Value;
1718
- _initValue(): DefaultValueReflection_Value;
1719
- toString(): string;
1720
- }
1721
- declare class SerializedTypeReference extends $.Struct {
1722
- static readonly _capnp: {
1723
- displayName: string;
1724
- id: string;
1725
- size: $.ObjectSize;
1726
- };
1727
- get id(): number;
1728
- set id(value: number);
1729
- toString(): string;
1730
- }
1731
- declare class IndexAccessOrigin extends $.Struct {
1732
- static readonly _capnp: {
1733
- displayName: string;
1734
- id: string;
1735
- size: $.ObjectSize;
1736
- };
1737
- _adoptContainer(value: $.Orphan<SerializedTypeReference>): void;
1738
- _disownContainer(): $.Orphan<SerializedTypeReference>;
1739
- get container(): SerializedTypeReference;
1740
- _hasContainer(): boolean;
1741
- _initContainer(): SerializedTypeReference;
1742
- set container(value: SerializedTypeReference);
1743
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
1744
- _disownIndex(): $.Orphan<SerializedTypeReference>;
1745
- get index(): SerializedTypeReference;
1746
- _hasIndex(): boolean;
1747
- _initIndex(): SerializedTypeReference;
1748
- set index(value: SerializedTypeReference);
1749
- toString(): string;
1750
- }
1751
- declare class SerializedTypeObjectLiteral extends $.Struct {
1752
- static readonly _capnp: {
1753
- displayName: string;
1754
- id: string;
1755
- size: $.ObjectSize;
1756
- };
1757
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1758
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1759
- static _Types: $.ListCtor<SerializedTypeReference>;
1760
- get typeName(): string;
1761
- set typeName(value: string);
1762
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1763
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1764
- get typeArguments(): $.List<SerializedTypeReference>;
1765
- _hasTypeArguments(): boolean;
1766
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1767
- set typeArguments(value: $.List<SerializedTypeReference>);
1768
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1769
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1770
- get indexAccessOrigin(): IndexAccessOrigin;
1771
- _hasIndexAccessOrigin(): boolean;
1772
- _initIndexAccessOrigin(): IndexAccessOrigin;
1773
- set indexAccessOrigin(value: IndexAccessOrigin);
1774
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1775
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1776
- get decorators(): $.List<SerializedTypeReference>;
1777
- _hasDecorators(): boolean;
1778
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1779
- set decorators(value: $.List<SerializedTypeReference>);
1780
- get kind(): ReflectionKind;
1781
- set kind(value: ReflectionKind);
1782
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1783
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
1784
- get types(): $.List<SerializedTypeReference>;
1785
- _hasTypes(): boolean;
1786
- _initTypes(length: number): $.List<SerializedTypeReference>;
1787
- set types(value: $.List<SerializedTypeReference>);
1788
- _adoptTags(value: $.Orphan<TagsReflection>): void;
1789
- _disownTags(): $.Orphan<TagsReflection>;
1790
- get tags(): TagsReflection;
1791
- _hasTags(): boolean;
1792
- _initTags(): TagsReflection;
1793
- set tags(value: TagsReflection);
1794
- toString(): string;
1795
- }
1796
- declare class SerializedTypeClassType extends $.Struct {
1797
- static readonly _capnp: {
1798
- displayName: string;
1799
- id: string;
1800
- size: $.ObjectSize;
1801
- };
1802
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1803
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1804
- static _ExtendsArguments: $.ListCtor<SerializedTypeReference>;
1805
- static _Arguments: $.ListCtor<SerializedTypeReference>;
1806
- static _Types: $.ListCtor<SerializedTypeReference>;
1807
- get typeName(): string;
1808
- set typeName(value: string);
1809
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1810
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1811
- get typeArguments(): $.List<SerializedTypeReference>;
1812
- _hasTypeArguments(): boolean;
1813
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1814
- set typeArguments(value: $.List<SerializedTypeReference>);
1815
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1816
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1817
- get indexAccessOrigin(): IndexAccessOrigin;
1818
- _hasIndexAccessOrigin(): boolean;
1819
- _initIndexAccessOrigin(): IndexAccessOrigin;
1820
- set indexAccessOrigin(value: IndexAccessOrigin);
1821
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1822
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1823
- get decorators(): $.List<SerializedTypeReference>;
1824
- _hasDecorators(): boolean;
1825
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1826
- set decorators(value: $.List<SerializedTypeReference>);
1827
- get kind(): ReflectionKind;
1828
- set kind(value: ReflectionKind);
1829
- get name(): string;
1830
- set name(value: string);
1831
- get globalObject(): boolean;
1832
- set globalObject(value: boolean);
1833
- get classType(): string;
1834
- set classType(value: string);
1835
- _adoptExtendsArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1836
- _disownExtendsArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1837
- get extendsArguments(): $.List<SerializedTypeReference>;
1838
- _hasExtendsArguments(): boolean;
1839
- _initExtendsArguments(length: number): $.List<SerializedTypeReference>;
1840
- set extendsArguments(value: $.List<SerializedTypeReference>);
1841
- _adoptArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1842
- _disownArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1843
- get arguments(): $.List<SerializedTypeReference>;
1844
- _hasArguments(): boolean;
1845
- _initArguments(length: number): $.List<SerializedTypeReference>;
1846
- set arguments(value: $.List<SerializedTypeReference>);
1847
- _adoptSuperClass(value: $.Orphan<SerializedTypeReference>): void;
1848
- _disownSuperClass(): $.Orphan<SerializedTypeReference>;
1849
- get superClass(): SerializedTypeReference;
1850
- _hasSuperClass(): boolean;
1851
- _initSuperClass(): SerializedTypeReference;
1852
- set superClass(value: SerializedTypeReference);
1853
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1854
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
1855
- get types(): $.List<SerializedTypeReference>;
1856
- _hasTypes(): boolean;
1857
- _initTypes(length: number): $.List<SerializedTypeReference>;
1858
- set types(value: $.List<SerializedTypeReference>);
1859
- _adoptTags(value: $.Orphan<TagsReflection>): void;
1860
- _disownTags(): $.Orphan<TagsReflection>;
1861
- get tags(): TagsReflection;
1862
- _hasTags(): boolean;
1863
- _initTags(): TagsReflection;
1864
- set tags(value: TagsReflection);
1865
- toString(): string;
1866
- }
1867
- declare class SerializedTypeParameter extends $.Struct {
1868
- static readonly _capnp: {
1869
- displayName: string;
1870
- id: string;
1871
- size: $.ObjectSize;
1872
- };
1873
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1874
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1875
- get typeName(): string;
1876
- set typeName(value: string);
1877
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1878
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1879
- get typeArguments(): $.List<SerializedTypeReference>;
1880
- _hasTypeArguments(): boolean;
1881
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1882
- set typeArguments(value: $.List<SerializedTypeReference>);
1883
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1884
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1885
- get indexAccessOrigin(): IndexAccessOrigin;
1886
- _hasIndexAccessOrigin(): boolean;
1887
- _initIndexAccessOrigin(): IndexAccessOrigin;
1888
- set indexAccessOrigin(value: IndexAccessOrigin);
1889
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1890
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1891
- get decorators(): $.List<SerializedTypeReference>;
1892
- _hasDecorators(): boolean;
1893
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1894
- set decorators(value: $.List<SerializedTypeReference>);
1895
- get kind(): ReflectionKind;
1896
- set kind(value: ReflectionKind);
1897
- get name(): string;
1898
- set name(value: string);
1899
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
1900
- _disownType(): $.Orphan<SerializedTypeReference>;
1901
- get type(): SerializedTypeReference;
1902
- _hasType(): boolean;
1903
- _initType(): SerializedTypeReference;
1904
- set type(value: SerializedTypeReference);
1905
- get visibility(): ReflectionVisibility;
1906
- set visibility(value: ReflectionVisibility);
1907
- get readonly(): boolean;
1908
- set readonly(value: boolean);
1909
- get optional(): boolean;
1910
- set optional(value: boolean);
1911
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
1912
- _disownDefault(): $.Orphan<DefaultValueReflection>;
1913
- get default(): DefaultValueReflection;
1914
- _hasDefault(): boolean;
1915
- _initDefault(): DefaultValueReflection;
1916
- set default(value: DefaultValueReflection);
1917
- _adoptTags(value: $.Orphan<TagsReflection>): void;
1918
- _disownTags(): $.Orphan<TagsReflection>;
1919
- get tags(): TagsReflection;
1920
- _hasTags(): boolean;
1921
- _initTags(): TagsReflection;
1922
- set tags(value: TagsReflection);
1923
- toString(): string;
1924
- }
1925
- declare class SerializedTypeMethod extends $.Struct {
1926
- static readonly _capnp: {
1927
- displayName: string;
1928
- id: string;
1929
- size: $.ObjectSize;
1930
- };
1931
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1932
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1933
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
1934
- get typeName(): string;
1935
- set typeName(value: string);
1936
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1937
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1938
- get typeArguments(): $.List<SerializedTypeReference>;
1939
- _hasTypeArguments(): boolean;
1940
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1941
- set typeArguments(value: $.List<SerializedTypeReference>);
1942
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1943
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1944
- get indexAccessOrigin(): IndexAccessOrigin;
1945
- _hasIndexAccessOrigin(): boolean;
1946
- _initIndexAccessOrigin(): IndexAccessOrigin;
1947
- set indexAccessOrigin(value: IndexAccessOrigin);
1948
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1949
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1950
- get decorators(): $.List<SerializedTypeReference>;
1951
- _hasDecorators(): boolean;
1952
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1953
- set decorators(value: $.List<SerializedTypeReference>);
1954
- get visibility(): ReflectionVisibility;
1955
- set visibility(value: ReflectionVisibility);
1956
- get abstract(): boolean;
1957
- set abstract(value: boolean);
1958
- get optional(): boolean;
1959
- set optional(value: boolean);
1960
- get readonly(): boolean;
1961
- set readonly(value: boolean);
1962
- _adoptTags(value: $.Orphan<TagsReflection>): void;
1963
- _disownTags(): $.Orphan<TagsReflection>;
1964
- get tags(): TagsReflection;
1965
- _hasTags(): boolean;
1966
- _initTags(): TagsReflection;
1967
- set tags(value: TagsReflection);
1968
- get kind(): ReflectionKind;
1969
- set kind(value: ReflectionKind);
1970
- get name(): string;
1971
- set name(value: string);
1972
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
1973
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
1974
- get parameters(): $.List<SerializedTypeParameter>;
1975
- _hasParameters(): boolean;
1976
- _initParameters(length: number): $.List<SerializedTypeParameter>;
1977
- set parameters(value: $.List<SerializedTypeParameter>);
1978
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
1979
- _disownReturn(): $.Orphan<SerializedTypeReference>;
1980
- get return(): SerializedTypeReference;
1981
- _hasReturn(): boolean;
1982
- _initReturn(): SerializedTypeReference;
1983
- set return(value: SerializedTypeReference);
1984
- toString(): string;
1985
- }
1986
- declare class SerializedTypeProperty extends $.Struct {
1987
- static readonly _capnp: {
1988
- displayName: string;
1989
- id: string;
1990
- size: $.ObjectSize;
1991
- };
1992
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1993
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1994
- get typeName(): string;
1995
- set typeName(value: string);
1996
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1997
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1998
- get typeArguments(): $.List<SerializedTypeReference>;
1999
- _hasTypeArguments(): boolean;
2000
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2001
- set typeArguments(value: $.List<SerializedTypeReference>);
2002
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2003
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2004
- get indexAccessOrigin(): IndexAccessOrigin;
2005
- _hasIndexAccessOrigin(): boolean;
2006
- _initIndexAccessOrigin(): IndexAccessOrigin;
2007
- set indexAccessOrigin(value: IndexAccessOrigin);
2008
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2009
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2010
- get decorators(): $.List<SerializedTypeReference>;
2011
- _hasDecorators(): boolean;
2012
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2013
- set decorators(value: $.List<SerializedTypeReference>);
2014
- get visibility(): ReflectionVisibility;
2015
- set visibility(value: ReflectionVisibility);
2016
- get abstract(): boolean;
2017
- set abstract(value: boolean);
2018
- get optional(): boolean;
2019
- set optional(value: boolean);
2020
- get readonly(): boolean;
2021
- set readonly(value: boolean);
2022
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2023
- _disownTags(): $.Orphan<TagsReflection>;
2024
- get tags(): TagsReflection;
2025
- _hasTags(): boolean;
2026
- _initTags(): TagsReflection;
2027
- set tags(value: TagsReflection);
2028
- get kind(): ReflectionKind;
2029
- set kind(value: ReflectionKind);
2030
- get name(): string;
2031
- set name(value: string);
2032
- get description(): string;
2033
- set description(value: string);
2034
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2035
- _disownType(): $.Orphan<SerializedTypeReference>;
2036
- get type(): SerializedTypeReference;
2037
- _hasType(): boolean;
2038
- _initType(): SerializedTypeReference;
2039
- set type(value: SerializedTypeReference);
2040
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
2041
- _disownDefault(): $.Orphan<DefaultValueReflection>;
2042
- get default(): DefaultValueReflection;
2043
- _hasDefault(): boolean;
2044
- _initDefault(): DefaultValueReflection;
2045
- set default(value: DefaultValueReflection);
2046
- toString(): string;
2047
- }
2048
- declare class SerializedTypeFunction extends $.Struct {
2049
- static readonly _capnp: {
2050
- displayName: string;
2051
- id: string;
2052
- size: $.ObjectSize;
2053
- };
2054
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2055
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2056
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
2057
- get typeName(): string;
2058
- set typeName(value: string);
2059
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2060
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2061
- get typeArguments(): $.List<SerializedTypeReference>;
2062
- _hasTypeArguments(): boolean;
2063
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2064
- set typeArguments(value: $.List<SerializedTypeReference>);
2065
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2066
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2067
- get indexAccessOrigin(): IndexAccessOrigin;
2068
- _hasIndexAccessOrigin(): boolean;
2069
- _initIndexAccessOrigin(): IndexAccessOrigin;
2070
- set indexAccessOrigin(value: IndexAccessOrigin);
2071
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2072
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2073
- get decorators(): $.List<SerializedTypeReference>;
2074
- _hasDecorators(): boolean;
2075
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2076
- set decorators(value: $.List<SerializedTypeReference>);
2077
- get visibility(): ReflectionVisibility;
2078
- set visibility(value: ReflectionVisibility);
2079
- get abstract(): boolean;
2080
- set abstract(value: boolean);
2081
- get optional(): boolean;
2082
- set optional(value: boolean);
2083
- get readonly(): boolean;
2084
- set readonly(value: boolean);
2085
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2086
- _disownTags(): $.Orphan<TagsReflection>;
2087
- get tags(): TagsReflection;
2088
- _hasTags(): boolean;
2089
- _initTags(): TagsReflection;
2090
- set tags(value: TagsReflection);
2091
- get kind(): ReflectionKind;
2092
- set kind(value: ReflectionKind);
2093
- get name(): string;
2094
- set name(value: string);
2095
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
2096
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
2097
- get parameters(): $.List<SerializedTypeParameter>;
2098
- _hasParameters(): boolean;
2099
- _initParameters(length: number): $.List<SerializedTypeParameter>;
2100
- set parameters(value: $.List<SerializedTypeParameter>);
2101
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
2102
- _disownReturn(): $.Orphan<SerializedTypeReference>;
2103
- get return(): SerializedTypeReference;
2104
- _hasReturn(): boolean;
2105
- _initReturn(): SerializedTypeReference;
2106
- set return(value: SerializedTypeReference);
2107
- toString(): string;
2108
- }
2109
- declare class SerializedTypePromise extends $.Struct {
2110
- static readonly _capnp: {
2111
- displayName: string;
2112
- id: string;
2113
- size: $.ObjectSize;
2114
- };
2115
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2116
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2117
- get typeName(): string;
2118
- set typeName(value: string);
2119
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2120
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2121
- get typeArguments(): $.List<SerializedTypeReference>;
2122
- _hasTypeArguments(): boolean;
2123
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2124
- set typeArguments(value: $.List<SerializedTypeReference>);
2125
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2126
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2127
- get indexAccessOrigin(): IndexAccessOrigin;
2128
- _hasIndexAccessOrigin(): boolean;
2129
- _initIndexAccessOrigin(): IndexAccessOrigin;
2130
- set indexAccessOrigin(value: IndexAccessOrigin);
2131
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2132
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2133
- get decorators(): $.List<SerializedTypeReference>;
2134
- _hasDecorators(): boolean;
2135
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2136
- set decorators(value: $.List<SerializedTypeReference>);
2137
- get visibility(): ReflectionVisibility;
2138
- set visibility(value: ReflectionVisibility);
2139
- get abstract(): boolean;
2140
- set abstract(value: boolean);
2141
- toString(): string;
2142
- }
2143
- declare class SerializedTypeEnumEntry extends $.Struct {
2144
- static readonly _capnp: {
2145
- displayName: string;
2146
- id: string;
2147
- size: $.ObjectSize;
2148
- };
2149
- get name(): string;
2150
- set name(value: string);
2151
- get value(): string;
2152
- set value(value: string);
2153
- toString(): string;
2154
- }
2155
- declare class SerializedTypeEnum extends $.Struct {
2156
- static readonly _capnp: {
2157
- displayName: string;
2158
- id: string;
2159
- size: $.ObjectSize;
2160
- };
2161
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2162
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2163
- static _EnumEntries: $.ListCtor<SerializedTypeEnumEntry>;
2164
- get typeName(): string;
2165
- set typeName(value: string);
2166
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2167
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2168
- get typeArguments(): $.List<SerializedTypeReference>;
2169
- _hasTypeArguments(): boolean;
2170
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2171
- set typeArguments(value: $.List<SerializedTypeReference>);
2172
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2173
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2174
- get indexAccessOrigin(): IndexAccessOrigin;
2175
- _hasIndexAccessOrigin(): boolean;
2176
- _initIndexAccessOrigin(): IndexAccessOrigin;
2177
- set indexAccessOrigin(value: IndexAccessOrigin);
2178
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2179
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2180
- get decorators(): $.List<SerializedTypeReference>;
2181
- _hasDecorators(): boolean;
2182
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2183
- set decorators(value: $.List<SerializedTypeReference>);
2184
- get kind(): ReflectionKind;
2185
- set kind(value: ReflectionKind);
2186
- _adoptEnumEntries(value: $.Orphan<$.List<SerializedTypeEnumEntry>>): void;
2187
- _disownEnumEntries(): $.Orphan<$.List<SerializedTypeEnumEntry>>;
2188
- get enumEntries(): $.List<SerializedTypeEnumEntry>;
2189
- _hasEnumEntries(): boolean;
2190
- _initEnumEntries(length: number): $.List<SerializedTypeEnumEntry>;
2191
- set enumEntries(value: $.List<SerializedTypeEnumEntry>);
2192
- _adoptValues(value: $.Orphan<$.List<string>>): void;
2193
- _disownValues(): $.Orphan<$.List<string>>;
2194
- get values(): $.List<string>;
2195
- _hasValues(): boolean;
2196
- _initValues(length: number): $.List<string>;
2197
- set values(value: $.List<string>);
2198
- _adoptIndexType(value: $.Orphan<SerializedTypeReference>): void;
2199
- _disownIndexType(): $.Orphan<SerializedTypeReference>;
2200
- get indexType(): SerializedTypeReference;
2201
- _hasIndexType(): boolean;
2202
- _initIndexType(): SerializedTypeReference;
2203
- set indexType(value: SerializedTypeReference);
2204
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2205
- _disownTags(): $.Orphan<TagsReflection>;
2206
- get tags(): TagsReflection;
2207
- _hasTags(): boolean;
2208
- _initTags(): TagsReflection;
2209
- set tags(value: TagsReflection);
2210
- toString(): string;
2211
- }
2212
- declare class SerializedTypeUnion extends $.Struct {
2213
- static readonly _capnp: {
2214
- displayName: string;
2215
- id: string;
2216
- size: $.ObjectSize;
2217
- };
2218
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2219
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2220
- static _Types: $.ListCtor<SerializedTypeReference>;
2221
- get typeName(): string;
2222
- set typeName(value: string);
2223
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2224
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2225
- get typeArguments(): $.List<SerializedTypeReference>;
2226
- _hasTypeArguments(): boolean;
2227
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2228
- set typeArguments(value: $.List<SerializedTypeReference>);
2229
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2230
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2231
- get indexAccessOrigin(): IndexAccessOrigin;
2232
- _hasIndexAccessOrigin(): boolean;
2233
- _initIndexAccessOrigin(): IndexAccessOrigin;
2234
- set indexAccessOrigin(value: IndexAccessOrigin);
2235
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2236
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2237
- get decorators(): $.List<SerializedTypeReference>;
2238
- _hasDecorators(): boolean;
2239
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2240
- set decorators(value: $.List<SerializedTypeReference>);
2241
- get kind(): ReflectionKind;
2242
- set kind(value: ReflectionKind);
2243
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2244
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
2245
- get types(): $.List<SerializedTypeReference>;
2246
- _hasTypes(): boolean;
2247
- _initTypes(length: number): $.List<SerializedTypeReference>;
2248
- set types(value: $.List<SerializedTypeReference>);
2249
- toString(): string;
2250
- }
2251
- declare class SerializedTypeIntersection extends $.Struct {
2252
- static readonly _capnp: {
2253
- displayName: string;
2254
- id: string;
2255
- size: $.ObjectSize;
2256
- };
2257
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2258
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2259
- static _Types: $.ListCtor<SerializedTypeReference>;
2260
- get typeName(): string;
2261
- set typeName(value: string);
2262
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2263
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2264
- get typeArguments(): $.List<SerializedTypeReference>;
2265
- _hasTypeArguments(): boolean;
2266
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2267
- set typeArguments(value: $.List<SerializedTypeReference>);
2268
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2269
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2270
- get indexAccessOrigin(): IndexAccessOrigin;
2271
- _hasIndexAccessOrigin(): boolean;
2272
- _initIndexAccessOrigin(): IndexAccessOrigin;
2273
- set indexAccessOrigin(value: IndexAccessOrigin);
2274
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2275
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2276
- get decorators(): $.List<SerializedTypeReference>;
2277
- _hasDecorators(): boolean;
2278
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2279
- set decorators(value: $.List<SerializedTypeReference>);
2280
- get kind(): ReflectionKind;
2281
- set kind(value: ReflectionKind);
2282
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2283
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
2284
- get types(): $.List<SerializedTypeReference>;
2285
- _hasTypes(): boolean;
2286
- _initTypes(length: number): $.List<SerializedTypeReference>;
2287
- set types(value: $.List<SerializedTypeReference>);
2288
- toString(): string;
2289
- }
2290
- declare class SerializedTypeArray extends $.Struct {
2291
- static readonly _capnp: {
2292
- displayName: string;
2293
- id: string;
2294
- size: $.ObjectSize;
2295
- };
2296
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2297
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2298
- get typeName(): string;
2299
- set typeName(value: string);
2300
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2301
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2302
- get typeArguments(): $.List<SerializedTypeReference>;
2303
- _hasTypeArguments(): boolean;
2304
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2305
- set typeArguments(value: $.List<SerializedTypeReference>);
2306
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2307
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2308
- get indexAccessOrigin(): IndexAccessOrigin;
2309
- _hasIndexAccessOrigin(): boolean;
2310
- _initIndexAccessOrigin(): IndexAccessOrigin;
2311
- set indexAccessOrigin(value: IndexAccessOrigin);
2312
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2313
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2314
- get decorators(): $.List<SerializedTypeReference>;
2315
- _hasDecorators(): boolean;
2316
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2317
- set decorators(value: $.List<SerializedTypeReference>);
2318
- get kind(): ReflectionKind;
2319
- set kind(value: ReflectionKind);
2320
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2321
- _disownType(): $.Orphan<SerializedTypeReference>;
2322
- get type(): SerializedTypeReference;
2323
- _hasType(): boolean;
2324
- _initType(): SerializedTypeReference;
2325
- set type(value: SerializedTypeReference);
2326
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2327
- _disownTags(): $.Orphan<TagsReflection>;
2328
- get tags(): TagsReflection;
2329
- _hasTags(): boolean;
2330
- _initTags(): TagsReflection;
2331
- set tags(value: TagsReflection);
2332
- toString(): string;
2333
- }
2334
- declare class SerializedTypeIndexSignature extends $.Struct {
2335
- static readonly _capnp: {
2336
- displayName: string;
2337
- id: string;
2338
- size: $.ObjectSize;
2339
- };
2340
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2341
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2342
- get typeName(): string;
2343
- set typeName(value: string);
2344
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2345
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2346
- get typeArguments(): $.List<SerializedTypeReference>;
2347
- _hasTypeArguments(): boolean;
2348
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2349
- set typeArguments(value: $.List<SerializedTypeReference>);
2350
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2351
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2352
- get indexAccessOrigin(): IndexAccessOrigin;
2353
- _hasIndexAccessOrigin(): boolean;
2354
- _initIndexAccessOrigin(): IndexAccessOrigin;
2355
- set indexAccessOrigin(value: IndexAccessOrigin);
2356
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2357
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2358
- get decorators(): $.List<SerializedTypeReference>;
2359
- _hasDecorators(): boolean;
2360
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2361
- set decorators(value: $.List<SerializedTypeReference>);
2362
- get kind(): ReflectionKind;
2363
- set kind(value: ReflectionKind);
2364
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
2365
- _disownIndex(): $.Orphan<SerializedTypeReference>;
2366
- get index(): SerializedTypeReference;
2367
- _hasIndex(): boolean;
2368
- _initIndex(): SerializedTypeReference;
2369
- set index(value: SerializedTypeReference);
2370
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2371
- _disownType(): $.Orphan<SerializedTypeReference>;
2372
- get type(): SerializedTypeReference;
2373
- _hasType(): boolean;
2374
- _initType(): SerializedTypeReference;
2375
- set type(value: SerializedTypeReference);
2376
- toString(): string;
2377
- }
2378
- declare class SerializedTypePropertySignature extends $.Struct {
2379
- static readonly _capnp: {
2380
- displayName: string;
2381
- id: string;
2382
- size: $.ObjectSize;
2383
- };
2384
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2385
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2386
- get typeName(): string;
2387
- set typeName(value: string);
2388
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2389
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2390
- get typeArguments(): $.List<SerializedTypeReference>;
2391
- _hasTypeArguments(): boolean;
2392
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2393
- set typeArguments(value: $.List<SerializedTypeReference>);
2394
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2395
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2396
- get indexAccessOrigin(): IndexAccessOrigin;
2397
- _hasIndexAccessOrigin(): boolean;
2398
- _initIndexAccessOrigin(): IndexAccessOrigin;
2399
- set indexAccessOrigin(value: IndexAccessOrigin);
2400
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2401
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2402
- get decorators(): $.List<SerializedTypeReference>;
2403
- _hasDecorators(): boolean;
2404
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2405
- set decorators(value: $.List<SerializedTypeReference>);
2406
- get kind(): ReflectionKind;
2407
- set kind(value: ReflectionKind);
2408
- get name(): string;
2409
- set name(value: string);
2410
- get optional(): boolean;
2411
- set optional(value: boolean);
2412
- get readonly(): boolean;
2413
- set readonly(value: boolean);
2414
- get description(): string;
2415
- set description(value: string);
2416
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
2417
- _disownDefault(): $.Orphan<DefaultValueReflection>;
2418
- get default(): DefaultValueReflection;
2419
- _hasDefault(): boolean;
2420
- _initDefault(): DefaultValueReflection;
2421
- set default(value: DefaultValueReflection);
2422
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2423
- _disownType(): $.Orphan<SerializedTypeReference>;
2424
- get type(): SerializedTypeReference;
2425
- _hasType(): boolean;
2426
- _initType(): SerializedTypeReference;
2427
- set type(value: SerializedTypeReference);
2428
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2429
- _disownTags(): $.Orphan<TagsReflection>;
2430
- get tags(): TagsReflection;
2431
- _hasTags(): boolean;
2432
- _initTags(): TagsReflection;
2433
- set tags(value: TagsReflection);
2434
- toString(): string;
2435
- }
2436
- declare class SerializedTypeMethodSignature extends $.Struct {
2437
- static readonly _capnp: {
2438
- displayName: string;
2439
- id: string;
2440
- size: $.ObjectSize;
2441
- };
2442
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2443
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2444
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
2445
- get typeName(): string;
2446
- set typeName(value: string);
2447
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2448
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2449
- get typeArguments(): $.List<SerializedTypeReference>;
2450
- _hasTypeArguments(): boolean;
2451
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2452
- set typeArguments(value: $.List<SerializedTypeReference>);
2453
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2454
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2455
- get indexAccessOrigin(): IndexAccessOrigin;
2456
- _hasIndexAccessOrigin(): boolean;
2457
- _initIndexAccessOrigin(): IndexAccessOrigin;
2458
- set indexAccessOrigin(value: IndexAccessOrigin);
2459
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2460
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2461
- get decorators(): $.List<SerializedTypeReference>;
2462
- _hasDecorators(): boolean;
2463
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2464
- set decorators(value: $.List<SerializedTypeReference>);
2465
- get kind(): ReflectionKind;
2466
- set kind(value: ReflectionKind);
2467
- get name(): string;
2468
- set name(value: string);
2469
- get optional(): boolean;
2470
- set optional(value: boolean);
2471
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
2472
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
2473
- get parameters(): $.List<SerializedTypeParameter>;
2474
- _hasParameters(): boolean;
2475
- _initParameters(length: number): $.List<SerializedTypeParameter>;
2476
- set parameters(value: $.List<SerializedTypeParameter>);
2477
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
2478
- _disownReturn(): $.Orphan<SerializedTypeReference>;
2479
- get return(): SerializedTypeReference;
2480
- _hasReturn(): boolean;
2481
- _initReturn(): SerializedTypeReference;
2482
- set return(value: SerializedTypeReference);
2483
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2484
- _disownTags(): $.Orphan<TagsReflection>;
2485
- get tags(): TagsReflection;
2486
- _hasTags(): boolean;
2487
- _initTags(): TagsReflection;
2488
- set tags(value: TagsReflection);
2489
- toString(): string;
2490
- }
2491
- declare class SerializedTypeTypeParameter extends $.Struct {
2492
- static readonly _capnp: {
2493
- displayName: string;
2494
- id: string;
2495
- size: $.ObjectSize;
2496
- };
2497
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2498
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2499
- get typeName(): string;
2500
- set typeName(value: string);
2501
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2502
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2503
- get typeArguments(): $.List<SerializedTypeReference>;
2504
- _hasTypeArguments(): boolean;
2505
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2506
- set typeArguments(value: $.List<SerializedTypeReference>);
2507
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2508
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2509
- get indexAccessOrigin(): IndexAccessOrigin;
2510
- _hasIndexAccessOrigin(): boolean;
2511
- _initIndexAccessOrigin(): IndexAccessOrigin;
2512
- set indexAccessOrigin(value: IndexAccessOrigin);
2513
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2514
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2515
- get decorators(): $.List<SerializedTypeReference>;
2516
- _hasDecorators(): boolean;
2517
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2518
- set decorators(value: $.List<SerializedTypeReference>);
2519
- get kind(): ReflectionKind;
2520
- set kind(value: ReflectionKind);
2521
- get name(): string;
2522
- set name(value: string);
2523
- toString(): string;
2524
- }
2525
- declare class SerializedTypeInfer extends $.Struct {
2526
- static readonly _capnp: {
2527
- displayName: string;
2528
- id: string;
2529
- size: $.ObjectSize;
2530
- };
2531
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2532
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2533
- get typeName(): string;
2534
- set typeName(value: string);
2535
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2536
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2537
- get typeArguments(): $.List<SerializedTypeReference>;
2538
- _hasTypeArguments(): boolean;
2539
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2540
- set typeArguments(value: $.List<SerializedTypeReference>);
2541
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2542
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2543
- get indexAccessOrigin(): IndexAccessOrigin;
2544
- _hasIndexAccessOrigin(): boolean;
2545
- _initIndexAccessOrigin(): IndexAccessOrigin;
2546
- set indexAccessOrigin(value: IndexAccessOrigin);
2547
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2548
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2549
- get decorators(): $.List<SerializedTypeReference>;
2550
- _hasDecorators(): boolean;
2551
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2552
- set decorators(value: $.List<SerializedTypeReference>);
2553
- get kind(): ReflectionKind;
2554
- set kind(value: ReflectionKind);
2555
- toString(): string;
2556
- }
2557
- declare class SerializedTypeTupleMember extends $.Struct {
2558
- static readonly _capnp: {
2559
- displayName: string;
2560
- id: string;
2561
- size: $.ObjectSize;
2562
- };
2563
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2564
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2565
- get typeName(): string;
2566
- set typeName(value: string);
2567
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2568
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2569
- get typeArguments(): $.List<SerializedTypeReference>;
2570
- _hasTypeArguments(): boolean;
2571
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2572
- set typeArguments(value: $.List<SerializedTypeReference>);
2573
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2574
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2575
- get indexAccessOrigin(): IndexAccessOrigin;
2576
- _hasIndexAccessOrigin(): boolean;
2577
- _initIndexAccessOrigin(): IndexAccessOrigin;
2578
- set indexAccessOrigin(value: IndexAccessOrigin);
2579
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2580
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2581
- get decorators(): $.List<SerializedTypeReference>;
2582
- _hasDecorators(): boolean;
2583
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2584
- set decorators(value: $.List<SerializedTypeReference>);
2585
- get kind(): ReflectionKind;
2586
- set kind(value: ReflectionKind);
2587
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2588
- _disownType(): $.Orphan<SerializedTypeReference>;
2589
- get type(): SerializedTypeReference;
2590
- _hasType(): boolean;
2591
- _initType(): SerializedTypeReference;
2592
- set type(value: SerializedTypeReference);
2593
- get optional(): boolean;
2594
- set optional(value: boolean);
2595
- get name(): string;
2596
- set name(value: string);
2597
- toString(): string;
2598
- }
2599
- declare class SerializedTypeTuple extends $.Struct {
2600
- static readonly _capnp: {
2601
- displayName: string;
2602
- id: string;
2603
- size: $.ObjectSize;
2604
- };
2605
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2606
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2607
- static _Types: $.ListCtor<SerializedTypeTupleMember>;
2608
- get typeName(): string;
2609
- set typeName(value: string);
2610
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2611
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2612
- get typeArguments(): $.List<SerializedTypeReference>;
2613
- _hasTypeArguments(): boolean;
2614
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2615
- set typeArguments(value: $.List<SerializedTypeReference>);
2616
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2617
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2618
- get indexAccessOrigin(): IndexAccessOrigin;
2619
- _hasIndexAccessOrigin(): boolean;
2620
- _initIndexAccessOrigin(): IndexAccessOrigin;
2621
- set indexAccessOrigin(value: IndexAccessOrigin);
2622
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2623
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2624
- get decorators(): $.List<SerializedTypeReference>;
2625
- _hasDecorators(): boolean;
2626
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2627
- set decorators(value: $.List<SerializedTypeReference>);
2628
- get kind(): ReflectionKind;
2629
- set kind(value: ReflectionKind);
2630
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeTupleMember>>): void;
2631
- _disownTypes(): $.Orphan<$.List<SerializedTypeTupleMember>>;
2632
- get types(): $.List<SerializedTypeTupleMember>;
2633
- _hasTypes(): boolean;
2634
- _initTypes(length: number): $.List<SerializedTypeTupleMember>;
2635
- set types(value: $.List<SerializedTypeTupleMember>);
2636
- toString(): string;
2637
- }
2638
- declare class SerializedTypeRest extends $.Struct {
2639
- static readonly _capnp: {
2640
- displayName: string;
2641
- id: string;
2642
- size: $.ObjectSize;
2643
- };
2644
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2645
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2646
- get typeName(): string;
2647
- set typeName(value: string);
2648
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2649
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2650
- get typeArguments(): $.List<SerializedTypeReference>;
2651
- _hasTypeArguments(): boolean;
2652
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2653
- set typeArguments(value: $.List<SerializedTypeReference>);
2654
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2655
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2656
- get indexAccessOrigin(): IndexAccessOrigin;
2657
- _hasIndexAccessOrigin(): boolean;
2658
- _initIndexAccessOrigin(): IndexAccessOrigin;
2659
- set indexAccessOrigin(value: IndexAccessOrigin);
2660
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2661
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2662
- get decorators(): $.List<SerializedTypeReference>;
2663
- _hasDecorators(): boolean;
2664
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2665
- set decorators(value: $.List<SerializedTypeReference>);
2666
- get kind(): ReflectionKind;
2667
- set kind(value: ReflectionKind);
2668
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2669
- _disownType(): $.Orphan<SerializedTypeReference>;
2670
- get type(): SerializedTypeReference;
2671
- _hasType(): boolean;
2672
- _initType(): SerializedTypeReference;
2673
- set type(value: SerializedTypeReference);
2674
- toString(): string;
2675
- }
2676
- declare class SimpleSerializedType extends $.Struct {
2677
- static readonly _capnp: {
2678
- displayName: string;
2679
- id: string;
2680
- size: $.ObjectSize;
2681
- };
2682
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2683
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2684
- get typeName(): string;
2685
- set typeName(value: string);
2686
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2687
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2688
- get typeArguments(): $.List<SerializedTypeReference>;
2689
- _hasTypeArguments(): boolean;
2690
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2691
- set typeArguments(value: $.List<SerializedTypeReference>);
2692
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2693
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2694
- get indexAccessOrigin(): IndexAccessOrigin;
2695
- _hasIndexAccessOrigin(): boolean;
2696
- _initIndexAccessOrigin(): IndexAccessOrigin;
2697
- set indexAccessOrigin(value: IndexAccessOrigin);
2698
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2699
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2700
- get decorators(): $.List<SerializedTypeReference>;
2701
- _hasDecorators(): boolean;
2702
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2703
- set decorators(value: $.List<SerializedTypeReference>);
2704
- get kind(): ReflectionKind;
2705
- set kind(value: ReflectionKind);
2706
- _adoptOrigin(value: $.Orphan<SerializedTypeReference>): void;
2707
- _disownOrigin(): $.Orphan<SerializedTypeReference>;
2708
- get origin(): SerializedTypeReference;
2709
- _hasOrigin(): boolean;
2710
- _initOrigin(): SerializedTypeReference;
2711
- set origin(value: SerializedTypeReference);
2712
- toString(): string;
2713
- }
2714
- declare class SerializedTypeLiteralSymbol extends $.Struct {
2715
- static readonly _capnp: {
2716
- displayName: string;
2717
- id: string;
2718
- size: $.ObjectSize;
2719
- };
2720
- /**
2721
- * "symbol"
2722
- *
2723
- */
2724
- get type(): string;
2725
- set type(value: string);
2726
- get name(): string;
2727
- set name(value: string);
2728
- toString(): string;
2729
- }
2730
- declare class SerializedTypeLiteralBigInt extends $.Struct {
2731
- static readonly _capnp: {
2732
- displayName: string;
2733
- id: string;
2734
- size: $.ObjectSize;
2735
- };
2736
- /**
2737
- * "bigint"
2738
- *
2739
- */
2740
- get type(): string;
2741
- set type(value: string);
2742
- get value(): string;
2743
- set value(value: string);
2744
- toString(): string;
2745
- }
2746
- declare class SerializedTypeLiteralRegex extends $.Struct {
2747
- static readonly _capnp: {
2748
- displayName: string;
2749
- id: string;
2750
- size: $.ObjectSize;
2751
- };
2752
- /**
2753
- * "regex"
2754
- *
2755
- */
2756
- get type(): string;
2757
- set type(value: string);
2758
- get regex(): string;
2759
- set regex(value: string);
2760
- toString(): string;
2761
- }
2762
- declare const SerializedTypeLiteral_Literal_Which: {
2763
- readonly SYMBOL: 0;
2764
- readonly STRING: 1;
2765
- readonly NUMBER: 2;
2766
- readonly BOOLEAN: 3;
2767
- readonly BIGINT: 4;
2768
- readonly REGEX: 5;
2769
- };
2770
- type SerializedTypeLiteral_Literal_Which = (typeof SerializedTypeLiteral_Literal_Which)[keyof typeof SerializedTypeLiteral_Literal_Which];
2771
- declare class SerializedTypeLiteral_Literal extends $.Struct {
2772
- static readonly SYMBOL: 0;
2773
- static readonly STRING: 1;
2774
- static readonly NUMBER: 2;
2775
- static readonly BOOLEAN: 3;
2776
- static readonly BIGINT: 4;
2777
- static readonly REGEX: 5;
2778
- static readonly _capnp: {
2779
- displayName: string;
2780
- id: string;
2781
- size: $.ObjectSize;
2782
- };
2783
- _adoptSymbol(value: $.Orphan<SerializedTypeLiteralSymbol>): void;
2784
- _disownSymbol(): $.Orphan<SerializedTypeLiteralSymbol>;
2785
- get symbol(): SerializedTypeLiteralSymbol;
2786
- _hasSymbol(): boolean;
2787
- _initSymbol(): SerializedTypeLiteralSymbol;
2788
- get _isSymbol(): boolean;
2789
- set symbol(value: SerializedTypeLiteralSymbol);
2790
- get string(): string;
2791
- get _isString(): boolean;
2792
- set string(value: string);
2793
- get number(): number;
2794
- get _isNumber(): boolean;
2795
- set number(value: number);
2796
- get boolean(): boolean;
2797
- get _isBoolean(): boolean;
2798
- set boolean(value: boolean);
2799
- _adoptBigint(value: $.Orphan<SerializedTypeLiteralBigInt>): void;
2800
- _disownBigint(): $.Orphan<SerializedTypeLiteralBigInt>;
2801
- get bigint(): SerializedTypeLiteralBigInt;
2802
- _hasBigint(): boolean;
2803
- _initBigint(): SerializedTypeLiteralBigInt;
2804
- get _isBigint(): boolean;
2805
- set bigint(value: SerializedTypeLiteralBigInt);
2806
- _adoptRegex(value: $.Orphan<SerializedTypeLiteralRegex>): void;
2807
- _disownRegex(): $.Orphan<SerializedTypeLiteralRegex>;
2808
- get regex(): SerializedTypeLiteralRegex;
2809
- _hasRegex(): boolean;
2810
- _initRegex(): SerializedTypeLiteralRegex;
2811
- get _isRegex(): boolean;
2812
- set regex(value: SerializedTypeLiteralRegex);
2813
- toString(): string;
2814
- which(): SerializedTypeLiteral_Literal_Which;
2815
- }
2816
- declare class SerializedTypeLiteral extends $.Struct {
2817
- static readonly _capnp: {
2818
- displayName: string;
2819
- id: string;
2820
- size: $.ObjectSize;
2821
- };
2822
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2823
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2824
- get typeName(): string;
2825
- set typeName(value: string);
2826
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2827
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2828
- get typeArguments(): $.List<SerializedTypeReference>;
2829
- _hasTypeArguments(): boolean;
2830
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2831
- set typeArguments(value: $.List<SerializedTypeReference>);
2832
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2833
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2834
- get indexAccessOrigin(): IndexAccessOrigin;
2835
- _hasIndexAccessOrigin(): boolean;
2836
- _initIndexAccessOrigin(): IndexAccessOrigin;
2837
- set indexAccessOrigin(value: IndexAccessOrigin);
2838
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2839
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2840
- get decorators(): $.List<SerializedTypeReference>;
2841
- _hasDecorators(): boolean;
2842
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2843
- set decorators(value: $.List<SerializedTypeReference>);
2844
- get kind(): ReflectionKind;
2845
- set kind(value: ReflectionKind);
2846
- get literal(): SerializedTypeLiteral_Literal;
2847
- _initLiteral(): SerializedTypeLiteral_Literal;
2848
- toString(): string;
2849
- }
2850
- declare class SerializedTypeTemplateLiteral extends $.Struct {
2851
- static readonly _capnp: {
2852
- displayName: string;
2853
- id: string;
2854
- size: $.ObjectSize;
2855
- };
2856
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2857
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2858
- static _Types: $.ListCtor<SerializedTypeReference>;
2859
- get typeName(): string;
2860
- set typeName(value: string);
2861
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2862
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2863
- get typeArguments(): $.List<SerializedTypeReference>;
2864
- _hasTypeArguments(): boolean;
2865
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2866
- set typeArguments(value: $.List<SerializedTypeReference>);
2867
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2868
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2869
- get indexAccessOrigin(): IndexAccessOrigin;
2870
- _hasIndexAccessOrigin(): boolean;
2871
- _initIndexAccessOrigin(): IndexAccessOrigin;
2872
- set indexAccessOrigin(value: IndexAccessOrigin);
2873
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2874
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2875
- get decorators(): $.List<SerializedTypeReference>;
2876
- _hasDecorators(): boolean;
2877
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2878
- set decorators(value: $.List<SerializedTypeReference>);
2879
- get kind(): ReflectionKind;
2880
- set kind(value: ReflectionKind);
2881
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2882
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
2883
- get types(): $.List<SerializedTypeReference>;
2884
- _hasTypes(): boolean;
2885
- _initTypes(length: number): $.List<SerializedTypeReference>;
2886
- set types(value: $.List<SerializedTypeReference>);
2887
- toString(): string;
2888
- }
2889
- declare class SerializedTypeOther extends $.Struct {
2890
- static readonly _capnp: {
2891
- displayName: string;
2892
- id: string;
2893
- size: $.ObjectSize;
2894
- };
2895
- get typeName(): string;
2896
- set typeName(value: string);
2897
- get kind(): ReflectionKind;
2898
- set kind(value: ReflectionKind);
2899
- toString(): string;
2900
- }
2901
- declare const SerializedType_Type_Which: {
2902
- readonly SIMPLE: 0;
2903
- readonly LITERAL: 1;
2904
- readonly TEMPLATE_LITERAL: 2;
2905
- readonly PARAMETER: 3;
2906
- readonly FUNCTION: 4;
2907
- readonly METHOD: 5;
2908
- readonly PROPERTY: 6;
2909
- readonly PROMISE: 7;
2910
- readonly CLASS_TYPE: 8;
2911
- readonly ENUM: 9;
2912
- readonly UNION: 10;
2913
- readonly INTERSECTION: 11;
2914
- readonly ARRAY: 12;
2915
- readonly OBJECT_LITERAL: 13;
2916
- readonly INDEX_SIGNATURE: 14;
2917
- readonly PROPERTY_SIGNATURE: 15;
2918
- readonly METHOD_SIGNATURE: 16;
2919
- readonly TYPE_PARAMETER: 17;
2920
- readonly INFER: 18;
2921
- readonly TUPLE: 19;
2922
- readonly TUPLE_MEMBER: 20;
2923
- readonly REST: 21;
2924
- /**
2925
- * For any other type that is not explicitly defined
2926
- *
2927
- */
2928
- readonly OTHER: 22;
2929
- };
2930
- type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
2931
- declare class SerializedType_Type extends $.Struct {
2932
- static readonly SIMPLE: 0;
2933
- static readonly LITERAL: 1;
2934
- static readonly TEMPLATE_LITERAL: 2;
2935
- static readonly PARAMETER: 3;
2936
- static readonly FUNCTION: 4;
2937
- static readonly METHOD: 5;
2938
- static readonly PROPERTY: 6;
2939
- static readonly PROMISE: 7;
2940
- static readonly CLASS_TYPE: 8;
2941
- static readonly ENUM: 9;
2942
- static readonly UNION: 10;
2943
- static readonly INTERSECTION: 11;
2944
- static readonly ARRAY: 12;
2945
- static readonly OBJECT_LITERAL: 13;
2946
- static readonly INDEX_SIGNATURE: 14;
2947
- static readonly PROPERTY_SIGNATURE: 15;
2948
- static readonly METHOD_SIGNATURE: 16;
2949
- static readonly TYPE_PARAMETER: 17;
2950
- static readonly INFER: 18;
2951
- static readonly TUPLE: 19;
2952
- static readonly TUPLE_MEMBER: 20;
2953
- static readonly REST: 21;
2954
- static readonly OTHER: 22;
2955
- static readonly _capnp: {
2956
- displayName: string;
2957
- id: string;
2958
- size: $.ObjectSize;
2959
- };
2960
- _adoptSimple(value: $.Orphan<SimpleSerializedType>): void;
2961
- _disownSimple(): $.Orphan<SimpleSerializedType>;
2962
- get simple(): SimpleSerializedType;
2963
- _hasSimple(): boolean;
2964
- _initSimple(): SimpleSerializedType;
2965
- get _isSimple(): boolean;
2966
- set simple(value: SimpleSerializedType);
2967
- _adoptLiteral(value: $.Orphan<SerializedTypeLiteral>): void;
2968
- _disownLiteral(): $.Orphan<SerializedTypeLiteral>;
2969
- get literal(): SerializedTypeLiteral;
2970
- _hasLiteral(): boolean;
2971
- _initLiteral(): SerializedTypeLiteral;
2972
- get _isLiteral(): boolean;
2973
- set literal(value: SerializedTypeLiteral);
2974
- _adoptTemplateLiteral(value: $.Orphan<SerializedTypeTemplateLiteral>): void;
2975
- _disownTemplateLiteral(): $.Orphan<SerializedTypeTemplateLiteral>;
2976
- get templateLiteral(): SerializedTypeTemplateLiteral;
2977
- _hasTemplateLiteral(): boolean;
2978
- _initTemplateLiteral(): SerializedTypeTemplateLiteral;
2979
- get _isTemplateLiteral(): boolean;
2980
- set templateLiteral(value: SerializedTypeTemplateLiteral);
2981
- _adoptParameter(value: $.Orphan<SerializedTypeParameter>): void;
2982
- _disownParameter(): $.Orphan<SerializedTypeParameter>;
2983
- get parameter(): SerializedTypeParameter;
2984
- _hasParameter(): boolean;
2985
- _initParameter(): SerializedTypeParameter;
2986
- get _isParameter(): boolean;
2987
- set parameter(value: SerializedTypeParameter);
2988
- _adoptFunction(value: $.Orphan<SerializedTypeFunction>): void;
2989
- _disownFunction(): $.Orphan<SerializedTypeFunction>;
2990
- get function(): SerializedTypeFunction;
2991
- _hasFunction(): boolean;
2992
- _initFunction(): SerializedTypeFunction;
2993
- get _isFunction(): boolean;
2994
- set function(value: SerializedTypeFunction);
2995
- _adoptMethod(value: $.Orphan<SerializedTypeMethod>): void;
2996
- _disownMethod(): $.Orphan<SerializedTypeMethod>;
2997
- get method(): SerializedTypeMethod;
2998
- _hasMethod(): boolean;
2999
- _initMethod(): SerializedTypeMethod;
3000
- get _isMethod(): boolean;
3001
- set method(value: SerializedTypeMethod);
3002
- _adoptProperty(value: $.Orphan<SerializedTypeProperty>): void;
3003
- _disownProperty(): $.Orphan<SerializedTypeProperty>;
3004
- get property(): SerializedTypeProperty;
3005
- _hasProperty(): boolean;
3006
- _initProperty(): SerializedTypeProperty;
3007
- get _isProperty(): boolean;
3008
- set property(value: SerializedTypeProperty);
3009
- _adoptPromise(value: $.Orphan<SerializedTypePromise>): void;
3010
- _disownPromise(): $.Orphan<SerializedTypePromise>;
3011
- get promise(): SerializedTypePromise;
3012
- _hasPromise(): boolean;
3013
- _initPromise(): SerializedTypePromise;
3014
- get _isPromise(): boolean;
3015
- set promise(value: SerializedTypePromise);
3016
- _adoptClassType(value: $.Orphan<SerializedTypeClassType>): void;
3017
- _disownClassType(): $.Orphan<SerializedTypeClassType>;
3018
- get classType(): SerializedTypeClassType;
3019
- _hasClassType(): boolean;
3020
- _initClassType(): SerializedTypeClassType;
3021
- get _isClassType(): boolean;
3022
- set classType(value: SerializedTypeClassType);
3023
- _adoptEnum(value: $.Orphan<SerializedTypeEnum>): void;
3024
- _disownEnum(): $.Orphan<SerializedTypeEnum>;
3025
- get enum(): SerializedTypeEnum;
3026
- _hasEnum(): boolean;
3027
- _initEnum(): SerializedTypeEnum;
3028
- get _isEnum(): boolean;
3029
- set enum(value: SerializedTypeEnum);
3030
- _adoptUnion(value: $.Orphan<SerializedTypeUnion>): void;
3031
- _disownUnion(): $.Orphan<SerializedTypeUnion>;
3032
- get union(): SerializedTypeUnion;
3033
- _hasUnion(): boolean;
3034
- _initUnion(): SerializedTypeUnion;
3035
- get _isUnion(): boolean;
3036
- set union(value: SerializedTypeUnion);
3037
- _adoptIntersection(value: $.Orphan<SerializedTypeIntersection>): void;
3038
- _disownIntersection(): $.Orphan<SerializedTypeIntersection>;
3039
- get intersection(): SerializedTypeIntersection;
3040
- _hasIntersection(): boolean;
3041
- _initIntersection(): SerializedTypeIntersection;
3042
- get _isIntersection(): boolean;
3043
- set intersection(value: SerializedTypeIntersection);
3044
- _adoptArray(value: $.Orphan<SerializedTypeArray>): void;
3045
- _disownArray(): $.Orphan<SerializedTypeArray>;
3046
- get array(): SerializedTypeArray;
3047
- _hasArray(): boolean;
3048
- _initArray(): SerializedTypeArray;
3049
- get _isArray(): boolean;
3050
- set array(value: SerializedTypeArray);
3051
- _adoptObjectLiteral(value: $.Orphan<SerializedTypeObjectLiteral>): void;
3052
- _disownObjectLiteral(): $.Orphan<SerializedTypeObjectLiteral>;
3053
- get objectLiteral(): SerializedTypeObjectLiteral;
3054
- _hasObjectLiteral(): boolean;
3055
- _initObjectLiteral(): SerializedTypeObjectLiteral;
3056
- get _isObjectLiteral(): boolean;
3057
- set objectLiteral(value: SerializedTypeObjectLiteral);
3058
- _adoptIndexSignature(value: $.Orphan<SerializedTypeIndexSignature>): void;
3059
- _disownIndexSignature(): $.Orphan<SerializedTypeIndexSignature>;
3060
- get indexSignature(): SerializedTypeIndexSignature;
3061
- _hasIndexSignature(): boolean;
3062
- _initIndexSignature(): SerializedTypeIndexSignature;
3063
- get _isIndexSignature(): boolean;
3064
- set indexSignature(value: SerializedTypeIndexSignature);
3065
- _adoptPropertySignature(value: $.Orphan<SerializedTypePropertySignature>): void;
3066
- _disownPropertySignature(): $.Orphan<SerializedTypePropertySignature>;
3067
- get propertySignature(): SerializedTypePropertySignature;
3068
- _hasPropertySignature(): boolean;
3069
- _initPropertySignature(): SerializedTypePropertySignature;
3070
- get _isPropertySignature(): boolean;
3071
- set propertySignature(value: SerializedTypePropertySignature);
3072
- _adoptMethodSignature(value: $.Orphan<SerializedTypeMethodSignature>): void;
3073
- _disownMethodSignature(): $.Orphan<SerializedTypeMethodSignature>;
3074
- get methodSignature(): SerializedTypeMethodSignature;
3075
- _hasMethodSignature(): boolean;
3076
- _initMethodSignature(): SerializedTypeMethodSignature;
3077
- get _isMethodSignature(): boolean;
3078
- set methodSignature(value: SerializedTypeMethodSignature);
3079
- _adoptTypeParameter(value: $.Orphan<SerializedTypeTypeParameter>): void;
3080
- _disownTypeParameter(): $.Orphan<SerializedTypeTypeParameter>;
3081
- get typeParameter(): SerializedTypeTypeParameter;
3082
- _hasTypeParameter(): boolean;
3083
- _initTypeParameter(): SerializedTypeTypeParameter;
3084
- get _isTypeParameter(): boolean;
3085
- set typeParameter(value: SerializedTypeTypeParameter);
3086
- _adoptInfer(value: $.Orphan<SerializedTypeInfer>): void;
3087
- _disownInfer(): $.Orphan<SerializedTypeInfer>;
3088
- get infer(): SerializedTypeInfer;
3089
- _hasInfer(): boolean;
3090
- _initInfer(): SerializedTypeInfer;
3091
- get _isInfer(): boolean;
3092
- set infer(value: SerializedTypeInfer);
3093
- _adoptTuple(value: $.Orphan<SerializedTypeTuple>): void;
3094
- _disownTuple(): $.Orphan<SerializedTypeTuple>;
3095
- get tuple(): SerializedTypeTuple;
3096
- _hasTuple(): boolean;
3097
- _initTuple(): SerializedTypeTuple;
3098
- get _isTuple(): boolean;
3099
- set tuple(value: SerializedTypeTuple);
3100
- _adoptTupleMember(value: $.Orphan<SerializedTypeTupleMember>): void;
3101
- _disownTupleMember(): $.Orphan<SerializedTypeTupleMember>;
3102
- get tupleMember(): SerializedTypeTupleMember;
3103
- _hasTupleMember(): boolean;
3104
- _initTupleMember(): SerializedTypeTupleMember;
3105
- get _isTupleMember(): boolean;
3106
- set tupleMember(value: SerializedTypeTupleMember);
3107
- _adoptRest(value: $.Orphan<SerializedTypeRest>): void;
3108
- _disownRest(): $.Orphan<SerializedTypeRest>;
3109
- get rest(): SerializedTypeRest;
3110
- _hasRest(): boolean;
3111
- _initRest(): SerializedTypeRest;
3112
- get _isRest(): boolean;
3113
- set rest(value: SerializedTypeRest);
3114
- _adoptOther(value: $.Orphan<SerializedTypeOther>): void;
3115
- _disownOther(): $.Orphan<SerializedTypeOther>;
3116
- /**
3117
- * For any other type that is not explicitly defined
3118
- *
3119
- */
3120
- get other(): SerializedTypeOther;
3121
- _hasOther(): boolean;
3122
- _initOther(): SerializedTypeOther;
3123
- get _isOther(): boolean;
3124
- set other(value: SerializedTypeOther);
3125
- toString(): string;
3126
- which(): SerializedType_Type_Which;
3127
- }
3128
- declare class SerializedType extends $.Struct {
3129
- static readonly _capnp: {
3130
- displayName: string;
3131
- id: string;
3132
- size: $.ObjectSize;
3133
- };
3134
- get type(): SerializedType_Type;
3135
- _initType(): SerializedType_Type;
3136
- toString(): string;
3137
- }
3138
- declare class SerializedTypes extends $.Struct {
3139
- static readonly _capnp: {
3140
- displayName: string;
3141
- id: string;
3142
- size: $.ObjectSize;
3143
- };
3144
- static _Types: $.ListCtor<SerializedType>;
3145
- _adoptTypes(value: $.Orphan<$.List<SerializedType>>): void;
3146
- _disownTypes(): $.Orphan<$.List<SerializedType>>;
3147
- get types(): $.List<SerializedType>;
3148
- _hasTypes(): boolean;
3149
- _initTypes(length: number): $.List<SerializedType>;
3150
- set types(value: $.List<SerializedType>);
3151
- toString(): string;
3152
- }
3153
-
3154
- type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
3155
- dataBuffer?: ArrayBuffer;
3156
- messageRoot?: SerializedTypes;
3157
- };
3158
-
3159
- type BabelPluginOptions = Partial<BabelUserConfig>;
3160
- type BabelPluginUserConfig = UserConfig;
3161
- interface BabelPluginResolvedConfig extends ResolvedConfig {
3162
- transform: {
3163
- babel: BabelResolvedConfig;
3164
- };
3165
- }
3166
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
3167
-
3168
- /**
3169
- * The base environment configuration used by Powerlines applications
3170
- *
3171
- * @remarks
3172
- * This interface is used to define the environment variables, configuration options, and runtime settings used by applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \`powerlines docs\` command.
3173
- *
3174
- * @categoryDescription Platform
3175
- * The name of the platform the configuration parameter is intended for use in.
3176
- *
3177
- * @showCategories
3178
- */
3179
- interface EnvInterface {
3180
- /**
3181
- * The name of the application.
3182
- *
3183
- * @readonly
3184
- * @category neutral
3185
- */
3186
- readonly APP_NAME: string;
3187
- /**
3188
- * The version of the application.
3189
- *
3190
- * @defaultValue "1.0.0"
3191
- *
3192
- * @readonly
3193
- * @category neutral
3194
- */
3195
- readonly APP_VERSION: string;
3196
- /**
3197
- * The unique identifier for the build.
3198
- *
3199
- * @readonly
3200
- * @category neutral
3201
- */
3202
- readonly BUILD_ID: string;
3203
- /**
3204
- * The timestamp the build was ran at.
3205
- *
3206
- * @readonly
3207
- * @category neutral
3208
- */
3209
- readonly BUILD_TIMESTAMP: string;
3210
- /**
3211
- * A checksum hash created during the build.
3212
- *
3213
- * @readonly
3214
- * @category neutral
3215
- */
3216
- readonly BUILD_CHECKSUM: string;
3217
- /**
3218
- * The unique identifier for the release.
3219
- *
3220
- * @readonly
3221
- * @category neutral
3222
- */
3223
- readonly RELEASE_ID: string;
3224
- /**
3225
- * The tag for the release. This is generally in the format of "\<APP_NAME\>\@\<APP_VERSION\>".
3226
- *
3227
- * @readonly
3228
- * @category neutral
3229
- */
3230
- readonly RELEASE_TAG: string;
3231
- /**
3232
- * The name of the organization that maintains the application.
3233
- *
3234
- * @remarks
3235
- * This variable is used to specify the name of the organization that maintains the application. If not provided in an environment, it will try to use the value in {@link @storm-software/config-tools/StormWorkspaceConfig#organization}.
3236
- *
3237
- * @alias ORG
3238
- * @alias ORG_ID
3239
- * @category neutral
3240
- */
3241
- ORGANIZATION: string;
3242
- /**
3243
- * The platform for which the application was built.
3244
- *
3245
- * @defaultValue "neutral"
3246
- *
3247
- * @category neutral
3248
- */
3249
- PLATFORM: "node" | "neutral" | "browser";
3250
- /**
3251
- * The mode in which the application is running.
3252
- *
3253
- * @defaultValue "production"
3254
- *
3255
- * @alias NODE_ENV
3256
- *
3257
- * @category neutral
3258
- */
3259
- MODE: "development" | "test" | "production";
3260
- /**
3261
- * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.
3262
- *
3263
- * @defaultValue "production"
3264
- *
3265
- * @alias ENV
3266
- * @alias VERCEL_ENV
3267
- * @category neutral
3268
- */
3269
- ENVIRONMENT: string;
3270
- /**
3271
- * Indicates if the application is running in debug mode.
3272
- *
3273
- * @category neutral
3274
- */
3275
- DEBUG: boolean;
3276
- /**
3277
- * An indicator that specifies the current runtime is a test environment.
3278
- *
3279
- * @category neutral
3280
- */
3281
- TEST: boolean;
3282
- /**
3283
- * An indicator that specifies the current runtime is a minimal environment.
3284
- *
3285
- * @category node
3286
- */
3287
- MINIMAL: boolean;
3288
- /**
3289
- * An indicator that specifies the current runtime is a no color environment.
3290
- *
3291
- * @category node
3292
- */
3293
- NO_COLOR: boolean;
3294
- /**
3295
- * An indicator that specifies the current runtime is a force color environment.
3296
- *
3297
- * @category node
3298
- */
3299
- FORCE_COLOR: boolean | number;
3300
- /**
3301
- * An indicator that specifies the current runtime should force hyperlinks in terminal output.
3302
- *
3303
- * @remarks
3304
- * This variable is used to force hyperlinks in terminal output, even if the terminal does not support them. This is useful for debugging and development purposes.
3305
-
3306
- * @category node
3307
- */
3308
- FORCE_HYPERLINK: boolean | number;
3309
- /**
3310
- * The name of the agent running the application. This variable is set by certain CI/CD systems.
3311
- *
3312
- * @readonly
3313
- * @category neutral
3314
- */
3315
- readonly AGENT_NAME?: string;
3316
- /**
3317
- * The color terminal type. This variable is set by certain terminal emulators.
3318
- *
3319
- * @readonly
3320
- * @category node
3321
- */
3322
- readonly COLORTERM?: string;
3323
- /**
3324
- * The terminal type. This variable is set by certain CI/CD systems.
3325
- *
3326
- * @remarks
3327
- * This variable is used to specify the terminal type that the application is running in. It can be used to determine how to format output for the terminal.
3328
- *
3329
- * @readonly
3330
- * @category node
3331
- */
3332
- readonly TERM?: string;
3333
- /**
3334
- * The terminal program name. This variable is set by certain terminal emulators.
3335
- *
3336
- * @readonly
3337
- * @category node
3338
- */
3339
- readonly TERM_PROGRAM?: string;
3340
- /**
3341
- * The terminal program version. This variable is set by certain terminal emulators.
3342
- *
3343
- * @readonly
3344
- * @category node
3345
- */
3346
- readonly TERM_PROGRAM_VERSION?: string;
3347
- /**
3348
- * The terminal emulator name. This variable is set by certain terminal emulators.
3349
- *
3350
- * @readonly
3351
- * @category node
3352
- */
3353
- readonly TERMINAL_EMULATOR?: string;
3354
- /**
3355
- * The terminal emulator session ID. This variable is set by certain terminal emulators.
3356
- *
3357
- * @readonly
3358
- * @category node
3359
- */
3360
- readonly WT_SESSION?: string;
3361
- /**
3362
- * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.
3363
- *
3364
- * @readonly
3365
- * @category node
3366
- */
3367
- readonly TERMINUS_SUBLIME?: boolean;
3368
- /**
3369
- * The ConEmu task name. This variable is set by certain terminal emulators.
3370
- *
3371
- * @readonly
3372
- * @category node
3373
- */
3374
- readonly ConEmuTask?: string;
3375
- /**
3376
- * The cursor trace ID. This variable is set by certain terminal emulators.
3377
- *
3378
- * @readonly
3379
- * @category node
3380
- */
3381
- readonly CURSOR_TRACE_ID?: string;
3382
- /**
3383
- * The VTE version. This variable is set by certain terminal emulators.
3384
- *
3385
- * @readonly
3386
- * @category node
3387
- */
3388
- readonly VTE_VERSION?: string;
3389
- /**
3390
- * Indicates if error stack traces should be captured.
3391
- *
3392
- * @category neutral
3393
- */
3394
- STACKTRACE: boolean;
3395
- /**
3396
- * Indicates if error data should be included.
3397
- *
3398
- * @category neutral
3399
- */
3400
- INCLUDE_ERROR_DATA: boolean;
3401
- /**
3402
- * A web page to lookup error messages and display additional information given an error code.
3403
- *
3404
- * @remarks
3405
- * This variable is used to provide a URL to a page that can be used to look up error messages given an error code. This is used to provide a more user-friendly error message to the user.
3406
- *
3407
- * @title Error Details URL
3408
- * @category neutral
3409
- */
3410
- ERROR_URL: string;
3411
- /**
3412
- * The default timezone for the application.
3413
- *
3414
- * @defaultValue "America/New_York"
3415
- * @category neutral
3416
- */
3417
- DEFAULT_TIMEZONE: string;
3418
- /**
3419
- * The default locale to be used in the application.
3420
- *
3421
- * @defaultValue "en_US"
3422
- * @category neutral
3423
- */
3424
- DEFAULT_LOCALE: string;
3425
- /**
3426
- * The default lowest log level to accept. If `null`, the logger will reject all records. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.
3427
- *
3428
- * @defaultValue "info"
3429
- *
3430
- * @category neutral
3431
- */
3432
- LOG_LEVEL?: LogLevel | null;
3433
- /**
3434
- * An indicator that specifies the current runtime is a continuous integration environment.
3435
- *
3436
- * @title Continuous Integration
3437
- * @alias CONTINUOUS_INTEGRATION
3438
- * @category neutral
3439
- */
3440
- CI: boolean;
3441
- /**
3442
- * The unique identifier for the current run. This value is set by certain CI/CD systems.
3443
- *
3444
- * @readonly
3445
- * @category node
3446
- */
3447
- readonly RUN_ID?: string;
3448
- /**
3449
- * The agola git reference. This value is set by certain CI/CD systems.
3450
- *
3451
- * @readonly
3452
- * @category node
3453
- */
3454
- readonly AGOLA_GIT_REF?: string;
3455
- /**
3456
- * The appcircle build ID. This value is set by certain CI/CD systems.
3457
- *
3458
- * @readonly
3459
- * @category node
3460
- */
3461
- readonly AC_APPCIRCLE?: string;
3462
- /**
3463
- * The appveyor build ID. This value is set by certain CI/CD systems.
3464
- *
3465
- * @readonly
3466
- * @category node
3467
- */
3468
- readonly APPVEYOR?: string;
3469
- /**
3470
- * The codebuild build ID. This value is set by certain CI/CD systems.
3471
- *
3472
- * @readonly
3473
- * @category node
3474
- */
3475
- readonly CODEBUILD?: string;
3476
- /**
3477
- * The task force build ID. This value is set by certain CI/CD systems.
3478
- *
3479
- * @readonly
3480
- * @category node
3481
- */
3482
- readonly TF_BUILD?: string;
3483
- /**
3484
- * The bamboo plan key. This value is set by certain CI/CD systems.
3485
- *
3486
- * @readonly
3487
- * @category node
3488
- */
3489
- readonly bamboo_planKey?: string;
3490
- /**
3491
- * The bitbucket commit. This value is set by certain CI/CD systems.
3492
- *
3493
- * @readonly
3494
- * @category node
3495
- */
3496
- readonly BITBUCKET_COMMIT?: string;
3497
- /**
3498
- * The bitrise build ID. This value is set by certain CI/CD systems.
3499
- *
3500
- * @readonly
3501
- * @category node
3502
- */
3503
- readonly BITRISE_IO?: string;
3504
- /**
3505
- * The buddy workspace ID. This value is set by certain CI/CD systems.
3506
- *
3507
- * @readonly
3508
- * @category node
3509
- */
3510
- readonly BUDDY_WORKSPACE_ID?: string;
3511
- /**
3512
- * The buildkite build ID. This value is set by certain CI/CD systems.
3513
- *
3514
- * @readonly
3515
- * @category node
3516
- */
3517
- readonly BUILDKITE?: string;
3518
- /**
3519
- * The circleci build ID. This value is set by certain CI/CD systems.
3520
- *
3521
- * @readonly
3522
- * @category node
3523
- */
3524
- readonly CIRCLECI?: string;
3525
- /**
3526
- * The cirrus-ci build ID. This value is set by certain CI/CD systems.
3527
- *
3528
- * @readonly
3529
- * @category node
3530
- */
3531
- readonly CIRRUS_CI?: string;
3532
- /**
3533
- * The cf build ID. This value is set by certain CI/CD systems.
3534
- *
3535
- * @readonly
3536
- * @category node
3537
- */
3538
- readonly CF_BUILD_ID?: string;
3539
- /**
3540
- * The cm build ID. This value is set by certain CI/CD systems.
3541
- *
3542
- * @readonly
3543
- * @category node
3544
- */
3545
- readonly CM_BUILD_ID?: string;
3546
- /**
3547
- * The ci name. This value is set by certain CI/CD systems.
3548
- *
3549
- * @readonly
3550
- * @category node
3551
- */
3552
- readonly CI_NAME?: string;
3553
- /**
3554
- * The drone build ID. This value is set by certain CI/CD systems.
3555
- *
3556
- * @readonly
3557
- * @category node
3558
- */
3559
- readonly DRONE?: string;
3560
- /**
3561
- * The dsari build ID. This value is set by certain CI/CD systems.
3562
- *
3563
- * @readonly
3564
- * @category node
3565
- */
3566
- readonly DSARI?: string;
3567
- /**
3568
- * The earthly build ID. This value is set by certain CI/CD systems.
3569
- *
3570
- * @readonly
3571
- * @category node
3572
- */
3573
- readonly EARTHLY_CI?: string;
3574
- /**
3575
- * The eas build ID. This value is set by certain CI/CD systems.
3576
- *
3577
- * @readonly
3578
- * @category node
3579
- */
3580
- readonly EAS_BUILD?: string;
3581
- /**
3582
- * The gerrit project. This value is set by certain CI/CD systems.
3583
- *
3584
- * @readonly
3585
- * @category node
3586
- */
3587
- readonly GERRIT_PROJECT?: string;
3588
- /**
3589
- * The gitea actions build ID. This value is set by certain CI/CD systems.
3590
- *
3591
- * @readonly
3592
- * @category node
3593
- */
3594
- readonly GITEA_ACTIONS?: string;
3595
- /**
3596
- * The github actions build ID. This value is set by certain CI/CD systems.
3597
- *
3598
- * @readonly
3599
- * @category node
3600
- */
3601
- readonly GITHUB_ACTIONS?: string;
3602
- /**
3603
- * The gitlab ci build ID. This value is set by certain CI/CD systems.
3604
- *
3605
- * @readonly
3606
- * @category node
3607
- */
3608
- readonly GITLAB_CI?: string;
3609
- /**
3610
- * The go cd build ID. This value is set by certain CI/CD systems.
3611
- *
3612
- * @readonly
3613
- * @category node
3614
- */
3615
- readonly GOCD?: string;
3616
- /**
3617
- * The builder output build ID. This value is set by certain CI/CD systems.
3618
- *
3619
- * @readonly
3620
- * @category node
3621
- */
3622
- readonly BUILDER_OUTPUT?: string;
3623
- /**
3624
- * The harness build ID. This value is set by certain CI/CD systems.
3625
- *
3626
- * @readonly
3627
- * @category node
3628
- */
3629
- readonly HARNESS_BUILD_ID?: string;
3630
- /**
3631
- * The jenkins url. This value is set by certain CI/CD systems.
3632
- *
3633
- * @readonly
3634
- * @category node
3635
- */
3636
- readonly JENKINS_URL?: string;
3637
- /**
3638
- * The layerci build ID. This value is set by certain CI/CD systems.
3639
- *
3640
- * @readonly
3641
- * @category node
3642
- */
3643
- readonly LAYERCI?: string;
3644
- /**
3645
- * The magnum build ID. This value is set by certain CI/CD systems.
3646
- *
3647
- * @readonly
3648
- * @category node
3649
- */
3650
- readonly MAGNUM?: string;
3651
- /**
3652
- * The netlify build ID. This value is set by certain CI/CD systems.
3653
- *
3654
- * @readonly
3655
- * @category node
3656
- */
3657
- readonly NETLIFY?: string;
3658
- /**
3659
- * The nevercode build ID. This value is set by certain CI/CD systems.
3660
- *
3661
- * @readonly
3662
- * @category node
3663
- */
3664
- readonly NEVERCODE?: string;
3665
- /**
3666
- * The prow job ID. This value is set by certain CI/CD systems.
3667
- *
3668
- * @readonly
3669
- * @category node
3670
- */
3671
- readonly PROW_JOB_ID?: string;
3672
- /**
3673
- * The release build ID. This value is set by certain CI/CD systems.
3674
- *
3675
- * @readonly
3676
- * @category node
3677
- */
3678
- readonly RELEASE_BUILD_ID?: string;
3679
- /**
3680
- * The render build ID. This value is set by certain CI/CD systems.
3681
- *
3682
- * @readonly
3683
- * @category node
3684
- */
3685
- readonly RENDER?: string;
3686
- /**
3687
- * The sailci build ID. This value is set by certain CI/CD systems.
3688
- *
3689
- * @readonly
3690
- * @category node
3691
- */
3692
- readonly SAILCI?: string;
3693
- /**
3694
- * The hudson build ID. This value is set by certain CI/CD systems.
3695
- *
3696
- * @readonly
3697
- * @category node
3698
- */
3699
- readonly HUDSON?: string;
3700
- /**
3701
- * The screwdriver build ID. This value is set by certain CI/CD systems.
3702
- *
3703
- * @readonly
3704
- * @category node
3705
- */
3706
- readonly SCREWDRIVER?: string;
3707
- /**
3708
- * The semaphore build ID. This value is set by certain CI/CD systems.
3709
- *
3710
- * @readonly
3711
- * @category node
3712
- */
3713
- readonly SEMAPHORE?: string;
3714
- /**
3715
- * The sourcehut build ID. This value is set by certain CI/CD systems.
3716
- *
3717
- * @readonly
3718
- * @category node
3719
- */
3720
- readonly SOURCEHUT?: string;
3721
- /**
3722
- * The spaceship build ID. This value is set by certain CI/CD systems.
3723
- *
3724
- * @readonly
3725
- * @category node
3726
- */
3727
- readonly SPACESHIP_CI?: string;
3728
- /**
3729
- * The strider build ID. This value is set by certain CI/CD systems.
3730
- *
3731
- * @readonly
3732
- * @category node
3733
- */
3734
- readonly STRIDER?: string;
3735
- /**
3736
- * The task ID. This value is set by certain CI/CD systems.
3737
- *
3738
- * @readonly
3739
- * @category node
3740
- */
3741
- readonly TASK_ID?: string;
3742
- /**
3743
- * The teamcity version. This value is set by certain CI/CD systems.
3744
- *
3745
- * @readonly
3746
- * @category node
3747
- */
3748
- readonly TEAMCITY_VERSION?: string;
3749
- /**
3750
- * The travis build ID. This value is set by certain CI/CD systems.
3751
- *
3752
- * @readonly
3753
- * @category node
3754
- */
3755
- readonly TRAVIS?: string;
3756
- /**
3757
- * The vela build ID. This value is set by certain CI/CD systems.
3758
- *
3759
- * @readonly
3760
- * @category node
3761
- */
3762
- readonly VELA?: string;
3763
- /**
3764
- * The now builder build ID. This value is set by certain CI/CD systems.
3765
- *
3766
- * @readonly
3767
- * @category node
3768
- */
3769
- readonly NOW_BUILDER?: string;
3770
- /**
3771
- * The appcenter build ID. This value is set by certain CI/CD systems.
3772
- *
3773
- * @readonly
3774
- * @category node
3775
- */
3776
- readonly APPCENTER_BUILD_ID?: string;
3777
- /**
3778
- * The xcode project build ID. This value is set by certain CI/CD systems.
3779
- *
3780
- * @readonly
3781
- * @category node
3782
- */
3783
- readonly CI_XCODE_PROJECT?: string;
3784
- /**
3785
- * The xcode server build ID. This value is set by certain CI/CD systems.
3786
- *
3787
- * @readonly
3788
- * @category node
3789
- */
3790
- readonly XCS?: string;
3791
- /**
3792
- * The application's runtime data directory.
3793
- *
3794
- * @remarks
3795
- * This variable is used to override the base path of the system's local application data directory. This variable is used to set the \`$storm.paths.data\` property.
3796
- *
3797
- * @title Data Directory
3798
- * @category node
3799
- */
3800
- DATA_DIR?: string;
3801
- /**
3802
- * The application's configuration data directory.
3803
- *
3804
- * @remarks
3805
- * This variable is used to override the base path of the system's local application configuration directory. This variable is used to set the \`$storm.paths.config\` property.
3806
- *
3807
- * @title Configuration Directory
3808
- * @category node
3809
- */
3810
- CONFIG_DIR?: string;
3811
- /**
3812
- * The application's cached data directory.
3813
- *
3814
- * @remarks
3815
- * This variable is used to override the base path of the system's local cache data directory. This variable is used to set the \`$storm.paths.cache\` property.
3816
- *
3817
- * @title Cache Directory
3818
- * @category node
3819
- */
3820
- CACHE_DIR?: string;
3821
- /**
3822
- * The application's logging directory.
3823
- *
3824
- * @remarks
3825
- * This variable is used to override the base path of the system's local application log directory. This variable is used to set the \`$storm.paths.log\` property.
3826
- *
3827
- * @title Log Directory
3828
- * @category node
3829
- */
3830
- LOG_DIR?: string;
3831
- /**
3832
- * The application's temporary data directory.
3833
- *
3834
- * @remarks
3835
- * This variable is used to override the base path of the system's local temporary data directory. This variable is used to set the \`$storm.paths.temp\` property.
3836
- *
3837
- * @title Temporary Directory
3838
- * @category node
3839
- */
3840
- TEMP_DIR?: string;
3841
- /**
3842
- * A variable that specifies the current user's local application data directory on Windows.
3843
- *
3844
- * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
3845
- *
3846
- * @remarks
3847
- * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \`$storm.paths.data\`, \`$storm.paths.cache\`, and \`$storm.paths.log\` properties.
3848
- *
3849
- * @readonly
3850
- * @category node
3851
- */
3852
- readonly LOCALAPPDATA?: string;
3853
- /**
3854
- * A variable that specifies the application data directory on Windows.
3855
- *
3856
- * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
3857
- *
3858
- * @remarks
3859
- * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \`$storm.paths.config\` property.
3860
- *
3861
- * @readonly
3862
- * @category node
3863
- */
3864
- readonly APPDATA?: string;
3865
- /**
3866
- * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.
3867
- *
3868
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3869
- *
3870
- * @remarks
3871
- * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \`$storm.paths.data\` property.
3872
- *
3873
- * @readonly
3874
- * @category node
3875
- */
3876
- readonly XDG_DATA_HOME?: string;
3877
- /**
3878
- * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.
3879
- *
3880
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3881
- *
3882
- * @remarks
3883
- * This variable is used to specify a path to configuration data that is specific to the current user. This variable can be used to set the \`$storm.paths.config\` property.
3884
- *
3885
- * @readonly
3886
- * @category node
3887
- */
3888
- readonly XDG_CONFIG_HOME?: string;
3889
- /**
3890
- * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.
3891
- *
3892
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3893
- *
3894
- * @remarks
3895
- * This variable is used to specify a path to cache data that is specific to the current user. This variable can be used to set the \`$storm.paths.cache\` property.
3896
- *
3897
- * @readonly
3898
- * @category node
3899
- */
3900
- readonly XDG_CACHE_HOME?: string;
3901
- /**
3902
- * A variable that specifies the state directory on Linux systems using the XDG base directory specification.
3903
- *
3904
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3905
- *
3906
- * @remarks
3907
- * This variable is used to specify a path to application state data that is specific to the current user. This variable can be used to set the \`$storm.paths.state\` property.
3908
- *
3909
- * @readonly
3910
- * @category node
3911
- */
3912
- readonly XDG_STATE_HOME?: string;
3913
- /**
3914
- * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.
3915
- *
3916
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3917
- *
3918
- * @remarks
3919
- * This variable is used to specify a path to runtime data that is specific to the current user. This variable can be used to set the \`$storm.paths.temp\` property.
3920
- *
3921
- * @readonly
3922
- * @category node
3923
- */
3924
- readonly XDG_RUNTIME_DIR?: string;
3925
- /**
3926
- * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.
3927
- *
3928
- * @see https://devenv.sh/files-and-variables/#devenv_dotfile
3929
- * @see https://nixos.org/
3930
- *
3931
- * @remarks
3932
- * This variable is used to specify a path to application data that is specific to the current [Nix](https://nixos.org/) environment. This variable can be used to set the \`$storm.paths.temp\` property.
3933
- *
3934
- * @category node
3935
- */
3936
- DEVENV_RUNTIME?: string;
3937
- }
3938
- /**
3939
- * The base secrets configuration used by Powerlines applications
3940
- *
3941
- * @remarks
3942
- * This interface is used to define the secret configuration options used by Powerlines applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \`storm docs\` command. Since these are secrets, no default values should be provided and the values should be kept confidential (excluded from the client).
3943
- */
3944
- interface SecretsInterface {
3945
- /**
3946
- * The secret key used for encryption and decryption.
3947
- *
3948
- * @remarks
3949
- * This variable is used to provide a secret key for encryption and decryption of sensitive data. It is important that this value is kept confidential and not exposed in client-side code or public repositories.
3950
- *
3951
- * @title Encryption Key
3952
- */
3953
- ENCRYPTION_KEY: string;
3954
- }
3955
-
3956
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
3957
- /**
3958
- * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
3959
- */
3960
- types?: TypeDefinitionParameter;
3961
- /**
3962
- * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
3963
- */
3964
- secrets?: TypeDefinitionParameter;
3965
- /**
3966
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
3967
- *
3968
- * @remarks
3969
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
3970
- */
3971
- prefix?: string | string[];
3972
- /**
3973
- * Should the plugin inject the env variables in the source code with their values?
3974
- *
3975
- * @remarks
3976
- * This option is set to `true` when building an application project.
3977
- *
3978
- * @defaultValue false
3979
- */
3980
- inject?: boolean;
3981
- /**
3982
- * The default configuration to use when loading environment variables.
3983
- *
3984
- * @remarks
3985
- * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
3986
- */
3987
- defaultConfig?: Children;
3988
- /**
3989
- * Babel configuration options to use when injecting environment variables into the source code.
3990
- *
3991
- * @remarks
3992
- * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
3993
- */
3994
- babel?: BabelPluginOptions;
3995
- };
3996
- type EnvPluginUserConfig = BabelPluginUserConfig & {
3997
- env: EnvPluginOptions;
3998
- };
3999
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
4000
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
4001
- /**
4002
- * The type definition for the expected env variable parameters
4003
- *
4004
- * @remarks
4005
- * This value is parsed from the {@link EnvPluginOptions.types} option.
4006
- */
4007
- types: TypeDefinition;
4008
- /**
4009
- * The type definition for the expected env secret parameters
4010
- *
4011
- * @remarks
4012
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
4013
- */
4014
- secrets: TypeDefinition;
4015
- /**
4016
- * Should the plugin inject the env variables in the source code with their values?
4017
- *
4018
- * @remarks
4019
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
4020
- */
4021
- inject: EnvPluginOptions["inject"];
4022
- /**
4023
- * The prefix used for environment variables
4024
- *
4025
- * @remarks
4026
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
4027
- */
4028
- prefix: string[];
4029
- };
4030
- };
4031
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig> {
4032
- env: {
4033
- /**
4034
- * The type definitions reflection for the env variables and secrets
4035
- *
4036
- * @remarks
4037
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
4038
- */
4039
- types: {
4040
- /**
4041
- * The type definitions for the expected env variables
4042
- */
4043
- env: Reflection;
4044
- /**
4045
- * The type definitions for the expected env secrets
4046
- */
4047
- secrets: Reflection;
4048
- };
4049
- /**
4050
- * The current **used** environment variables and secrets reflection
4051
- *
4052
- * @remarks
4053
- * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
4054
- */
4055
- used: {
4056
- /**
4057
- * The current env variables reflection
4058
- */
4059
- env: Reflection<EnvInterface>;
4060
- /**
4061
- * The current env secrets reflection
4062
- */
4063
- secrets: Reflection<SecretsInterface>;
4064
- };
4065
- /**
4066
- * The parsed .env configuration object
4067
- *
4068
- * @remarks
4069
- * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
4070
- */
4071
- parsed: DotenvParseOutput;
4072
- /**
4073
- * The injected environment variables and secrets reflection
4074
- *
4075
- * @remarks
4076
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
4077
- */
4078
- injected: Reflection;
4079
- };
4080
- }
4081
-
4082
- type DateLibraryType = "date-fns" | "dayjs" | "luxon" | "moment";
4083
- interface DatePluginOptions {
4084
- /**
4085
- * The type of date library to use
4086
- *
4087
- * @remarks
4088
- * This value is used to determine which date library to use for date manipulation. It can be one of the following:
4089
- * - [date-fns](https://date-fns.org/)
4090
- * - [dayjs](https://day.js.org/)
4091
- * - [luxon](https://moment.github.io/luxon/)
4092
- * - [moment](https://momentjs.com/)
4093
- *
4094
- * @defaultValue "date-fns"
4095
- */
4096
- type?: DateLibraryType;
4097
- /**
4098
- * Options for the Env plugin.
4099
- */
4100
- env?: EnvPluginOptions;
4101
- }
4102
- interface DatePluginUserConfig extends EnvPluginUserConfig {
4103
- /**
4104
- * Options for the date plugin.
4105
- */
4106
- date?: Omit<DatePluginOptions, "env">;
4107
- }
4108
- interface DatePluginResolvedConfig extends EnvPluginResolvedConfig {
4109
- /**
4110
- * Options for the date plugin.
4111
- */
4112
- date: Required<Omit<DatePluginOptions, "env">>;
4113
- }
4114
- type DatePluginContext<TResolvedConfig extends DatePluginResolvedConfig = DatePluginResolvedConfig> = EnvPluginContext<TResolvedConfig>;
4115
- declare type __ΩDateLibraryType = any[];
4116
- declare type __ΩDatePluginOptions = any[];
4117
- declare type __ΩDatePluginUserConfig = any[];
4118
- declare type __ΩDatePluginResolvedConfig = any[];
4119
- declare type __ΩDatePluginContext = any[];
4120
-
4121
- export type { DateLibraryType as D, Plugin as P, __ΩDateLibraryType as _, DatePluginOptions as a, DatePluginUserConfig as b, DatePluginResolvedConfig as c, DatePluginContext as d, __ΩDatePluginOptions as e, __ΩDatePluginUserConfig as f, __ΩDatePluginResolvedConfig as g, __ΩDatePluginContext as h };