Skip to content

Commit 0cb86b3

Browse files
committed
fix(types): allow jsx components
Fix #3776
1 parent a6647c8 commit 0cb86b3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

types/router.d.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
import Vue, { ComponentOptions, PluginFunction, AsyncComponent, VNode } from 'vue'
1+
import Vue, {
2+
PluginFunction,
3+
AsyncComponent,
4+
VNode,
5+
Component as _Component
6+
} from 'vue'
7+
8+
type Component =
9+
| {}
10+
| _Component<any, any, any, any, any>
11+
| AsyncComponent<any, any, any, any>
212

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

0 commit comments

Comments
 (0)