2 ms·
One might argue that interfaces are an OOP feature that TypeScript adds. That said, you aren't forced to use them.
by andyfleming 8y ago
One might argue that interfaces are an OOP feature that TypeScript adds. That said, you aren't forced to use them.
- steve_adams_86 8y agoInterfaces are excellent for defining structures in both FP and OOP paradigms in my opinion. They simply describe the shape of data. This is useful in most situations I can think of at compile time.