Typescript Function Interface
The interface ensures that all callers of functions that implement the interface supply the required arguments – data and toUpper. Because TypeScript understands that JavaScript doesn’t mind if you pass arguments that aren’t used, it cleverly allows this in implementations. Why is this okay? Because it means you can substitute any implementation of the interface … Read more