How to Type Lazy Components #453
Answered
by
jbroma
steventnorris
asked this question in
Q&A
-
How are we intended to make typescript happy with remote chunks loaded lazy as is suggested in the docs? Using the below code I always get
|
Beta Was this translation helpful? Give feedback.
Answered by
jbroma
Oct 23, 2023
Replies: 1 comment 2 replies
-
Hey @steventnorris, we don't have a nice solution for this atm, #270 is about exactly this issue. Right now you can always type this manually by doing a typecast via |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
steventnorris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @steventnorris,
we don't have a nice solution for this atm, #270 is about exactly this issue. Right now you can always type this manually by doing a typecast via
as NavigationProviderType
and having declaration of that component in your repo