@@ -15,7 +15,11 @@ declare module 'vue' {
1515 TestComp: typeof import (' test/component/TestComp' )[' default' ]
1616 }
1717}
18- "
18+ declare global {
19+ type GlobalInstanceType = {
20+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
21+ }
22+ } "
1923` ;
2024
2125exports [` dts > directive only 1` ] = `
@@ -31,7 +35,11 @@ declare module 'vue' {
3135 vLoading: typeof import (' test/directive/Loading' )[' default' ]
3236 }
3337}
34- "
38+ declare global {
39+ type GlobalInstanceType = {
40+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
41+ }
42+ } "
3543` ;
3644
3745exports [` dts > getDeclaration 1` ] = `
@@ -52,7 +60,11 @@ declare module 'vue' {
5260 vLoading: typeof import (' test/directive/Loading' )[' default' ]
5361 }
5462}
55- "
63+ declare global {
64+ type GlobalInstanceType = {
65+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
66+ }
67+ } "
5668` ;
5769
5870exports [` dts > parseDeclaration - has icon component like <IMdi:diceD12> 1` ] = `
@@ -107,7 +119,11 @@ declare module 'vue' {
107119 TestComp: typeof import (' test/component/TestComp' )[' default' ]
108120 }
109121}
110- "
122+ declare global {
123+ type GlobalInstanceType = {
124+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
125+ }
126+ } "
111127` ;
112128
113129exports [` dts > writeDeclaration - keep unused 1` ] = `
@@ -131,7 +147,11 @@ declare module 'vue' {
131147 vSome: typeof import (' test/directive/Some' )[' default' ]
132148 }
133149}
134- "
150+ declare global {
151+ type GlobalInstanceType = {
152+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
153+ }
154+ } "
135155` ;
136156
137157exports [` dts > writeDeclaration 1` ] = `
@@ -152,5 +172,9 @@ declare module 'vue' {
152172 vLoading: typeof import (' test/directive/Loading' )[' default' ]
153173 }
154174}
155- "
175+ declare global {
176+ type GlobalInstanceType = {
177+ [Property in keyof GlobalComponents ]: InstanceType < GlobalComponents [Property ]>
178+ }
179+ } "
156180` ;
0 commit comments