Extend locals and have it typed rather than unknown
#1269
Unanswered
CallumVass
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Pocketbase with solid-start and am wondering how I can have my pocketbase instance on
localstyped? Aslocalsis just aRecord<string, unknown>but I know the key withpbwill be of typeTypedPocketBaseAt the moment I have to do this everywhere:
Where as I'd like to just do this:
For context, I am adding it to my
localsin middleware:Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions