Skip to content

Commit

Permalink
chore: updates dts
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 9, 2023
1 parent 5517209 commit 9d0a98a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion playground/typed-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import type {
// vue-router extensions
_RouterTyped,
RouterLinkTyped,
RouterLinkPropsTyped,
NavigationGuard,
UseLinkFnTyped,

Expand All @@ -47,7 +48,7 @@ declare module 'vue-router/auto/routes' {
'/articles/[id]+': RouteRecordInfo<'/articles/[id]+', '/articles/:id+', { id: ParamValueOneOrMore<true> }, { id: ParamValueOneOrMore<false> }>,
'/custom-definePage': RouteRecordInfo<'/custom-definePage', '/custom-definePage', Record<never, never>, Record<never, never>>,
'a rebel': RouteRecordInfo<'a rebel', '/custom-name', Record<never, never>, Record<never, never>>,
'/custom.page': RouteRecordInfo<'/custom.page', '/custom/page', Record<never, never>, Record<never, never>>,
'/custom/page': RouteRecordInfo<'/custom/page', '/custom/page', Record<never, never>, Record<never, never>>,
'/deep/nesting/works/[[files]]+': RouteRecordInfo<'/deep/nesting/works/[[files]]+', '/deep/nesting/works/:files*', { files?: ParamValueZeroOrMore<true> }, { files?: ParamValueZeroOrMore<false> }>,
'/deep/nesting/works/at-root-but-from-nested': RouteRecordInfo<'/deep/nesting/works/at-root-but-from-nested', '/at-root-but-from-nested', Record<never, never>, Record<never, never>>,
'deep the most rebel': RouteRecordInfo<'deep the most rebel', '/deep-most-rebel', Record<never, never>, Record<never, never>>,
Expand Down Expand Up @@ -126,6 +127,7 @@ declare module 'vue-router/auto' {
export function onBeforeRouteUpdate(guard: NavigationGuard<RouteNamedMap>): void

export const RouterLink: RouterLinkTyped<RouteNamedMap>
export const RouterLinkProps: RouterLinkPropsTyped<RouteNamedMap>

// Experimental Data Fetching

Expand Down
2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default defineConfig({
}
route.delete()
const newRoute = root.insert(
'custom.page.page.vue',
'/custom/page',
route.components.get('default')!
)
// newRoute.components.set('default', route.components.get('default')!)
Expand Down

0 comments on commit 9d0a98a

Please sign in to comment.