@vue.ts/complex-types 1.0.0-beta.11 → 1.0.0-beta.12
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.
- package/LICENSE +21 -21
- package/README.md +8 -1
- package/dist/astro.d.mts +7 -0
- package/dist/astro.mjs +13 -0
- package/dist/esbuild.d.mts +7 -0
- package/dist/esbuild.mjs +7 -0
- package/dist/farm.d.mts +7 -0
- package/dist/farm.mjs +7 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +3 -0
- package/dist/nuxt.d.mts +7 -0
- package/dist/{nuxt.js → nuxt.mjs} +2 -3
- package/dist/rolldown.d.mts +7 -0
- package/dist/rolldown.mjs +7 -0
- package/dist/rollup.d.mts +7 -0
- package/dist/rollup.mjs +7 -0
- package/dist/rspack.d.mts +7 -0
- package/dist/rspack.mjs +7 -0
- package/dist/{src-2v9kOGLq.js → src-CceuDO-2.mjs} +7 -13
- package/dist/types-BgxPWhu1.d.mts +17 -0
- package/dist/vite.d.mts +7 -0
- package/dist/vite.mjs +7 -0
- package/dist/webpack.d.mts +7 -0
- package/dist/webpack.mjs +7 -0
- package/package.json +27 -55
- package/dist/astro.d.ts +0 -11
- package/dist/astro.js +0 -14
- package/dist/esbuild.d.ts +0 -8
- package/dist/esbuild.js +0 -8
- package/dist/farm.d.ts +0 -8
- package/dist/farm.js +0 -8
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -3
- package/dist/nuxt.d.ts +0 -8
- package/dist/rolldown.d.ts +0 -8
- package/dist/rolldown.js +0 -8
- package/dist/rollup.d.ts +0 -8
- package/dist/rollup.js +0 -8
- package/dist/rspack.d.ts +0 -7
- package/dist/rspack.js +0 -8
- package/dist/types-CR_5PFfY.d.ts +0 -38
- package/dist/types-u_Hr5uXA.d.ts +0 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.js +0 -1
- package/dist/vite-DIsmg5Oh.js +0 -8
- package/dist/vite.d.ts +0 -8
- package/dist/vite.js +0 -4
- package/dist/webpack-XlZBixWC.js +0 -8
- package/dist/webpack.d.ts +0 -8
- package/dist/webpack.js +0 -4
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Ray <https://github.com/so1ve>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Ray <https://github.com/so1ve>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -214,12 +214,19 @@ export default defineConfig({
|
|
|
214
214
|
|
|
215
215
|
## 📚 Options
|
|
216
216
|
|
|
217
|
+
### `root`
|
|
218
|
+
|
|
219
|
+
Path to your project root.
|
|
220
|
+
|
|
221
|
+
- Type: `string`
|
|
222
|
+
- Default: `process.cwd()`
|
|
223
|
+
|
|
217
224
|
### `tsconfigPath`
|
|
218
225
|
|
|
219
226
|
Path to your `tsconfig.json`.
|
|
220
227
|
|
|
221
228
|
- Type: `string`
|
|
222
|
-
- Default: `
|
|
229
|
+
- Default: `"tsconfig.json"`
|
|
223
230
|
|
|
224
231
|
### `defineEmits`
|
|
225
232
|
|
package/dist/astro.d.mts
ADDED
package/dist/astro.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import vite_default from "./vite.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/astro.ts
|
|
4
|
+
var astro_default = (options) => ({
|
|
5
|
+
name: "@vue.ts/complex-types",
|
|
6
|
+
hooks: { "astro:config:setup": async (astro) => {
|
|
7
|
+
astro.config.vite.plugins ??= [];
|
|
8
|
+
astro.config.vite.plugins.push(vite_default(options));
|
|
9
|
+
} }
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { astro_default as default };
|
package/dist/esbuild.mjs
ADDED
package/dist/farm.d.mts
ADDED
package/dist/farm.mjs
ADDED
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as Options } from "./types-BgxPWhu1.mjs";
|
|
2
|
+
import { UnpluginFactory, UnpluginInstance } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare const unpluginFactory: UnpluginFactory<Options | undefined>;
|
|
6
|
+
declare const unplugin: UnpluginInstance<Options | undefined>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { unplugin as default, unplugin, unpluginFactory };
|
package/dist/index.mjs
ADDED
package/dist/nuxt.d.mts
ADDED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import { t as webpack_default } from "./webpack-XlZBixWC.js";
|
|
1
|
+
import vite_default from "./vite.mjs";
|
|
2
|
+
import webpack_default from "./webpack.mjs";
|
|
4
3
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
4
|
|
|
6
5
|
//#region src/nuxt.ts
|
package/dist/rollup.mjs
ADDED
package/dist/rspack.mjs
ADDED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnplugin } from "unplugin";
|
|
2
1
|
import { ensureLanguage, getLanguage } from "@vue.ts/language";
|
|
2
|
+
import { createUnplugin } from "unplugin";
|
|
3
3
|
import { createFilter } from "unplugin-utils";
|
|
4
4
|
import MagicString from "magic-string";
|
|
5
5
|
import ts from "typescript";
|
|
@@ -22,9 +22,9 @@ const escapeQuotes = (s) => s.replace(quotesReg, "\\\"");
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/core/printer.ts
|
|
24
24
|
var Printer = class {
|
|
25
|
+
isPropertyBlacklisted = () => false;
|
|
25
26
|
constructor(checker) {
|
|
26
27
|
this.checker = checker;
|
|
27
|
-
this.isPropertyBlacklisted = () => false;
|
|
28
28
|
}
|
|
29
29
|
typeToString(type) {
|
|
30
30
|
return this.checker.typeToString(type, void 0, ts.TypeFormatFlags.NoTruncation);
|
|
@@ -32,9 +32,6 @@ var Printer = class {
|
|
|
32
32
|
printUnionOrIntersection(type, separator, inner) {
|
|
33
33
|
return [...new Set(type.types.map((t) => this.printType(t, inner)).filter(Boolean))].join(separator);
|
|
34
34
|
}
|
|
35
|
-
isSymbolOptional(symbol) {
|
|
36
|
-
return !!(symbol.flags & ts.SymbolFlags.Optional);
|
|
37
|
-
}
|
|
38
35
|
printConditionType(type, inner) {
|
|
39
36
|
const { trueType, falseType } = type.root.node;
|
|
40
37
|
const trueTypeNode = this.checker.getTypeAtLocation(trueType);
|
|
@@ -67,7 +64,7 @@ var Printer = class {
|
|
|
67
64
|
if (this.isPropertyBlacklisted(name)) continue;
|
|
68
65
|
props[name] = {
|
|
69
66
|
value: this.printType(propType, true),
|
|
70
|
-
isOptional:
|
|
67
|
+
isOptional: !!(prop.flags & ts.SymbolFlags.Optional)
|
|
71
68
|
};
|
|
72
69
|
}
|
|
73
70
|
const parts = [];
|
|
@@ -199,15 +196,12 @@ const unpluginFactory = (options = {}) => {
|
|
|
199
196
|
await readAndUpdateLanguage();
|
|
200
197
|
return;
|
|
201
198
|
}
|
|
202
|
-
let cached;
|
|
203
199
|
ctx.read = async () => {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return transform(code, file, resolvedOptions)?.code ?? code;
|
|
207
|
-
})();
|
|
208
|
-
return cached;
|
|
200
|
+
const code = await readAndUpdateLanguage();
|
|
201
|
+
return transform(code, file, resolvedOptions)?.code ?? code;
|
|
209
202
|
};
|
|
210
|
-
|
|
203
|
+
const sfcModule = ctx.modules.find((mod) => mod.file === file);
|
|
204
|
+
if (sfcModule) return [sfcModule];
|
|
211
205
|
return ctx.modules;
|
|
212
206
|
} },
|
|
213
207
|
buildStart() {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FilterPattern } from "unplugin";
|
|
2
|
+
import MagicString from "magic-string";
|
|
3
|
+
import ts from "typescript";
|
|
4
|
+
|
|
5
|
+
//#region ../shared/src/types.d.ts
|
|
6
|
+
interface BaseOptions {
|
|
7
|
+
root?: string;
|
|
8
|
+
tsconfigPath?: string;
|
|
9
|
+
include?: FilterPattern;
|
|
10
|
+
exclude?: FilterPattern;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/core/types.d.ts
|
|
14
|
+
type ValidTransforms = "defineEmits" | "defineProps";
|
|
15
|
+
type Options = Partial<Record<ValidTransforms, boolean>> & BaseOptions;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Options as t };
|
package/dist/vite.d.mts
ADDED
package/dist/vite.mjs
ADDED
package/dist/webpack.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue.ts/complex-types",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"author": "Ray <i@mk1.io> (@so1ve)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Resolve complex types in Vue SFCs.",
|
|
@@ -31,21 +31,20 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"exports": {
|
|
34
|
-
".": "./dist/index.
|
|
34
|
+
".": "./dist/index.mjs",
|
|
35
35
|
"./*": "./*",
|
|
36
|
-
"./astro": "./dist/astro.
|
|
37
|
-
"./esbuild": "./dist/esbuild.
|
|
38
|
-
"./farm": "./dist/farm.
|
|
39
|
-
"./nuxt": "./dist/nuxt.
|
|
40
|
-
"./rolldown": "./dist/rolldown.
|
|
41
|
-
"./rollup": "./dist/rollup.
|
|
42
|
-
"./rspack": "./dist/rspack.
|
|
43
|
-
"./
|
|
44
|
-
"./
|
|
45
|
-
"./webpack": "./dist/webpack.js"
|
|
36
|
+
"./astro": "./dist/astro.mjs",
|
|
37
|
+
"./esbuild": "./dist/esbuild.mjs",
|
|
38
|
+
"./farm": "./dist/farm.mjs",
|
|
39
|
+
"./nuxt": "./dist/nuxt.mjs",
|
|
40
|
+
"./rolldown": "./dist/rolldown.mjs",
|
|
41
|
+
"./rollup": "./dist/rollup.mjs",
|
|
42
|
+
"./rspack": "./dist/rspack.mjs",
|
|
43
|
+
"./vite": "./dist/vite.mjs",
|
|
44
|
+
"./webpack": "./dist/webpack.mjs"
|
|
46
45
|
},
|
|
47
|
-
"main": "./dist/index.
|
|
48
|
-
"module": "./dist/index.
|
|
46
|
+
"main": "./dist/index.mjs",
|
|
47
|
+
"module": "./dist/index.mjs",
|
|
49
48
|
"types": "dist/index.d.ts",
|
|
50
49
|
"typesVersions": {
|
|
51
50
|
"*": {
|
|
@@ -62,62 +61,35 @@
|
|
|
62
61
|
"access": "public"
|
|
63
62
|
},
|
|
64
63
|
"dependencies": {
|
|
65
|
-
"@nuxt/kit": "^4.2.
|
|
66
|
-
"@vue/
|
|
64
|
+
"@nuxt/kit": "^4.2.2",
|
|
65
|
+
"@vue.ts/language": "",
|
|
66
|
+
"@vue.ts/shared": "",
|
|
67
|
+
"@vue/shared": "^3.5.26",
|
|
67
68
|
"magic-string": "^0.30.21",
|
|
68
|
-
"unplugin": "2.3.
|
|
69
|
-
"unplugin-utils": "^0.3.1"
|
|
70
|
-
"@vue.ts/language": "1.0.0-beta.11",
|
|
71
|
-
"@vue.ts/shared": "1.0.0-beta.11"
|
|
69
|
+
"unplugin": "2.3.11",
|
|
70
|
+
"unplugin-utils": "^0.3.1"
|
|
72
71
|
},
|
|
73
72
|
"devDependencies": {
|
|
74
|
-
"@nuxt/schema": "^4.2.
|
|
73
|
+
"@nuxt/schema": "^4.2.2",
|
|
75
74
|
"@vue-macros/better-define": "^3.1.1",
|
|
76
|
-
"
|
|
77
|
-
"rollup": "^4.
|
|
78
|
-
"vite": "7.2.2",
|
|
79
|
-
"webpack": "^5.102.1"
|
|
75
|
+
"astro": "^5.16.6",
|
|
76
|
+
"rollup": "^4.54.0"
|
|
80
77
|
},
|
|
81
78
|
"peerDependencies": {
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"@nuxt/schema": "^4.2.0",
|
|
85
|
-
"esbuild": "*",
|
|
86
|
-
"rolldown": "*",
|
|
87
|
-
"rollup": "^4.52.5",
|
|
79
|
+
"@nuxt/kit": "^4.2.2",
|
|
80
|
+
"astro": "^5.16.6",
|
|
88
81
|
"typescript": ">=5.9.3",
|
|
89
|
-
"
|
|
90
|
-
"vue": ">=3.5.22",
|
|
91
|
-
"webpack": "^5.102.1"
|
|
82
|
+
"vue": ">=3.5.26"
|
|
92
83
|
},
|
|
93
84
|
"peerDependenciesMeta": {
|
|
94
|
-
"@farmfe/core": {
|
|
95
|
-
"optional": true
|
|
96
|
-
},
|
|
97
85
|
"@nuxt/kit": {
|
|
98
86
|
"optional": true
|
|
99
87
|
},
|
|
100
|
-
"
|
|
101
|
-
"optional": true
|
|
102
|
-
},
|
|
103
|
-
"esbuild": {
|
|
104
|
-
"optional": true
|
|
105
|
-
},
|
|
106
|
-
"rolldown": {
|
|
107
|
-
"optional": true
|
|
108
|
-
},
|
|
109
|
-
"rollup": {
|
|
110
|
-
"optional": true
|
|
111
|
-
},
|
|
112
|
-
"vite": {
|
|
113
|
-
"optional": true
|
|
114
|
-
},
|
|
115
|
-
"webpack": {
|
|
88
|
+
"astro": {
|
|
116
89
|
"optional": true
|
|
117
90
|
}
|
|
118
91
|
},
|
|
119
92
|
"scripts": {
|
|
120
|
-
"
|
|
121
|
-
"watch": "tsdown --watch"
|
|
93
|
+
"play": "npm -C playground run dev"
|
|
122
94
|
}
|
|
123
95
|
}
|
package/dist/astro.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
|
|
3
|
-
//#region src/astro.d.ts
|
|
4
|
-
declare const _default: (options: Options) => {
|
|
5
|
-
name: string;
|
|
6
|
-
hooks: {
|
|
7
|
-
"astro:config:setup": (astro: any) => Promise<void>;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { _default as default };
|
package/dist/astro.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { r as unpluginFactory } from "./src-2v9kOGLq.js";
|
|
2
|
-
import { createVitePlugin } from "unplugin";
|
|
3
|
-
|
|
4
|
-
//#region src/astro.ts
|
|
5
|
-
var astro_default = (options) => ({
|
|
6
|
-
name: "@vue.ts/complex-types",
|
|
7
|
-
hooks: { "astro:config:setup": async (astro) => {
|
|
8
|
-
astro.config.vite.plugins ??= [];
|
|
9
|
-
astro.config.vite.plugins.push(createVitePlugin(unpluginFactory)(options));
|
|
10
|
-
} }
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { astro_default as default };
|
package/dist/esbuild.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as esbuild0 from "esbuild";
|
|
4
|
-
|
|
5
|
-
//#region src/esbuild.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) => esbuild0.Plugin;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/esbuild.js
DELETED
package/dist/farm.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as _farmfe_core0 from "@farmfe/core";
|
|
4
|
-
|
|
5
|
-
//#region src/farm.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) => _farmfe_core0.JsPlugin;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/farm.js
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import * as unplugin0 from "unplugin";
|
|
3
|
-
import { UnpluginFactory } from "unplugin";
|
|
4
|
-
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
declare const unpluginFactory: UnpluginFactory<Options | undefined>;
|
|
7
|
-
declare const unplugin: unplugin0.UnpluginInstance<Options | undefined, boolean>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { unplugin as default, unplugin, unpluginFactory };
|
package/dist/index.js
DELETED
package/dist/nuxt.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
4
|
-
|
|
5
|
-
//#region src/nuxt.d.ts
|
|
6
|
-
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/rolldown.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as rolldown0 from "rolldown";
|
|
4
|
-
|
|
5
|
-
//#region src/rolldown.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) => rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/rolldown.js
DELETED
package/dist/rollup.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as rollup0 from "rollup";
|
|
4
|
-
|
|
5
|
-
//#region src/rollup.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/rollup.js
DELETED
package/dist/rspack.d.ts
DELETED
package/dist/rspack.js
DELETED
package/dist/types-CR_5PFfY.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FilterPattern } from "unplugin";
|
|
2
|
-
import MagicString from "magic-string";
|
|
3
|
-
import ts from "typescript";
|
|
4
|
-
|
|
5
|
-
//#region ../shared/src/types.d.ts
|
|
6
|
-
interface BaseOptions {
|
|
7
|
-
root?: string;
|
|
8
|
-
tsconfigPath?: string;
|
|
9
|
-
include?: FilterPattern;
|
|
10
|
-
exclude?: FilterPattern;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/core/printer.d.ts
|
|
14
|
-
declare class Printer {
|
|
15
|
-
private checker;
|
|
16
|
-
private isPropertyBlacklisted;
|
|
17
|
-
constructor(checker: ts.TypeChecker);
|
|
18
|
-
private typeToString;
|
|
19
|
-
private printUnionOrIntersection;
|
|
20
|
-
private isSymbolOptional;
|
|
21
|
-
private printConditionType;
|
|
22
|
-
private printPrimitiveType;
|
|
23
|
-
private printType;
|
|
24
|
-
printPropsTypeArg(node: ts.Node, isPropertyBlacklisted: (prop: string) => boolean): string;
|
|
25
|
-
private printEventsByCallSignatures;
|
|
26
|
-
private printEventsByMembers;
|
|
27
|
-
printEventsRuntimeArg(node: ts.Node): string;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/core/types.d.ts
|
|
31
|
-
type ValidTransforms = "defineEmits" | "defineProps";
|
|
32
|
-
type Options = Partial<Record<ValidTransforms, boolean>> & BaseOptions;
|
|
33
|
-
type ResolvedOptions = Required<Options>;
|
|
34
|
-
type TransformOptions = Pick<ResolvedOptions, ValidTransforms>;
|
|
35
|
-
type Transformer = (printer: Printer, s: MagicString, id: string) => void;
|
|
36
|
-
type Transformers = [ValidTransforms, Transformer][];
|
|
37
|
-
//#endregion
|
|
38
|
-
export { Transformers as a, Transformer as i, ResolvedOptions as n, ValidTransforms as o, TransformOptions as r, Options as t };
|
package/dist/types-u_Hr5uXA.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { a as Transformers, i as Transformer, n as ResolvedOptions, o as ValidTransforms, r as TransformOptions, t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
export { Options, ResolvedOptions, TransformOptions, Transformer, Transformers, ValidTransforms };
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/vite-DIsmg5Oh.js
DELETED
package/dist/vite.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as vite0 from "vite";
|
|
4
|
-
|
|
5
|
-
//#region src/vite.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) => vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/vite.js
DELETED
package/dist/webpack-XlZBixWC.js
DELETED
package/dist/webpack.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as Options } from "./types-CR_5PFfY.js";
|
|
2
|
-
import "./types-u_Hr5uXA.js";
|
|
3
|
-
import * as webpack0 from "webpack";
|
|
4
|
-
|
|
5
|
-
//#region src/webpack.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) => webpack0.WebpackPluginInstance;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { _default as default };
|
package/dist/webpack.js
DELETED