-
-
Notifications
You must be signed in to change notification settings - Fork 103
docs: enhance typed-router.d.ts
docs and add section for using sfc-typed-router
#687
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe documentation for TypeScript and Nuxt integration with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related PRs
Suggested reviewers
Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #687 +/- ##
=======================================
Coverage 60.90% 60.90%
=======================================
Files 36 36
Lines 3379 3379
Branches 618 618
=======================================
Hits 2058 2058
Misses 1314 1314
Partials 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
docs/guide/typescript.md (2)
24-26
: Extension mismatch in import snippetSnippet imports
./typed-router.d
, while the file generated earlier istyped-router.d.ts
. Append the.ts
extension to avoid “file not found” issues in strict TS setups.
56-60
: Small wording tweak for clarityConsider replacing “you should also augment” with “you must also augment” to emphasise the requirement when the Volar plugin is used.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
docs/guide/typescript.md
(3 hunks)docs/nuxt/getting-started.md
(2 hunks)
🔇 Additional comments (5)
docs/guide/typescript.md (3)
36-50
: Great addition—clearly documents generated helper typesThe added explanation of
RouteNamedMap
,_RouteFileInfoMap
, and_RouteNamesForFilePath
makes the generated file much easier to reason about. No further action needed.
95-108
: Example paths look goodThe augmentation example is correct and mirrors real catch-all route syntax. 👍
143-171
: Nuxt/Volar setup instructions are spot-onThe config snippets are accurate and match current Nuxt expectations. Nice work.
docs/nuxt/getting-started.md (2)
3-11
: Filename correction acknowledgedSwitch to
nuxt.config.ts
is correct and prevents confusion in TS projects.
13-13
: Verify anchor linkDouble-check the URL
/guide/typescript#using-the-sfc-typed-router-volar-plugin
renders correctly on the deployed docs site (some generators strip the leading slash).
Summary by CodeRabbit
sfc-typed-router
Volar plugin for enhanced type safety.