-
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Update from @ScriptedAlchemy - https://www.npmjs.com/package/@module-federation/typescript has been released
I can see a disadvantage using remotes libraries vs the classical libraries where e.g. typescript can be used to enforce strong types. The current typescript example defines a generic app2/Button which is similar defining a any type.
module-federation-examples/typescript/app1/src/app2.d.ts
Lines 3 to 7 in cf2d070
| declare module "app2/Button" { | |
| const Button: React.ComponentType; | |
| export default Button; | |
| } |
As the remote var does not have type, I don't see a way to benefit from the app2 types in app1. Any idea on this?
justdanallen, JB1905, tehbi4, jedwards1211, cbruegg and 45 morethescientist13, jpmonette, iliapnmrv and chriscarrillo
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested