Types for $page.data #8219
Unanswered
jdgamble555
asked this question in
Q&A
Replies: 1 comment 1 reply
-
From the docs:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Is there a way to use the
PageData
types in the$page.data
variable?I can do this in the route component:
But how do I get matching types in a child component (specifically to work with $page.data)?
There is no way to import the proper types. These do NOT work:
or
It seems
$page.data.X
defaults toany
type, which is not desirable.J
Beta Was this translation helpful? Give feedback.
All reactions