Repository navigation
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 |
Answered by
jbroma
Oct 23, 2023
Replies: 2 comments 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 |
2 replies
Answer selected by
steventnorris
|
FYI Module Federation 2 comes with dynamic type generation which should resolve this problem. Support for MF2 is coming in version 5 of Re.Pack |
0 replies
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 NavigationProviderTypeand having declaration of that component in your repo