Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow auto types #2140

Merged
merged 2 commits into from
Feb 13, 2024
Merged
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
38 changes: 37 additions & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,46 @@
{
"name": "vue-router",
"version": "4.2.5",
"version": "4.3.0-alpha.1",
"main": "index.js",
"unpkg": "dist/vue-router.global.js",
"jsdelivr": "dist/vue-router.global.js",
"module": "dist/vue-router.mjs",
"types": "dist/vue-router.d.ts",
"exports": {
"./auto-routes": {
"types": "./vue-router-auto-routes.d.ts",
"node": {
"import": {
"production": "./dist/vue-router.node.mjs",
"development": "./dist/vue-router.node.mjs",
"default": "./dist/vue-router.node.mjs"
},
"require": {
"production": "./dist/vue-router.prod.cjs",
"development": "./dist/vue-router.cjs",
"default": "./index.js"
}
},
"import": "./dist/vue-router.mjs",
"require": "./index.js"
},
"./auto": {
"types": "./vue-router-auto.d.ts",
"node": {
"import": {
"production": "./dist/vue-router.node.mjs",
"development": "./dist/vue-router.node.mjs",
"default": "./dist/vue-router.node.mjs"
},
"require": {
"production": "./dist/vue-router.prod.cjs",
"development": "./dist/vue-router.cjs",
"default": "./index.js"
}
},
"import": "./dist/vue-router.mjs",
"require": "./index.js"
},
".": {
"types": "./dist/vue-router.d.ts",
"node": {
Expand Down Expand Up @@ -47,6 +81,8 @@
"index.js",
"dist/*.{js,cjs,mjs}",
"dist/vue-router.d.ts",
"vue-router-auto.d.ts",
"vue-router-auto-routes.d.ts",
"vetur/tags.json",
"vetur/attributes.json",
"README.md"
Expand Down
4 changes: 4 additions & 0 deletions packages/router/vue-router-auto-routes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Array of routes generated by unplugin-vue-router
*/
export declare const routes: any[]
4 changes: 4 additions & 0 deletions packages/router/vue-router-auto.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Extended by unplugin-vue-router to create typed routes.
*/
export interface RouteNamedMap {}
Loading