4 ms·
TypeScript doesn't encourage returning classes. Writing classes just as data handlers is still verbose and clumsy. You can have a team that's writing Java in Ty
by eropple 7y ago
TypeScript doesn't encourage returning classes. Writing classes just as data handlers is still verbose and clumsy. You can have a team that's writing Java in TypeScript and see that, but that's not conventional at all.
Instead, TypeScript encourages returning structurally typed interfaces. Which are just data.