TypeScript Interface with Functions: 6 Patterns You Need to Know
TypeScript interfaces can absolutely have functions, and there are several useful patterns beyond the basic “add a method and implement it in a class.” In this tutorial, I’ll walk you through those patterns in a practical, no-nonsense way. Why put functions in a TypeScript interface? When I say “functions in an interface,” I’m really talking … Read more >>