Skip to content

Commit

Permalink
add addendum to ComponentOptionsBase capture the one made to `Compo…
Browse files Browse the repository at this point in the history
…nentCustomOptions`
  • Loading branch information
Jacob Gordon committed Aug 30, 2024
1 parent 8c5086e commit 3664fb1
Showing 1 changed file with 25 additions and 0 deletions.
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

0 comments on commit 3664fb1

Please sign in to comment.