Skip to content

abid365/learningTypescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Learning TypeScript

  • TypeScript ensures type safety

Interview Question: How do we define integers or floats in typescript?

Hint We don't need to define, integers and float everything is just number It is redundent to write the type when declaring a number, because typescript is smart enough to detect it and automatically asings the type as number


Read out Type Inference

  • It is redundent to write the type when declaring a number, because typescript is smart enough to detecht it and automatically asinged the type as number

Any

What is the best practice of type any? video

How functions are defined in Ts

A better way to write function

Related to topic: What is void? Void a brief description

never

The never type represents values which are never observed. In a return type, this means that the function throws an exception or terminates execution of the program.

About

Learning Typescript to upgrade from JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published