From 0cb86b3865b713201f9db49c7a8d23e9a2876f29 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 23 Aug 2022 17:52:55 +0200 Subject: [PATCH] fix(types): allow jsx components Fix #3776 --- types/router.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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