Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function getDeclaration(ctx: Context, filepath: string, originalImports?:
declare module 'vue' {`
: `export {}

declare module 'vue' {`
declare module '@vue/runtime-core' {`

let code = `/* eslint-disable */
/* prettier-ignore */
Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/dts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`dts > components only 1`] = `
// Read more: https://github.com/vuejs/core/pull/3399
export {}

declare module 'vue' {
declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand All @@ -26,7 +26,7 @@ exports[`dts > directive only 1`] = `
// Read more: https://github.com/vuejs/core/pull/3399
export {}

declare module 'vue' {
declare module '@vue/runtime-core' {
export interface ComponentCustomProperties {
vLoading: typeof import('test/directive/Loading')['default']
}
Expand All @@ -42,7 +42,7 @@ exports[`dts > getDeclaration 1`] = `
// Read more: https://github.com/vuejs/core/pull/3399
export {}

declare module 'vue' {
declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand Down Expand Up @@ -118,7 +118,7 @@ exports[`dts > writeDeclaration - keep unused 1`] = `
// Read more: https://github.com/vuejs/core/pull/3399
export {}

declare module 'vue' {
declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand All @@ -142,7 +142,7 @@ exports[`dts > writeDeclaration 1`] = `
// Read more: https://github.com/vuejs/core/pull/3399
export {}

declare module 'vue' {
declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand Down
2 changes: 1 addition & 1 deletion test/dts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const _directive_loading = _resolveDirective("loading")`
await writeFile(
filepath,
`
declare module 'vue' {
declare module '@vue/runtime-core' {
export interface GlobalComponents {
SomeComp: typeof import('test/component/SomeComp')['default']
TestComp: typeof import('test/component/OldComp')['default']
Expand Down