Blog
5 hours ago
Generic interfaces: When to Use Them
As interfaces are types themselves, they too can have type parameters. This idea proves to be surprisingly powerful when it comes to expressing constraints on generic functions and types. In this post, we’ll demonstrate the use of interfaces with type parameters in a couple of common scenarios.
Source: HackerNoon →