Skip to content
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"tsdown": "catalog:build",
"typescript": "catalog:devtools",
"unplugin-vue": "catalog:build",
"unplugin-vue-router": "catalog:playground",
"vite": "catalog:build",
"vue": "catalog:frontend",
"vue-router": "catalog:playground",
Expand Down
1 change: 0 additions & 1 deletion packages/core/playground/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
// @ts-expect-error skip type check
import { routes } from 'vue-router/auto-routes'

import App from './App.vue'
Expand Down
32 changes: 19 additions & 13 deletions packages/core/playground/typed-router.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
/* eslint-disable */
/* prettier-ignore */
// oxfmt-ignore
// @ts-nocheck
// noinspection ES6UnusedImports
// Generated by unplugin-vue-router. !! DO NOT MODIFY THIS FILE !!
// Generated by vue-router. !! DO NOT MODIFY THIS FILE !!
// It's recommended to commit this file.
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.

declare module 'vue-router/auto-resolver' {
export type ParamParserCustom = never
import type {
RouteRecordInfo,
ParamValue,
ParamValueOneOrMore,
ParamValueZeroOrMore,
ParamValueZeroOrOne,
} from 'vue-router'

declare module 'vue-router' {
interface TypesConfig {
ParamParsers:
| never
}
}

declare module 'vue-router/auto-routes' {
import type {
RouteRecordInfo,
ParamValue,
ParamValueOneOrMore,
ParamValueZeroOrMore,
ParamValueZeroOrOne,
} from 'vue-router'

/**
* Route name map generated by unplugin-vue-router
* Route name map generated by vue-router
*/
export interface RouteNamedMap {
'/': RouteRecordInfo<
Expand All @@ -40,7 +44,7 @@ declare module 'vue-router/auto-routes' {
}

/**
* Route file to route info map by unplugin-vue-router.
* Route file to route info map by vue-router.
* Used by the \`sfc-typed-router\` Volar plugin to automatically type \`useRoute()\`.
*
* Each key is a file path relative to the project root with 2 properties:
Expand Down Expand Up @@ -75,3 +79,5 @@ declare module 'vue-router/auto-routes' {
? Info['routes']
: keyof RouteNamedMap
}

export {}
2 changes: 1 addition & 1 deletion packages/core/playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import process from 'node:process'
import Vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import VueRouter from 'unplugin-vue-router/vite'
import { defineConfig } from 'vite'
import Tracer from 'vite-plugin-vue-tracer'
import VueRouter from 'vue-router/vite'
import { alias } from '../../../alias'
import { A11yCheckerPlugin } from '../../../examples/plugin-a11y-checker/src/node'
import { GitUIPlugin } from '../../../examples/plugin-git-ui/src/node'
Expand Down
41 changes: 0 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ catalogs:
immer: ^11.1.4
stream-json: ^1.9.1
playground:
unplugin-vue-router: ^0.19.2
vite-plugin-vue-tracer: ^1.3.0
vue-router: ^5.0.4
resolutions:
Expand Down
Loading