Typescript in 5 mins

What does a Static Type Checker do ?

  1. The three most common primitives are : number, string, boolean.
  2. Type annotations on variables
  3. Parameter Annotations
  4. Return type Annotations
  5. Object types and Optional properties
  6. Union Types , for defining different Types to a single variable at initialisation.
  7. ‘type’ aliases
  8. Interfaces : note : Interfaces and Type Aliases are almost equal, the only difference is Interface is extendable, where Type Alias structure cannot be extended. In short, a type cannot be changed after creation, while an Interface can.
  9. classes and so on …




Full stack developer, Blogger, Poet, Writer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Functional vs Object-Oriented Programming

I will do unique front end work pixel perfect

How to connect Express js with mongodb

Learn about Koa JS


State Vs Props in React

Easy Animation by an Anxious Coder

Using Core Node JS Modules in React Native Apps

Angular 11 Pagination of 100,000+ Rows

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akarsh Saraff

Akarsh Saraff

Full stack developer, Blogger, Poet, Writer

More from Medium

How to Efficiently Manipulate Arrays in JavaScript

Introduction to JavaScript Decorators

For loops in JavaScript (vs _.times)

Asynchronous Loops in JavaScript — using forEach, map, and for loop