@powerlines/plugin-date 0.12.66 → 0.12.68

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