@powerlines/plugin-date 0.12.143 → 0.12.145

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