Currently in the process of constructing an internal TypeScript "library" using webpack 1.14.
I've set up an npm package and have it published on a private feed, which is working smoothly (able to utilize classes and interfaces from the library in other "projects" after installing the package).
The only issue I'm facing pertains to protected members of classes within the library. When a class in a consuming project extends a class from the library, it encounters limitations in accessing protected parent members. It's puzzling because although auto-completion shows the presence of these protected members, compilation yields an error stating:
error TS2339: Property 'apply' does not exist on type 'SitesRollup'
The TypeScript protected keyword documentation does not explicitly mention that protected members are confined to the current module, leading me to believe they should function as expected.
My main query is: should protected members be visible in extending or inheriting classes from different modules?