Skip to content

Commit 40ae1bb

Browse files
committed
chore: export type in declaration.ts
1 parent addd570 commit 40ae1bb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: src/core/declaration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function getDeclaration(ctx: Context, filepath: string, originalImports?:
118118
// @ts-nocheck
119119
// Generated by unplugin-vue-components
120120
// Read more: https://github.com/vuejs/core/pull/3399
121-
export {}
121+
export type {}
122122
123123
/* prettier-ignore */
124124
declare module 'vue' {`

Diff for: test/__snapshots__/dts.test.ts.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`dts > components only 1`] = `
55
// @ts-nocheck
66
// Generated by unplugin-vue-components
77
// Read more: https://github.com/vuejs/core/pull/3399
8-
export {}
8+
export type {}
99
1010
/* prettier-ignore */
1111
declare module 'vue' {
@@ -23,7 +23,7 @@ exports[`dts > directive only 1`] = `
2323
// @ts-nocheck
2424
// Generated by unplugin-vue-components
2525
// Read more: https://github.com/vuejs/core/pull/3399
26-
export {}
26+
export type {}
2727
2828
/* prettier-ignore */
2929
declare module 'vue' {
@@ -39,7 +39,7 @@ exports[`dts > getDeclaration 1`] = `
3939
// @ts-nocheck
4040
// Generated by unplugin-vue-components
4141
// Read more: https://github.com/vuejs/core/pull/3399
42-
export {}
42+
export type {}
4343
4444
/* prettier-ignore */
4545
declare module 'vue' {
@@ -97,7 +97,7 @@ exports[`dts > vue 2.7 components only 1`] = `
9797
// @ts-nocheck
9898
// Generated by unplugin-vue-components
9999
// Read more: https://github.com/vuejs/core/pull/3399
100-
export {}
100+
export type {}
101101
102102
/* prettier-ignore */
103103
declare module 'vue' {
@@ -115,7 +115,7 @@ exports[`dts > writeDeclaration - keep unused 1`] = `
115115
// @ts-nocheck
116116
// Generated by unplugin-vue-components
117117
// Read more: https://github.com/vuejs/core/pull/3399
118-
export {}
118+
export type {}
119119
120120
/* prettier-ignore */
121121
declare module 'vue' {
@@ -139,7 +139,7 @@ exports[`dts > writeDeclaration 1`] = `
139139
// @ts-nocheck
140140
// Generated by unplugin-vue-components
141141
// Read more: https://github.com/vuejs/core/pull/3399
142-
export {}
142+
export type {}
143143
144144
/* prettier-ignore */
145145
declare module 'vue' {

0 commit comments

Comments
 (0)