feat: typed definePage params.path by posva · Pull Request #2716 · vuejs/router (original) (raw)
added 5 commits
Make definePage generic on the SFC's file path so params.path keys are
narrowed to the actual route path-params. The Volar plugin injects the
file path on bare definePage(...) calls, mirroring useRoute().
- Codegen emits
pathParamNamesper file in_RouteFileInfoMap _RouteFileInfoMapwired throughTypesConfigto survive d.ts bundling- Volar plugin escapes apostrophes/backslashes in injected file paths
posva deleted the feat/define-page-typed-path-params branch
This file contains hidden or 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
[ Show hidden characters]({{ revealButtonHref }})