2021年4月10日星期六

How do I override the `private` qualifier of a class member in TypeScript?

I am trying to use a package p-queue which uses private to lock one of their members. Ideally it should be protected so developers can extend to add additional functionality. However, right now I am basically revendoring the component so I can add the functionality I need.

Is there a way of just altering the visibility of a member when extending the class?

https://stackoverflow.com/questions/67040836/how-do-i-override-the-private-qualifier-of-a-class-member-in-typescript April 11, 2021 at 10:05AM

没有评论:

发表评论