diff --git a/types/router.d.ts b/types/router.d.ts index f04b2e1f4..0017a32e6 100644 --- a/types/router.d.ts +++ b/types/router.d.ts @@ -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 + | AsyncComponent -type Component = ComponentOptions | typeof Vue | AsyncComponent type Dictionary = { [key: string]: T } type ErrorHandler = (err: Error) => void