Skip to content

Commit

Permalink
fix: router typescript definations related to vue package (#2295)
Browse files Browse the repository at this point in the history
Co-authored-by: tingyuan <[email protected]>
  • Loading branch information
lovetingyuan and tingyuan committed Jul 9, 2024
1 parent fa66af9 commit a495ce0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/router/src/globalExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import type { RouterLink } from './RouterLink'
import type { Router } from './router'
import type { TypesConfig } from './config'

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

0 comments on commit a495ce0

Please sign in to comment.