Have a look at the following code:
module MyModule {
class MyPrivateClass {
...
}
export class MyPublicClass {
private var: MyPrivateClass; // MyPrivateClass is unknown
}
}
I want MyPrivateClass to be only visible inside MyModule, specifically for internal use in MyPublicClass. Outside MyModule, only MyPublicClass should be visible. I figured that the above layout should do but VS complains that MyPrivateClass isn't visible inside MyPublicClass. Adding export before the definition of MyPrivateClass makes it visible to MyPublicClass but then it's also visible from the outside.
Is there a way to make it visible to MyPublicClass only?
Thank you.