Replies: 1 comment
-
My current workaround that i found is to define a new property on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
session
type inPageData
Non-Goals
No response
Background
When importing from
@auth/sveltekit
like this:The library declares the global type for the namespace App like this:
This crashes with my
auth.ts
config which looks like this:If i now try do define the
PageData.session
myself, the types are overwritten by the@auth/sveltekit
libraryProposal
Instead of automatically declaring the global App namespace from within the library, could you instead expose the types used:
And then document that the user should set these themselves, so that it's possible to have full control over the App namespace.
Beta Was this translation helpful? Give feedback.
All reactions