Exporting deferred types in React Router #10997
johnpangalos
started this conversation in
Proposals
Replies: 1 comment
-
Having a generic 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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I had an issue with deferred types, mostly that it is hard to type. I was wondering the Deferred Data Class could have an associated interface which the class implements then the type is exported?
I usually use pretty strict typing and though this works I'd prefer a way to better type this:
I'd like something like this but with better names :)
Would this be something this project would be interested in? I would be willing to put some time into getting this working.
Beta Was this translation helpful? Give feedback.
All reactions