11// Vitest Snapshot v1
22
3- exports [` dts > getDeclaration 1` ] = `
3+ exports [` dts > components only 1` ] = `
44"// generated by unplugin-vue-components
55// We suggest you to commit this file into source control
66// Read more: https://github.com/vuejs/core/pull/3399
@@ -14,7 +14,40 @@ declare module '@vue/runtime-core' {
1414 RouterView: typeof import (' vue-router' )[' RouterView' ]
1515 TestComp: typeof import (' test/component/TestComp' )[' default' ]
1616 }
17+ }
18+ "
19+ ` ;
20+
21+ exports [` dts > directive only 1` ] = `
22+ "// generated by unplugin-vue-components
23+ // We suggest you to commit this file into source control
24+ // Read more: https://github.com/vuejs/core/pull/3399
25+ import '@vue/runtime-core'
1726
27+ export { }
28+
29+ declare module '@vue/runtime-core' {
30+ export interface ComponentCustomProperties {
31+ vLoading: typeof import (' test/directive/Loading' )[' default' ]
32+ }
33+ }
34+ "
35+ ` ;
36+
37+ exports [` dts > getDeclaration 1` ] = `
38+ "// generated by unplugin-vue-components
39+ // We suggest you to commit this file into source control
40+ // Read more: https://github.com/vuejs/core/pull/3399
41+ import '@vue/runtime-core'
42+
43+ export { }
44+
45+ declare module '@vue/runtime-core' {
46+ export interface GlobalComponents {
47+ RouterLink: typeof import (' vue-router' )[' RouterLink' ]
48+ RouterView: typeof import (' vue-router' )[' RouterView' ]
49+ TestComp: typeof import (' test/component/TestComp' )[' default' ]
50+ }
1851 export interface ComponentCustomProperties {
1952 vLoading: typeof import (' test/directive/Loading' )[' default' ]
2053 }
@@ -74,7 +107,6 @@ declare module '@vue/runtime-core' {
74107 SomeComp: typeof import (' test/component/SomeComp' )[' default' ]
75108 TestComp: typeof import (' test/component/TestComp' )[' default' ]
76109 }
77-
78110 export interface ComponentCustomProperties {
79111 vDirective: typeof import (' foo' )
80112 vLoading: typeof import (' test/directive/Loading' )[' default' ]
@@ -98,7 +130,6 @@ declare module '@vue/runtime-core' {
98130 RouterView: typeof import (' vue-router' )[' RouterView' ]
99131 TestComp: typeof import (' test/component/TestComp' )[' default' ]
100132 }
101-
102133 export interface ComponentCustomProperties {
103134 vLoading: typeof import (' test/directive/Loading' )[' default' ]
104135 }
0 commit comments