@@ -15,7 +15,11 @@ declare module 'vue' {
15
15
TestComp: typeof import (' test/component/TestComp' )[' default' ]
16
16
}
17
17
}
18
- "
18
+ declare global {
19
+ type GlobalInstanceType = {
20
+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
21
+ }
22
+ } "
19
23
` ;
20
24
21
25
exports [` dts > directive only 1` ] = `
@@ -31,7 +35,11 @@ declare module 'vue' {
31
35
vLoading: typeof import (' test/directive/Loading' )[' default' ]
32
36
}
33
37
}
34
- "
38
+ declare global {
39
+ type GlobalInstanceType = {
40
+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
41
+ }
42
+ } "
35
43
` ;
36
44
37
45
exports [` dts > getDeclaration 1` ] = `
@@ -52,7 +60,11 @@ declare module 'vue' {
52
60
vLoading: typeof import (' test/directive/Loading' )[' default' ]
53
61
}
54
62
}
55
- "
63
+ declare global {
64
+ type GlobalInstanceType = {
65
+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
66
+ }
67
+ } "
56
68
` ;
57
69
58
70
exports [` dts > parseDeclaration - has icon component like <IMdi:diceD12> 1` ] = `
@@ -107,7 +119,11 @@ declare module 'vue' {
107
119
TestComp: typeof import (' test/component/TestComp' )[' default' ]
108
120
}
109
121
}
110
- "
122
+ declare global {
123
+ type GlobalInstanceType = {
124
+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
125
+ }
126
+ } "
111
127
` ;
112
128
113
129
exports [` dts > writeDeclaration - keep unused 1` ] = `
@@ -131,7 +147,11 @@ declare module 'vue' {
131
147
vSome: typeof import (' test/directive/Some' )[' default' ]
132
148
}
133
149
}
134
- "
150
+ declare global {
151
+ type GlobalInstanceType = {
152
+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
153
+ }
154
+ } "
135
155
` ;
136
156
137
157
exports [` dts > writeDeclaration 1` ] = `
@@ -152,5 +172,9 @@ declare module 'vue' {
152
172
vLoading: typeof import (' test/directive/Loading' )[' default' ]
153
173
}
154
174
}
155
- "
175
+ declare global {
176
+ type GlobalInstanceType = {
177
+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
178
+ }
179
+ } "
156
180
` ;
0 commit comments