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