@powerlines/plugin-date 0.12.67 → 0.12.68

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