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

$page.params typed? #12083

Open
frederikhors opened this issue Apr 5, 2024 · 0 comments
Open

$page.params typed? #12083

frederikhors opened this issue Apr 5, 2024 · 0 comments

Comments

@frederikhors
Copy link
Contributor

frederikhors commented Apr 5, 2024

Describe the problem

Hi great people!

Sometimes it happens I forget to change code I copy from other files and I do not get errors if the params are wrong:

Example in src/routes/players/[player_id]/+page.svelte, this is wrong:

playerId={$page.params.team_id}

it should be:

playerId={$page.params.player_id}

Is there a way to make the compiler shout that that param is wrong in that place?

Describe the proposed solution

I don't really know.

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant