6 ms·
Typescript works perfectly well without classes, even better sometimes (see decorators and Typescript). The shape of data is more foundational than classes. An
by desert_boi 5y ago
Typescript works perfectly well without classes, even better sometimes (see decorators and Typescript).
The shape of data is more foundational than classes. An object without a class is a perfectly good way to organize data too, based on its shape.