@powerlines/plugin-date 0.12.67 → 0.12.69

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