Closed
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
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?