Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate ComponentCustomOptions through ComponentCustomBase (fix #2332) #2333

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions packages/router/src/globalExtensions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import type {
ComponentInjectOptions,
ComponentOptionsMixin,
ComputedOptions,
EmitsOptions,
MethodOptions,
SlotsType,
} from 'vue';

import type {
NavigationGuardWithThis,
NavigationGuard,
Expand Down Expand Up @@ -58,6 +67,22 @@ declare module 'vue' {
: NavigationGuard
}

export interface ComponentOptionsBase<
Props,
RawBindings,
D,
C extends ComputedOptions,
M extends MethodOptions,
Mixin extends ComponentOptionsMixin,
Extends extends ComponentOptionsMixin,
E extends EmitsOptions,
EE extends string = string,
Defaults = {},
I extends ComponentInjectOptions = {},
II extends string = string,
S extends SlotsType = {},
> extends ComponentCustomOptions {}

export interface ComponentCustomProperties {
/**
* Normalized current location. See {@link RouteLocationNormalizedLoaded}.
Expand Down