How to add type from a dependency package to my package

Viewed 13

I have create a package A that I use in my project and that wrap a bunch of other packages.

One of those package is package B that contain a lot of type in the declarations and that is a public npm package.

I added package B as dependency in package.json of my Package A, and everything works fine functionality wise.

Issue is, package B define many type that I would like to use in my project, but they are not exported from package A.

If I do

export * from 'packageB';

I will export everything not just the type of the packageB (the component etc...) but I would like my application to know only about the component of packageA, and the type exported from package A.

How can I export only the type of package B from package A to be usable in my application ?

0 Answers
Related