Skip to content

How to hide a class member. #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
awerlang opened this issue Feb 6, 2015 · 3 comments
Closed

How to hide a class member. #60

awerlang opened this issue Feb 6, 2015 · 3 comments

Comments

@awerlang
Copy link
Contributor

awerlang commented Feb 6, 2015

Is it possible to hide a method from a class? It needs to be public because it implements an interface, but it doesn't make sense to call it directly. Think of explicit interface implementation in C#.

@sebastian-lenz
Copy link
Member

Hi André, nice to hear from you. Your request seems somehow related to #25. Could we resolve your problem by enabling you to manually make the member to appear as private (e.g. by adding @private to the comment) in the documentation?

@awerlang
Copy link
Contributor Author

awerlang commented Feb 7, 2015

Hi Sebastian

That's exactly what I'm looking for, it would be nice indeed. I'm closing this one then.

Thank you

PS: for the moment, I'm marking that member as private and casting to any. But then I loose type checking.

@sebastian-lenz
Copy link
Member

Starting with the next version 0.2.3 of TypeDoc you can change the access level of declarations using @private and @protected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants