Interfaces in TypeScript
In TypeScript interfaces are used to descript a type. Classes and functions are used to implement behaviour while interfaces are providing information's about shape of the data. All of the type information’s are removed from TypeScript program during compilation there is no runtime overhead and we can freely add type data. To be honest with you interfaces are like Swiss army kn…
By Dawid on (tags: interface, TypeScript, categories: code)