@stacksjs/types 0.52.10 → 0.56.3

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 (81) hide show
  1. package/dist/index.d.ts +2111 -39
  2. package/dist/index.mjs +112 -39
  3. package/package.json +24 -18
  4. package/dist/app.d.ts +0 -108
  5. package/dist/app.mjs +0 -0
  6. package/dist/auto-imports.d.ts +0 -1
  7. package/dist/auto-imports.mjs +0 -0
  8. package/dist/build.d.ts +0 -2
  9. package/dist/build.mjs +0 -0
  10. package/dist/cache.d.ts +0 -69
  11. package/dist/cache.mjs +0 -0
  12. package/dist/cdn.d.ts +0 -15
  13. package/dist/cdn.mjs +0 -0
  14. package/dist/cli.d.ts +0 -280
  15. package/dist/cli.mjs +0 -88
  16. package/dist/components.d.ts +0 -60
  17. package/dist/components.mjs +0 -0
  18. package/dist/cron-jobs.d.ts +0 -16
  19. package/dist/cron-jobs.mjs +0 -0
  20. package/dist/database.d.ts +0 -32
  21. package/dist/database.mjs +0 -0
  22. package/dist/debug.d.ts +0 -6
  23. package/dist/debug.mjs +0 -0
  24. package/dist/deploy.d.ts +0 -9
  25. package/dist/deploy.mjs +0 -0
  26. package/dist/dns.d.ts +0 -43
  27. package/dist/dns.mjs +0 -0
  28. package/dist/docs.d.ts +0 -3
  29. package/dist/docs.mjs +0 -0
  30. package/dist/errors.d.ts +0 -1
  31. package/dist/errors.mjs +0 -6
  32. package/dist/events.d.ts +0 -22
  33. package/dist/events.mjs +0 -0
  34. package/dist/exit-code.d.ts +0 -10
  35. package/dist/exit-code.mjs +0 -6
  36. package/dist/fs.d.ts +0 -22
  37. package/dist/fs.mjs +0 -0
  38. package/dist/git.d.ts +0 -128
  39. package/dist/git.mjs +0 -0
  40. package/dist/hashing.d.ts +0 -102
  41. package/dist/hashing.mjs +0 -0
  42. package/dist/i18n.d.ts +0 -19
  43. package/dist/i18n.mjs +0 -0
  44. package/dist/inspect.d.ts +0 -9
  45. package/dist/inspect.mjs +0 -0
  46. package/dist/layout.d.ts +0 -7
  47. package/dist/layout.mjs +0 -0
  48. package/dist/library.d.ts +0 -132
  49. package/dist/library.mjs +0 -0
  50. package/dist/manifest.d.ts +0 -9
  51. package/dist/manifest.mjs +0 -0
  52. package/dist/markdown.d.ts +0 -167
  53. package/dist/markdown.mjs +0 -0
  54. package/dist/model.d.ts +0 -41
  55. package/dist/model.mjs +0 -0
  56. package/dist/notifications.d.ts +0 -164
  57. package/dist/notifications.mjs +0 -0
  58. package/dist/pages.d.ts +0 -10
  59. package/dist/pages.mjs +0 -0
  60. package/dist/payments.d.ts +0 -59
  61. package/dist/payments.mjs +0 -0
  62. package/dist/promise.d.ts +0 -1
  63. package/dist/promise.mjs +0 -0
  64. package/dist/pwa.d.ts +0 -7
  65. package/dist/pwa.mjs +0 -0
  66. package/dist/reactivity.d.ts +0 -1
  67. package/dist/reactivity.mjs +0 -0
  68. package/dist/router.d.ts +0 -42
  69. package/dist/router.mjs +0 -0
  70. package/dist/search-engine.d.ts +0 -143
  71. package/dist/search-engine.mjs +0 -0
  72. package/dist/ssg.d.ts +0 -2
  73. package/dist/ssg.mjs +0 -0
  74. package/dist/stacks.d.ts +0 -163
  75. package/dist/stacks.mjs +0 -0
  76. package/dist/tables.d.ts +0 -52
  77. package/dist/tables.mjs +0 -0
  78. package/dist/ui.d.ts +0 -180
  79. package/dist/ui.mjs +0 -0
  80. package/dist/utils.d.ts +0 -30
  81. package/dist/utils.mjs +0 -0
package/dist/cli.d.ts DELETED
@@ -1,280 +0,0 @@
1
- /**
2
- * The parsed command-line arguments
3
- */
4
- import type { Ora } from 'ora';
5
- import type { ExecaReturnValue } from 'execa';
6
- import type { Err, Ok } from './errors';
7
- export type CommandReturnValue = ExecaReturnValue<string>;
8
- export type CommandResult = Ok<ExecaReturnValue<string>, Error | void> | Err<ExecaReturnValue<string>, Error | string | void>;
9
- export interface OutroOptions extends CliOptions {
10
- type?: 'success' | 'error' | 'warning' | 'info';
11
- startTime?: number;
12
- useSeconds?: boolean;
13
- isError?: boolean;
14
- quiet?: boolean;
15
- }
16
- export interface IntroOptions {
17
- /**
18
- * @default true
19
- */
20
- showPerformance?: boolean;
21
- /**
22
- * @default false
23
- */
24
- quiet: boolean;
25
- }
26
- type SpinnerOptions = Ora;
27
- export type CliOptionsKeys = keyof CliOptions;
28
- /**
29
- * The CLI Options used in `./config/cli.ts`.
30
- */
31
- export interface UserCliOptions {
32
- name?: string;
33
- command?: string;
34
- description?: string;
35
- }
36
- /**
37
- * The options to pass to the CLI.
38
- */
39
- export interface CliOptions {
40
- /**
41
- * **Quiet Output**
42
- *
43
- * When your application is in "quiet"-mode, a different level of information
44
- * like useful outputs for debugging reasons, will be shown.
45
- * When disabled, it defaults to the "normal experience."
46
- *
47
- * @default false
48
- */
49
- quiet?: boolean;
50
- /**
51
- * **Verbose Output**
52
- *
53
- * When your application is in "verbose"-mode, a different level of,
54
- * information like useful outputs for debugging reasons, will be
55
- * shown. When disabled, it defaults to the "normal experience."
56
- *
57
- * @default false
58
- */
59
- verbose?: boolean;
60
- /**
61
- * **Current Work Directory**
62
- *
63
- * Based on the `cwd` value, that's where the command...
64
- *
65
- * @default projectPath()
66
- */
67
- cwd?: string;
68
- /**
69
- * **Should show loading animation spinner?**
70
- *
71
- * Should the command show a loading animation?
72
- * Please note, when debug mode is enabled,
73
- * the animation will not show.
74
- *
75
- * @default true
76
- */
77
- showSpinner?: boolean | SpinnerOptions;
78
- /**
79
- * **Spinner Text**
80
- *
81
- * The text to show when the spinner is shown.
82
- *
83
- * @default 'Executing...'
84
- */
85
- spinnerText?: string;
86
- /**
87
- * **Should the command be run inside a shell?**
88
- *
89
- * If `true`, runs `command` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe`
90
- * on Windows. A different shell can be specified as a string. The shell should
91
- * understand the `-c` switch on UNIX or `/d /s /c` on Windows.
92
- *
93
- * We recommend against using this option since it is:
94
- * - not cross-platform, encouraging shell-specific syntax.
95
- * - slower, because of the additional shell interpretation.
96
- * - unsafe, potentially allowing command injection.
97
- *
98
- * @default false
99
- */
100
- shell?: boolean;
101
- /**
102
- * **Encoding**
103
- *
104
- * Encoding type
105
- *
106
- * @default 'utf-8'
107
- */
108
- encoding?: string;
109
- }
110
- export type { Ora as SpinnerOptions } from 'ora';
111
- export type ActionOption = 'types';
112
- /**
113
- * The options to pass to the Action.
114
- */
115
- export type ActionOptions = {
116
- [key in ActionOption]?: boolean;
117
- } & CliOptions;
118
- export type BuildOption = 'components' | 'vueComponents' | 'webComponents' | 'elements' | 'functions' | 'docs' | 'pages' | 'stacks' | 'all';
119
- export type BuildOptions = {
120
- [key in BuildOption]: boolean;
121
- } & CliOptions;
122
- export type AddOption = 'table' | 'calendar' | 'all';
123
- export type AddOptions = {
124
- [key in AddOption]?: boolean;
125
- } & CliOptions;
126
- export type CreateStringOption = 'name';
127
- export type CreateBooleanOption = 'ui' | 'components' | 'web-components' | 'vue' | 'pages' | 'functions' | 'api' | 'database';
128
- export type CreateOptions = {
129
- [key in CreateBooleanOption]: boolean;
130
- } & {
131
- [key in CreateStringOption]: string;
132
- } & CliOptions;
133
- export type DevOption = 'components' | 'docs' | 'pages' | 'functions' | 'desktop' | 'all';
134
- export type DevOptions = {
135
- [key in DevOption]: boolean;
136
- } & CliOptions;
137
- export type GeneratorOption = 'types' | 'entries' | 'webTypes' | 'customData' | 'ideHelpers' | 'vueCompatibility' | 'componentMeta';
138
- export type GeneratorOptions = {
139
- [key in GeneratorOption]?: boolean;
140
- } & CliOptions;
141
- export type LintOption = 'fix';
142
- export type LintOptions = {
143
- [key in LintOption]: boolean;
144
- } & CliOptions;
145
- export type MakeStringOption = 'name' | 'chat' | 'sms' | 'env';
146
- export type MakeBooleanOption = 'component' | 'page' | 'function' | 'language' | 'database' | 'migration' | 'factory' | 'notification' | 'stack';
147
- export type MakeOptions = {
148
- [key in MakeBooleanOption]: boolean;
149
- } & {
150
- [key in MakeStringOption]: string;
151
- } & CliOptions;
152
- export type UpgradeBoolean = 'framework' | 'dependencies' | 'packageManager' | 'node' | 'all' | 'force';
153
- export type UpgradeString = 'version';
154
- export type UpgradeOptions = {
155
- [key in UpgradeBoolean]: boolean;
156
- } & {
157
- [key in UpgradeString]: string;
158
- } & CliOptions;
159
- export type ExamplesString = 'version';
160
- export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force';
161
- export type ExamplesOption = ExamplesString & ExamplesBoolean | void;
162
- export type ExamplesOptions = {
163
- [key in ExamplesString]: string;
164
- } & {
165
- [key in ExamplesBoolean]: boolean;
166
- } & CliOptions;
167
- export type TestOptions = CliOptions & {
168
- showReport?: boolean;
169
- };
170
- export interface CleanOptions extends CliOptions {
171
- }
172
- export interface CommitOptions extends CliOptions {
173
- }
174
- export interface KeyOptions extends CliOptions {
175
- }
176
- export interface FreshOptions extends CliOptions {
177
- }
178
- export interface InspireOptions extends CliOptions {
179
- }
180
- export interface ReleaseOptions extends CliOptions {
181
- }
182
- export interface PreinstallOptions extends CliOptions {
183
- }
184
- export interface PrepublishOptions extends CliOptions {
185
- }
186
- export interface TinkerOptions extends CliOptions {
187
- }
188
- export interface TypesOptions extends CliOptions {
189
- }
190
- export type LibEntryType = 'vue-components' | 'web-components' | 'functions' | 'all';
191
- /**
192
- * The available npm scripts within the Stacks toolkit.
193
- */
194
- export declare const enum NpmScript {
195
- Build = "build",
196
- BuildComponents = "build:components",
197
- BuildWebComponents = "build:web-components",
198
- BuildFunctions = "build:functions",
199
- BuildDocs = "build:docs",
200
- BuildStacks = "build:stacks",
201
- Clean = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist",
202
- Dev = "dev",
203
- DevComponents = "vite --config ./core/build/src/vue-components.ts",
204
- DevDocs = "npx vitepress dev ./docs/src",
205
- DevDesktop = "dev:desktop",
206
- DevPages = "dev:pages",
207
- DevFunctions = "dev:functions",
208
- Fresh = "fresh",
209
- Lint = "eslint . ; npx publint",
210
- LintFix = "eslint . --fix",
211
- MakeStack = "make:stack",
212
- Test = "vitest --config vitest.config.ts",
213
- TestUnit = "vitest --config vitest.config.ts",
214
- TestFeature = "playwright test --config playwright.config.ts",
215
- TestUi = "vitest --config vitest.config.ts --ui",
216
- TestCoverage = "vitest --config vitest.config.ts --coverage",
217
- TestTypes = "vue-npx tsc --noEmit",
218
- Generate = "generate",
219
- GenerateTypes = "generate:types",
220
- GenerateEntries = "generate:entries",
221
- GenerateVueCompat = "generate:vue-compatibility",
222
- GenerateWebTypes = "generate:web-types",
223
- GenerateVsCodeCustomData = "generate:vscode-custom-data",
224
- GenerateIdeHelpers = "generate:ide-helpers",
225
- GenerateComponentMeta = "generate:component-meta",
226
- Release = "release",
227
- Commit = "commit",
228
- Example = "example",
229
- ExampleVue = "example:vue",
230
- ExampleWebComponents = "example:web-components",
231
- KeyGenerate = "key:generate",
232
- TypesFix = "types:fix",
233
- TypesGenerate = "types:generate",
234
- Preinstall = "preinstall",
235
- Prepublish = "prepublish",
236
- Wip = "wip",
237
- UpgradeNode = "./.stacks/scripts/setup.sh +nodejs.org",
238
- UpgradePackageManager = "./.stacks/scripts/setup.sh +pnpm.io"
239
- }
240
- export declare const enum Action {
241
- Bump = "bump",
242
- BuildStacks = "build/stacks",
243
- BuildComponentLibs = "build-component-libs",
244
- BuildVueComponentLib = "build-vue-component-lib",
245
- BuildWebComponentLib = "build-web-component-lib",
246
- BuildCli = "build-cli",
247
- BuildCore = "build/core",
248
- BuildDocs = "build-docs",
249
- BuildFunctionLib = "build-function-lib",
250
- Changelog = "changelog",
251
- Clean = "clean",
252
- DevComponents = "dev/components",
253
- DevDocs = "dev/docs",
254
- Deploy = "deploy",
255
- Fresh = "fresh",
256
- GeneratePackageJsons = "generate/package-jsons",
257
- GenerateSettings = "generate-settings",
258
- GenerateOnboarding = "generate-onboarding",
259
- Inspire = "inspire",
260
- KeyGenerate = "key-generate",
261
- MakeNotification = "make-notification",
262
- Migrate = "migrate",
263
- Seed = "seed",
264
- Lint = "lint/index",
265
- LintFix = "lint/fix",
266
- Prepublish = "prepublish",
267
- Release = "release",
268
- ShowFeatureTestReport = "show-feature-test-report",
269
- Test = "test",
270
- TestUi = "test-ui",
271
- TestUnit = "test-unit",
272
- TestFeature = "test-feature",
273
- TestCoverage = "test-coverage",
274
- Tinker = "tinker",
275
- Typecheck = "typecheck",
276
- Upgrade = "upgrade/index",
277
- UpgradeNode = "upgrade/node",
278
- UpgradePackageManager = "upgrade/package-manager"
279
- }
280
- export type { CAC as CLI } from 'cac';
package/dist/cli.mjs DELETED
@@ -1,88 +0,0 @@
1
- export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
2
- NpmScript2["Build"] = "build";
3
- NpmScript2["BuildComponents"] = "build:components";
4
- NpmScript2["BuildWebComponents"] = "build:web-components";
5
- NpmScript2["BuildFunctions"] = "build:functions";
6
- NpmScript2["BuildDocs"] = "build:docs";
7
- NpmScript2["BuildStacks"] = "build:stacks";
8
- NpmScript2["Clean"] = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist";
9
- NpmScript2["Dev"] = "dev";
10
- NpmScript2["DevComponents"] = "vite --config ./core/build/src/vue-components.ts";
11
- NpmScript2["DevDocs"] = "npx vitepress dev ./docs/src";
12
- NpmScript2["DevDesktop"] = "dev:desktop";
13
- NpmScript2["DevPages"] = "dev:pages";
14
- NpmScript2["DevFunctions"] = "dev:functions";
15
- NpmScript2["Fresh"] = "fresh";
16
- NpmScript2["Lint"] = "eslint . ; npx publint";
17
- NpmScript2["LintFix"] = "eslint . --fix";
18
- NpmScript2["MakeStack"] = "make:stack";
19
- NpmScript2["Test"] = "vitest --config vitest.config.ts";
20
- NpmScript2["TestUnit"] = "vitest --config vitest.config.ts";
21
- NpmScript2["TestFeature"] = "playwright test --config playwright.config.ts";
22
- NpmScript2["TestUi"] = "vitest --config vitest.config.ts --ui";
23
- NpmScript2["TestCoverage"] = "vitest --config vitest.config.ts --coverage";
24
- NpmScript2["TestTypes"] = "vue-npx tsc --noEmit";
25
- NpmScript2["Generate"] = "generate";
26
- NpmScript2["GenerateTypes"] = "generate:types";
27
- NpmScript2["GenerateEntries"] = "generate:entries";
28
- NpmScript2["GenerateVueCompat"] = "generate:vue-compatibility";
29
- NpmScript2["GenerateWebTypes"] = "generate:web-types";
30
- NpmScript2["GenerateVsCodeCustomData"] = "generate:vscode-custom-data";
31
- NpmScript2["GenerateIdeHelpers"] = "generate:ide-helpers";
32
- NpmScript2["GenerateComponentMeta"] = "generate:component-meta";
33
- NpmScript2["Release"] = "release";
34
- NpmScript2["Commit"] = "commit";
35
- NpmScript2["Example"] = "example";
36
- NpmScript2["ExampleVue"] = "example:vue";
37
- NpmScript2["ExampleWebComponents"] = "example:web-components";
38
- NpmScript2["KeyGenerate"] = "key:generate";
39
- NpmScript2["TypesFix"] = "types:fix";
40
- NpmScript2["TypesGenerate"] = "types:generate";
41
- NpmScript2["Preinstall"] = "preinstall";
42
- NpmScript2["Prepublish"] = "prepublish";
43
- NpmScript2["Wip"] = "wip";
44
- NpmScript2["UpgradeNode"] = "./.stacks/scripts/setup.sh +nodejs.org";
45
- NpmScript2["UpgradePackageManager"] = "./.stacks/scripts/setup.sh +pnpm.io";
46
- return NpmScript2;
47
- })(NpmScript || {});
48
- export var Action = /* @__PURE__ */ ((Action2) => {
49
- Action2["Bump"] = "bump";
50
- Action2["BuildStacks"] = "build/stacks";
51
- Action2["BuildComponentLibs"] = "build-component-libs";
52
- Action2["BuildVueComponentLib"] = "build-vue-component-lib";
53
- Action2["BuildWebComponentLib"] = "build-web-component-lib";
54
- Action2["BuildCli"] = "build-cli";
55
- Action2["BuildCore"] = "build/core";
56
- Action2["BuildDocs"] = "build-docs";
57
- Action2["BuildFunctionLib"] = "build-function-lib";
58
- Action2["Changelog"] = "changelog";
59
- Action2["Clean"] = "clean";
60
- Action2["DevComponents"] = "dev/components";
61
- Action2["DevDocs"] = "dev/docs";
62
- Action2["Deploy"] = "deploy";
63
- Action2["Fresh"] = "fresh";
64
- Action2["GeneratePackageJsons"] = "generate/package-jsons";
65
- Action2["GenerateSettings"] = "generate-settings";
66
- Action2["GenerateOnboarding"] = "generate-onboarding";
67
- Action2["Inspire"] = "inspire";
68
- Action2["KeyGenerate"] = "key-generate";
69
- Action2["MakeNotification"] = "make-notification";
70
- Action2["Migrate"] = "migrate";
71
- Action2["Seed"] = "seed";
72
- Action2["Lint"] = "lint/index";
73
- Action2["LintFix"] = "lint/fix";
74
- Action2["Prepublish"] = "prepublish";
75
- Action2["Release"] = "release";
76
- Action2["ShowFeatureTestReport"] = "show-feature-test-report";
77
- Action2["Test"] = "test";
78
- Action2["TestUi"] = "test-ui";
79
- Action2["TestUnit"] = "test-unit";
80
- Action2["TestFeature"] = "test-feature";
81
- Action2["TestCoverage"] = "test-coverage";
82
- Action2["Tinker"] = "tinker";
83
- Action2["Typecheck"] = "typecheck";
84
- Action2["Upgrade"] = "upgrade/index";
85
- Action2["UpgradeNode"] = "upgrade/node";
86
- Action2["UpgradePackageManager"] = "upgrade/package-manager";
87
- return Action2;
88
- })(Action || {});
@@ -1,60 +0,0 @@
1
- export type { Options as ComponentOptions } from 'unplugin-vue-components';
2
- export interface TagOption {
3
- /**
4
- * **Tag Name**
5
- *
6
- * This is the name of the component to be included in your library build.
7
- * When defining a tag, ensure that the name corresponds to a file within
8
- * root component directory.
9
- *
10
- * @example
11
- * {
12
- * tags: [{
13
- * name: 'HelloWorld' // results in `<HelloWorld />`
14
- * }]
15
- * }
16
- *
17
- * @example
18
- * {
19
- * tags: [{
20
- * name: ['HelloWorld', 'AppHelloWorld'] // results in `<AppHelloWorld />`
21
- * }]
22
- * }
23
- * @see https://stacksjs.dev/docs/components
24
- */
25
- name: string | string[];
26
- /**
27
- * **Tag Description**
28
- *
29
- * This is the description of your component. This value is
30
- * used when to provide additional information to IDEs.
31
- *
32
- * @example
33
- * {
34
- * name: 'HelloWorld' // results in `<HelloWorld />`
35
- * }
36
- * @see https://stacksjs.dev/docs/components
37
- */
38
- description?: string;
39
- /**
40
- * **Tag Attributes**
41
- *
42
- * These are your component's attributes. While it's an optional field, you should aim
43
- * to define all of your component attributes here, to provide as much context
44
- * to your IDEs as possible, when actually using the library as an end-user.
45
- *
46
- * @example
47
- * {
48
- * attributes: {
49
- * name: 'greeting',
50
- * description: 'The way to greet the user.',
51
- * }
52
- * }
53
- * @see https://stacksjs.dev/docs/components
54
- */
55
- attributes?: {
56
- name: string;
57
- description: string;
58
- }[];
59
- }
60
- export type TagsOptions = TagOption[];
File without changes
@@ -1,16 +0,0 @@
1
- /**
2
- * Cron Job Options.
3
- */
4
- export interface CronJobOptions {
5
- /**
6
- * The name of the cron job.
7
- */
8
- name?: string;
9
- function: string;
10
- schedule: string;
11
- description?: string;
12
- enabled?: boolean;
13
- timezone?: string;
14
- }
15
- export type CronJob = CronJobOptions;
16
- export type CronJobs = CronJob[];
File without changes
@@ -1,32 +0,0 @@
1
- import type { Model } from './model';
2
- export type DatabaseClient = any;
3
- export interface DatabaseOptions {
4
- driver: string;
5
- drivers: {
6
- mysql: {
7
- url?: string;
8
- host?: string;
9
- port?: number;
10
- client?: DatabaseClient;
11
- name: string;
12
- username?: string;
13
- password?: string;
14
- };
15
- planetscale: {};
16
- postgres: {};
17
- };
18
- }
19
- export interface FactoryOptions {
20
- name: string;
21
- count?: number;
22
- items: object;
23
- columns: object;
24
- }
25
- export interface SchemaOptions {
26
- database: string;
27
- }
28
- export interface DatabaseDriver {
29
- client: DatabaseClient;
30
- migrate: (models: Model[], path: string, options?: SchemaOptions) => Promise<void>;
31
- factory: (modelName: string, fileName: string, path: string) => Promise<void>;
32
- }
package/dist/database.mjs DELETED
File without changes
package/dist/debug.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export interface DebugOptions {
2
- driver?: string;
3
- enabled: boolean;
4
- host: string;
5
- port: number;
6
- }
package/dist/debug.mjs DELETED
File without changes
package/dist/deploy.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * **Deploy Options**
3
- *
4
- * This configuration defines all of your deployment options. Because Stacks is fully-typed,
5
- * you may hover any of the options below and the definitions will be provided. In case
6
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- */
8
- export interface DeployOptions {
9
- }
package/dist/deploy.mjs DELETED
File without changes
package/dist/dns.d.ts DELETED
@@ -1,43 +0,0 @@
1
- export interface ARecord {
2
- name: string | '@' | '*';
3
- address: string;
4
- ttl?: number | 'auto';
5
- }
6
- export interface CNameRecord {
7
- name: string;
8
- target: string;
9
- ttl: number | 'auto';
10
- }
11
- export interface MXRecord {
12
- name: string | '@';
13
- mailServer: string;
14
- ttl: number | 'auto';
15
- priority: number;
16
- }
17
- export interface TxtRecord {
18
- name: string | '@';
19
- ttl: number | 'auto';
20
- content: string;
21
- }
22
- export interface AAAARecord {
23
- name: string | '@' | '*';
24
- address: string;
25
- ttl: number | 'auto';
26
- }
27
- export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord;
28
- /**
29
- * **DNS Options**
30
- *
31
- * This configuration defines all of your DNS options. Because Stacks is fully-typed,
32
- * you may hover any of the options below and the definitions will be provided. In case
33
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
34
- *
35
- * @see https://stacksjs.dev/docs/dns
36
- */
37
- export interface DnsOptions {
38
- a?: ARecord[];
39
- aaaa?: AAAARecord[];
40
- cname?: CNameRecord[];
41
- mx?: MXRecord[];
42
- txt?: TxtRecord[];
43
- }
package/dist/dns.mjs DELETED
File without changes
package/dist/docs.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { UserConfig } from 'vitepress';
2
- export type DocsConfig = UserConfig;
3
- export type DocsOptions = DocsConfig;
package/dist/docs.mjs DELETED
File without changes
package/dist/errors.d.ts DELETED
@@ -1 +0,0 @@
1
- export { Err, Ok, Result, ResultAsync, } from 'neverthrow';
package/dist/errors.mjs DELETED
@@ -1,6 +0,0 @@
1
- export {
2
- Err,
3
- Ok,
4
- Result,
5
- ResultAsync
6
- } from "neverthrow";
package/dist/events.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * **Events**
3
- *
4
- * This configuration defines all of your events. Because Stacks is fully-typed, you may
5
- * hover any of the options below and the definitions will be provided. In case you
6
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- *
8
- * @example To fire an event, you may use any of the following approaches:
9
- * ```ts
10
- * useEvent('user:registered', { name: 'Chris'})
11
- * dispatch('user:registered', { name: 'Chris'})
12
- * ````
13
-
14
- * @example To capture an event, you may use any of the following approaches:
15
- * ```ts
16
- * useListen('user:registered', (user) => console.log(user))
17
- * listen('user:registered', (user) => console.log(user))
18
- * ```
19
- */
20
- export interface Events {
21
- [key: string]: any;
22
- }
package/dist/events.mjs DELETED
File without changes
@@ -1,10 +0,0 @@
1
- /**
2
- * CLI exit codes.
3
- *
4
- * @see https://nodejs.org/api/process.html#process_exit_codes
5
- */
6
- export declare enum ExitCode {
7
- Success = 0,
8
- FatalError = 1,
9
- InvalidArgument = 9
10
- }
@@ -1,6 +0,0 @@
1
- export var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
2
- ExitCode2[ExitCode2["Success"] = 0] = "Success";
3
- ExitCode2[ExitCode2["FatalError"] = 1] = "FatalError";
4
- ExitCode2[ExitCode2["InvalidArgument"] = 9] = "InvalidArgument";
5
- return ExitCode2;
6
- })(ExitCode || {});
package/dist/fs.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * Describes a plain-text file.
3
- */
4
- export interface TextFile {
5
- path: string;
6
- data: string;
7
- }
8
- /**
9
- * Describes a JSON file.
10
- */
11
- export interface JsonFile {
12
- path: string;
13
- data: unknown;
14
- indent: string;
15
- newline: string | undefined;
16
- }
17
- /**
18
- * Describes a package.json file.
19
- */
20
- export interface PackageJson {
21
- packageManager: string;
22
- }
package/dist/fs.mjs DELETED
File without changes