Skip to content

Commit

Permalink
fix: router typescript definations related to vue package
Browse files Browse the repository at this point in the history
  • Loading branch information
tingyuan committed Jul 7, 2024
1 parent 37f6cbd commit 97be7c3
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 97be7c3

Please sign in to comment.