Introduction to

Typescript

Salama Ashoush

ITI 37 OSAD

Senior Frontend Engineer

Frontmen Consultancy

Amsterdam, Netherlands

1 Child (Omar)

Anime, Gaming, MCU, Coding, Design, 3D Animation

 

@salamaashoush

 

 

Prerequisites

 

  • Standards
  • Modules
  • Variables
  • Functions
  • Classes
  • Nodejs
  • Npm
  • Vscode

Tools

JavaScript

JavaScript

Compilers

vs

Transpilers

Strong Typing

vs

Dynamic Typing

Nominal Types

vs

Structural Types

What's TypeScript?

  • An open-source typed, syntactic superset of JavaScript, developed by Microsoft
  • Compiles to readable JavaScript
  •  Comes in three parts: Language, Language Server and Compiler

Why?

  •  Encode constraints and assumptions, as part of developer intent
  •  Catch common mistakes (i.e. incomplete refactors)
  •  Move some runtime errors to compile time
  •  Provide your consumers (including you) with a great DX

TypeScript introduction

By Salama Ashoush

TypeScript introduction

  • 90