Skip to content

Commit 0f86787

Browse files
azaletasxzz
andauthored
fix: remove dts spaces (#533)
Co-authored-by: 三咲智子 (Kevin) <sxzz@sxzz.moe>
1 parent 1609186 commit 0f86787

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/declaration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function getDeclaration(ctx: Context, filepath: string, originalImports?:
116116

117117
const head = ctx.options.version === 2.7
118118
? `export {}
119-
119+
120120
declare module 'vue' {`
121121
: `import '@vue/runtime-core'
122122

test/__snapshots__/dts.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ exports[`dts > vue 2.7 components only 1`] = `
9797
// We suggest you to commit this file into source control
9898
// Read more: https://github.com/vuejs/core/pull/3399
9999
export {}
100-
100+
101101
declare module 'vue' {
102102
export interface GlobalComponents {
103103
RouterLink: typeof import('vue-router')['RouterLink']

0 commit comments

Comments
 (0)