Skip to content

Commit

Permalink
fix(types): allow jsx components
Browse files Browse the repository at this point in the history
Fix #3776
  • Loading branch information
posva committed Aug 23, 2022
1 parent a6647c8 commit 0cb86b3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions types/router.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import Vue, { ComponentOptions, PluginFunction, AsyncComponent, VNode } from 'vue'
import Vue, {
PluginFunction,
AsyncComponent,
VNode,
Component as _Component
} from 'vue'

type Component =
| {}
| _Component<any, any, any, any, any>
| AsyncComponent<any, any, any, any>

type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent
type Dictionary<T> = { [key: string]: T }
type ErrorHandler = (err: Error) => void

Expand Down

0 comments on commit 0cb86b3

Please sign in to comment.