classes
TypeScript in Production notes about classes
Choose Application Behavior and Ownership
TypeScript Classes vs Modules: Should State Belong to an Instance or a File?
Use a class when callers need independently changing state; use a module to group operations and control what other files can import.
How to Type a TypeScript Class: Fields, Constructors, Methods, and Inheritance
Type class fields, constructors, and methods in one Account example, then extend it while keeping compiler checks separate from runtime behavior.


