@gez/router-vue
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
import { type RouterRawLocation } from '@gez/router'; | ||
import { type PropType } from 'vue'; | ||
import type { RouterRawLocation } from '@gez/router'; | ||
import type { PropType } from 'vue'; | ||
export interface RouterLinkProps { | ||
@@ -45,58 +45,72 @@ /** | ||
} | ||
export declare const RouterLink: import("vue/types").DefineComponent<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<"include" | "route" | "exact">; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}, {}, {}, import("vue/types").ComponentComputedOptions, import("vue/types").ComponentMethodOptions, import("vue/types").ComponentOptionsMixin, import("vue/types").ComponentOptionsMixin, {}, string, Readonly<import("vue/types").ExtractPropTypes<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<"include" | "route" | "exact">; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}>>, { | ||
exact: "include" | "route" | "exact"; | ||
tag: string; | ||
replace: boolean; | ||
activeClass: string; | ||
event: string | string[]; | ||
}>; | ||
export declare const RouterLink: import('vue/types').DefineComponent< | ||
{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<'include' | 'route' | 'exact'>; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}, | ||
{}, | ||
{}, | ||
import('vue/types').ComponentComputedOptions, | ||
import('vue/types').ComponentMethodOptions, | ||
import('vue/types').ComponentOptionsMixin, | ||
import('vue/types').ComponentOptionsMixin, | ||
{}, | ||
string, | ||
Readonly< | ||
import('vue/types').ExtractPropTypes<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<'include' | 'route' | 'exact'>; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}> | ||
>, | ||
{ | ||
exact: 'include' | 'route' | 'exact'; | ||
tag: string; | ||
replace: boolean; | ||
activeClass: string; | ||
event: string | string[]; | ||
} | ||
>; |
import type { Route, RouterInstance } from '@gez/router'; | ||
import { type VueConstructor } from 'vue'; | ||
import type { VueConstructor } from 'vue'; | ||
interface VueWithRouter extends Vue { | ||
@@ -34,2 +34,1 @@ _routerRoot: VueWithRouter; | ||
} | ||
export {}; |
@@ -1,3 +0,3 @@ | ||
import { type RouterRawLocation } from '@gez/router'; | ||
import { type PropType } from 'vue'; | ||
import type { RouterRawLocation } from '@gez/router'; | ||
import type { PropType } from 'vue'; | ||
export interface RouterLinkProps { | ||
@@ -45,58 +45,72 @@ /** | ||
} | ||
export declare const RouterLink: import("vue/types").DefineComponent<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<"include" | "route" | "exact">; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}, {}, {}, import("vue/types").ComponentComputedOptions, import("vue/types").ComponentMethodOptions, import("vue/types").ComponentOptionsMixin, import("vue/types").ComponentOptionsMixin, {}, string, Readonly<import("vue/types").ExtractPropTypes<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<"include" | "route" | "exact">; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}>>, { | ||
exact: "include" | "route" | "exact"; | ||
tag: string; | ||
replace: boolean; | ||
activeClass: string; | ||
event: string | string[]; | ||
}>; | ||
export declare const RouterLink: import('vue/types').DefineComponent< | ||
{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<'include' | 'route' | 'exact'>; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}, | ||
{}, | ||
{}, | ||
import('vue/types').ComponentComputedOptions, | ||
import('vue/types').ComponentMethodOptions, | ||
import('vue/types').ComponentOptionsMixin, | ||
import('vue/types').ComponentOptionsMixin, | ||
{}, | ||
string, | ||
Readonly< | ||
import('vue/types').ExtractPropTypes<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<'include' | 'route' | 'exact'>; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}> | ||
>, | ||
{ | ||
exact: 'include' | 'route' | 'exact'; | ||
tag: string; | ||
replace: boolean; | ||
activeClass: string; | ||
event: string | string[]; | ||
} | ||
>; |
import type { Route, RouterInstance } from '@gez/router'; | ||
import { type VueConstructor } from 'vue'; | ||
import type { VueConstructor } from 'vue'; | ||
interface VueWithRouter extends Vue { | ||
@@ -34,2 +34,1 @@ _routerRoot: VueWithRouter; | ||
} | ||
export {}; |
@@ -6,8 +6,24 @@ declare module 'vue/types' { | ||
} | ||
export declare const RouterView: import("vue/types").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
}>, {}, {}, import("vue/types").ComponentComputedOptions, import("vue/types").ComponentMethodOptions, import("vue/types").ComponentOptionsMixin, import("vue/types").ComponentOptionsMixin, {}, string, Readonly<import("vue/types").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
}>>>, { | ||
readonly [x: string]: any; | ||
}>; | ||
export declare const RouterView: import('vue/types').DefineComponent< | ||
Readonly<{ | ||
[x: string]: any; | ||
}>, | ||
{}, | ||
{}, | ||
import('vue/types').ComponentComputedOptions, | ||
import('vue/types').ComponentMethodOptions, | ||
import('vue/types').ComponentOptionsMixin, | ||
import('vue/types').ComponentOptionsMixin, | ||
{}, | ||
string, | ||
Readonly< | ||
import('vue/types').ExtractPropTypes< | ||
Readonly<{ | ||
[x: string]: any; | ||
}> | ||
> | ||
>, | ||
{ | ||
readonly [x: string]: any; | ||
} | ||
>; |
@@ -1,3 +0,3 @@ | ||
import { type RouterRawLocation } from '@gez/router'; | ||
import { type PropType } from 'vue'; | ||
import type { RouterRawLocation } from '@gez/router'; | ||
import type { PropType } from 'vue'; | ||
export interface RouterLinkProps { | ||
@@ -45,58 +45,74 @@ /** | ||
} | ||
export declare const RouterLink: import("vue").DefineComponent<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<"include" | "route" | "exact">; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<"include" | "route" | "exact">; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}>>, { | ||
exact: "include" | "route" | "exact"; | ||
tag: string; | ||
replace: boolean; | ||
activeClass: string; | ||
event: string | string[]; | ||
}, {}>; | ||
export declare const RouterLink: import('vue').DefineComponent< | ||
{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<'include' | 'route' | 'exact'>; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}, | ||
unknown, | ||
unknown, | ||
{}, | ||
{}, | ||
import('vue').ComponentOptionsMixin, | ||
import('vue').ComponentOptionsMixin, | ||
{}, | ||
string, | ||
import('vue').PublicProps, | ||
Readonly< | ||
import('vue').ExtractPropTypes<{ | ||
to: { | ||
type: PropType<RouterRawLocation>; | ||
required: true; | ||
}; | ||
tag: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
replace: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
exact: { | ||
type: PropType<'include' | 'route' | 'exact'>; | ||
default: string; | ||
}; | ||
activeClass: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
event: { | ||
type: PropType<string | string[]>; | ||
default: string; | ||
}; | ||
}> | ||
>, | ||
{ | ||
exact: 'include' | 'route' | 'exact'; | ||
tag: string; | ||
replace: boolean; | ||
activeClass: string; | ||
event: string | string[]; | ||
}, | ||
{} | ||
>; |
import type { Route, RouterInstance } from '@gez/router'; | ||
import { type App, type ShallowReactive } from 'vue'; | ||
import type { App, ShallowReactive } from 'vue'; | ||
declare module '@vue/runtime-core' { | ||
@@ -8,5 +8,6 @@ interface ComponentCustomProperties { | ||
} | ||
interface GlobalComponents { | ||
} | ||
interface GlobalComponents {} | ||
} | ||
export declare function RouterVuePlugin(router: RouterInstance): (app: App) => void; | ||
export declare function RouterVuePlugin( | ||
router: RouterInstance | ||
): (app: App) => void; |
@@ -1,21 +0,49 @@ | ||
import { type Route } from '@gez/router'; | ||
import { type PropType } from 'vue'; | ||
export declare const RouterView: import("vue").DefineComponent<{ | ||
name: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
route: PropType<Route>; | ||
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
[key: string]: any; | ||
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
[key: string]: any; | ||
}>[] | null) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ | ||
name: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
route: PropType<Route>; | ||
}>>, { | ||
name: string; | ||
}, {}>; | ||
import type { Route } from '@gez/router'; | ||
import type { PropType } from 'vue'; | ||
export declare const RouterView: import('vue').DefineComponent< | ||
{ | ||
name: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
route: PropType<Route>; | ||
}, | ||
| (() => | ||
| import('vue').VNode< | ||
import('vue').RendererNode, | ||
import('vue').RendererElement, | ||
{ | ||
[key: string]: any; | ||
} | ||
> | ||
| import('vue').VNode< | ||
import('vue').RendererNode, | ||
import('vue').RendererElement, | ||
{ | ||
[key: string]: any; | ||
} | ||
>[] | ||
| null) | ||
| undefined, | ||
unknown, | ||
{}, | ||
{}, | ||
import('vue').ComponentOptionsMixin, | ||
import('vue').ComponentOptionsMixin, | ||
{}, | ||
string, | ||
import('vue').PublicProps, | ||
Readonly< | ||
import('vue').ExtractPropTypes<{ | ||
name: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
route: PropType<Route>; | ||
}> | ||
>, | ||
{ | ||
name: string; | ||
}, | ||
{} | ||
>; |
@@ -6,8 +6,24 @@ declare module 'vue/types' { | ||
} | ||
export declare const RouterView: import("vue/types").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
}>, {}, {}, import("vue/types").ComponentComputedOptions, import("vue/types").ComponentMethodOptions, import("vue/types").ComponentOptionsMixin, import("vue/types").ComponentOptionsMixin, {}, string, Readonly<import("vue/types").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
}>>>, { | ||
readonly [x: string]: any; | ||
}>; | ||
export declare const RouterView: import('vue/types').DefineComponent< | ||
Readonly<{ | ||
[x: string]: any; | ||
}>, | ||
{}, | ||
{}, | ||
import('vue/types').ComponentComputedOptions, | ||
import('vue/types').ComponentMethodOptions, | ||
import('vue/types').ComponentOptionsMixin, | ||
import('vue/types').ComponentOptionsMixin, | ||
{}, | ||
string, | ||
Readonly< | ||
import('vue/types').ExtractPropTypes< | ||
Readonly<{ | ||
[x: string]: any; | ||
}> | ||
> | ||
>, | ||
{ | ||
readonly [x: string]: any; | ||
} | ||
>; |
@@ -23,3 +23,3 @@ { | ||
"@gez/lint": "0.0.9", | ||
"@gez/router": "0.0.75-alpha.1", | ||
"@gez/router": "0.0.75-alpha.2", | ||
"@types/node": "20.12.12", | ||
@@ -34,3 +34,3 @@ "@vitest/coverage-v8": "1.6.0", | ||
}, | ||
"version": "0.0.75-alpha.1", | ||
"version": "0.0.75-alpha.2", | ||
"type": "module", | ||
@@ -61,3 +61,3 @@ "private": false, | ||
], | ||
"gitHead": "3ae7053018c8a99d74f1d22961b28f6db54df3b4" | ||
"gitHead": "33732d6fd2ec1ec5ff3c15403c035fe936c04fda" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
72111
13.8%2230
9.31%0
-100%