Skip to content

Commit a495ce0

Browse files
lovetingyuantingyuan
andauthored
fix: router typescript definations related to vue package (vuejs#2295)
Co-authored-by: tingyuan <[email protected]>
1 parent fa66af9 commit a495ce0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/router/src/globalExtensions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import type { RouterLink } from './RouterLink'
88
import type { Router } from './router'
99
import type { TypesConfig } from './config'
1010

11-
// TODO: figure out why it cannot be 'vue' like said in docs
12-
declare module '@vue/runtime-core' {
11+
declare module 'vue' {
1312
export interface ComponentCustomOptions {
1413
/**
1514
* Guard called when the router is navigating to the route that is rendering

0 commit comments

Comments
 (0)