-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
}, | ||
"files": [ | ||
"dist", | ||
"./route.schema.json", | ||
"*.d.ts" | ||
], | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/posva/unplugin-vue-router/main/route.schema.json", | ||
"title": "Route custom block", | ||
"description": "An SFC custom block to add information to a route", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the route" | ||
}, | ||
"path": { | ||
"type": "string", | ||
"description": "The path of the route" | ||
}, | ||
"meta": { | ||
"type": "object", | ||
"description": "The meta of the route" | ||
}, | ||
"props": { | ||
"type": "boolean", | ||
"description": "Whether the route should be passed its params as props" | ||
} | ||
} | ||
} |