How to Use Custom Types Properly in TypeScript?
Mastering Custom data types in TypeScript
Published in
3 min readMar 21, 2022
JavaScript is not a strongly typed language. Whereas TypeScript is strongly typed, which means everything has a type, be it a variable or a function.
There are times when we want to make an object have a particular format or a function return a certain format. This is where we use custom…