5 common ways of Type Annotation in TypeScript

Photo by Christin Hume on Unsplash

What is Type Annotation?

TypeScript is a statically-typed language. Hence, Type Annotation is an essential part of TypeScript that you need to be well familiar with. Type Annotations mean different ways that you can define types of variables, parameters, and return values of functions, and properties (of objects).

Daminda Dinesh Imaduwa Gamage

I am a Fullstack developer interested in MERN and Wordpress.