What is the equivalent of protected in TypeScript?

前端 未结 3 1811
小蘑菇
小蘑菇 2021-02-06 20:55

What is the equivalent of protected in TypeScript?

I need to add some member variables in the base class to be used on

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 21:24

    at least at the moment (version 0.9) protected are not mentioned in the specs

    http://www.typescriptlang.org/Content/TypeScript%20Language%20Specification.pdf

提交回复
热议问题