Skip to content

Commit b921f0e

Browse files
author
Jacob Gordon
committed
types: add addendum to ComponentOptionsBase to capture the one made to ComponentCustomOptions
1 parent 8c5086e commit b921f0e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/router/src/globalExtensions.ts

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
import type {
2+
ComponentInjectOptions,
3+
ComponentOptionsMixin,
4+
ComputedOptions,
5+
EmitsOptions,
6+
MethodOptions,
7+
SlotsType,
8+
} from 'vue';
9+
110
import type {
211
NavigationGuardWithThis,
312
NavigationGuard,
@@ -58,6 +67,22 @@ declare module 'vue' {
5867
: NavigationGuard
5968
}
6069

70+
export interface ComponentOptionsBase<
71+
Props,
72+
RawBindings,
73+
D,
74+
C extends ComputedOptions,
75+
M extends MethodOptions,
76+
Mixin extends ComponentOptionsMixin,
77+
Extends extends ComponentOptionsMixin,
78+
E extends EmitsOptions,
79+
EE extends string = string,
80+
Defaults = {},
81+
I extends ComponentInjectOptions = {},
82+
II extends string = string,
83+
S extends SlotsType = {},
84+
> extends ComponentCustomOptions {}
85+
6186
export interface ComponentCustomProperties {
6287
/**
6388
* Normalized current location. See {@link RouteLocationNormalizedLoaded}.

0 commit comments

Comments
 (0)