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

Proper typing for $page.data.session just like $session? #6058

Closed
AaronFlynn1989 opened this issue Aug 18, 2022 · 1 comment
Closed

Proper typing for $page.data.session just like $session? #6058

AaronFlynn1989 opened this issue Aug 18, 2022 · 1 comment

Comments

@AaronFlynn1989
Copy link

AaronFlynn1989 commented Aug 18, 2022

Describe the problem

I feel like I'm missing something obvious. $session was removed in #5946 and the alternative proposed in #5883 is using layout load functions and retrieving the session info there and then returning it as part of the data; which I am doing, but I'm not sure how I should have proper typing for $page.data.session?! Previously I was declared the type of the session object in app.d.ts's App.Session, and then just used the typed $session store everywhere, which was very convenient, I'm confused as to how I'm supposed to achieve something similar now?!

Describe the proposed solution

I don't know, really

Alternatives considered

No response

Importance

i cannot use SvelteKit without it

Additional Information

No response

@elliott-with-the-longest-name-on-github
Copy link
Contributor

Closing as a duplicate of #5951. Read through the discussion there -- Rich is working on implementing this! :)

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

2 participants