There are 3 types of access modifiers in TypeScript, TypeScript Access Modifiers are: public, private, and protected.
1. Public
By default, all the members of a class are public in TypeScript.
2. Private
When any of the class members are declared private, it is only accessible within the class scope.
3. Protected
The protected members are similar to private access modifiers, except that they are accessible in the derived class.