Skip to content

Commit

Permalink
types: add addendum to ComponentOptionsBase to capture the one made…
Browse files Browse the repository at this point in the history
… to `ComponentCustomOptions`
  • Loading branch information
Jacob Gordon committed Aug 30, 2024
1 parent 8c5086e commit b921f0e
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 b921f0e

Please sign in to comment.