Skip to content

Commit e66c3ad

Browse files
committed
fix: dts test
1 parent 4cc7e15 commit e66c3ad

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/__snapshots__/dts.test.ts.snap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ exports[`dts > components only 1`] = `
88
// Read more: https://github.com/vuejs/core/pull/3399
99
export {}
1010
11+
import { GlobalComponents } from 'vue'
12+
1113
declare module 'vue' {
1214
export interface GlobalComponents {
1315
RouterLink: typeof import('vue-router')['RouterLink']
@@ -30,6 +32,8 @@ exports[`dts > directive only 1`] = `
3032
// Read more: https://github.com/vuejs/core/pull/3399
3133
export {}
3234
35+
import { GlobalComponents } from 'vue'
36+
3337
declare module 'vue' {
3438
export interface ComponentCustomProperties {
3539
vLoading: typeof import('test/directive/Loading')['default']
@@ -50,6 +54,8 @@ exports[`dts > getDeclaration 1`] = `
5054
// Read more: https://github.com/vuejs/core/pull/3399
5155
export {}
5256
57+
import { GlobalComponents } from 'vue'
58+
5359
declare module 'vue' {
5460
export interface GlobalComponents {
5561
RouterLink: typeof import('vue-router')['RouterLink']
@@ -112,6 +118,8 @@ exports[`dts > vue 2.7 components only 1`] = `
112118
// Read more: https://github.com/vuejs/core/pull/3399
113119
export {}
114120
121+
import { GlobalComponents } from 'vue'
122+
115123
declare module 'vue' {
116124
export interface GlobalComponents {
117125
RouterLink: typeof import('vue-router')['RouterLink']
@@ -134,6 +142,8 @@ exports[`dts > writeDeclaration - keep unused 1`] = `
134142
// Read more: https://github.com/vuejs/core/pull/3399
135143
export {}
136144
145+
import { GlobalComponents } from 'vue'
146+
137147
declare module 'vue' {
138148
export interface GlobalComponents {
139149
RouterLink: typeof import('vue-router')['RouterLink']
@@ -162,6 +172,8 @@ exports[`dts > writeDeclaration 1`] = `
162172
// Read more: https://github.com/vuejs/core/pull/3399
163173
export {}
164174
175+
import { GlobalComponents } from 'vue'
176+
165177
declare module 'vue' {
166178
export interface GlobalComponents {
167179
RouterLink: typeof import('vue-router')['RouterLink']

0 commit comments

Comments
 (0)