I created a custom 'library' in Angular and TypeScript. This library is distributed as a *.ts package within other Angular workspaces.
Within this library, I have an exported class that contains various properties.
One specific property in this class should only be set within the library itself.
TypeScript Code Example:
export class Bar{
foo:boolean; // to be set exclusively within the library scope
}
Is there a method to declare a property as 'internal' in TypeScript, or any alternative way to restrict a property to only be set within the library?