Is it possible to create a private \"function\" (method) within a TypeScript class? Let\'s assume we have the following Person.ts TypeScript file:
Person.ts
You can use private class variables and functions in TypeScript/Webpack and even in the latest Google Chrome versions natively. Just add a # before the name. See here.
#
MyClass{ #privateMember: Number = 4 #privateMethod() { this.#privateMember = 3 } }