Anatomy of Typescript with Javascript

tkssharma

Hi All,

I will be talking about use of Javascript with Typscript in todays world and how its being useful for large enterprise to write their code with typescript.

Typescript is just a superset of javascript so things which i will be talking here will be useful for all developers who writes javascript in their projects.

TypeScript is based on JavaScript or call it as superset of javascript. The TypeScript compiler like TSC(compiler)  translates TypeScript into normal JavaScript simply by stripping out all the type information. Alongside that process, type checking is performed in order to discover type errors which we might be doing while writing javascript code, Typescript is just adding type safty on our code as writing plain javascript doesn't give us type safty.

In the session my main focus will be on how we can setup typescript compiler with different kind of application with different copiler options which we can configure. I will cover pattern of using typescript in javascript code by adding new types like interface, enums, sub types, abstract classes or union. We will talk about how our code can be typesafe where we can define type for variable  and return type for function we define in our code.

  • Typescript compiler and compiler options
  • Type aliases
  • Patterns to use Typescript in Code
  • Interfaces & classes -- hide things in classes
  • Types system in Typescript like enum, interface, sub types
  • Generics -- make function generic
  • Anatomy of functions with typescript
  • How to add typescript in your apps

 

 

 

 

 

Program tags

front end development, javascript, security

Experience Level

Intermediate

Drupal Version