What is typescript collections?
TypeScript Collections. It is a complete, fully tested data structure library written in TypeScript.
What are the types and interfaces in typescript?
Before we jump into the differences between types and interfaces in TypeScript, we need to understand something. In TypeScript, we have a lot of basic types, such as string, boolean, and number. These are the basic types of TypeScript. You can check the list of all the basic types here.
How to declare a tuple in typescript?
But, in TypeScript, we can only declare tuples using types and not interfaces. There’s no way we can declare a tuple in TypeScript using an interface, but you still are able to use a tuple inside an interface, like this: We can see that we can achieve the same result as using types with interfaces.
Is typescript helping your development?
You concluded that TypeScript, in fact, was helping your development and saving you precious time, but you might have made some mistakes and not followed the best practices when you started to work with types and interfaces in TypeScript.