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

Different App.PageData for each layout.svelte #13592

Open
JohnKiller opened this issue Mar 16, 2025 · 0 comments
Open

Different App.PageData for each layout.svelte #13592

JohnKiller opened this issue Mar 16, 2025 · 0 comments

Comments

@JohnKiller
Copy link

Describe the problem

It would be nice if I could set App.PageData different for each layout, and then the pages inside the layout should be forced to extend that interface.

For example, a website may have a "general" layout and an "administrator" layout. I want to set the title on the layout based on the current page data. But inside the admin portal, it is different.

Describe the proposed solution

Have a way to declare the interface inside layout.svelte instead of app.d.ts

Alternatives considered

No response

Importance

nice to have

Additional Information

Related to #11779 because if I can't enforce it, it's not very useful.

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

No branches or pull requests

2 participants