How to make a static field accessible only in its class in TypeScript?
Originally Published Here ๐!
To make a static field accessible only in its class, you need to make the static field into a private static field using the private keyword before the static field in TypeScript.
TL;DR
// a simple class
class Person {
...
melvingeorge-me.hashnode.dev2 min read