When to use static methods in TypeScript?
Best PracticesWhen developing class functions that don’t rely on an internal state, it’s a good idea to turn them into static methods. This can be easily done by adding the keyword static
to your function’s declaration.