We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_:hammer_and_wrench: Refactor suggestion_
Consider using 'Params' type from Next.js for routing parameters
Next.js provides built-in types for routing parameters. Using Params can improve type safety and consistency.
Params
Apply this diff to use the built-in type:
- interface PageProps { - params: { - name: string - } - } + import { Params } from 'next/dist/shared/lib/router/utils/route-matcher' + interface PageProps { + params: Params + }
Committable suggestion was skipped due to low confidence.
Originally posted by @coderabbitai[bot] in #46 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider using 'Params' type from Next.js for routing parameters
Next.js provides built-in types for routing parameters. Using
Params
can improve type safety and consistency.Apply this diff to use the built-in type:
Originally posted by @coderabbitai[bot] in #46 (comment)
The text was updated successfully, but these errors were encountered: