Is it possible to create a private \"function\" (method) within a TypeScript class? Let\'s assume we have the following Person.ts TypeScript file:
In Javascript (as opposed to TypeScript), you can't have a private "member" function.
If you define a private function in the closure, you won't be able to call it as an instance method on an instance of your class.
If that's what you want, just move the TypeScript function definition outside the class body.