TypeScript

Course Code: TS

Duration: 2 days

 
 
 
 

TypeScript Course Overview

TypeScript is a static type checker for JavaScript. Where JavaScript code is prone to failures at runtime, TypeScript flags errors at compile time. Angular applications are written in TypeScript by default, and TypeScript is supported by both React and Vue.

This course deals with all of the core TypeScript features including type inference, explicit typing, primitive types, object types, union types, aliases, interfaces, literal types, narrowing, function types, extending types, generics, type manipulation, and classes.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Course Objectives

This course aims to enable the delegate to build web applications using TypeScript. That is, the delegate ought to be able to write using TypeScript, that which they previously wrote using JavaScript, and in so doing produce code which is better and more robust.

Who will the Course Benefit?

This course is designed for JavaScript developers who are required to build or maintain applications written in TypeScript.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Exploit TypeScript to produce better, more robust code
  • Define custom types that exploit all of the primitive types, array types, object types, union types, aliases, interfaces, and literal types
  • Implement the right type of narrowing for any given situation
  • Determine when a function type is needed and construct it correctly using generics where appropriate
  • Exploit object type features including modifiers, index signatures, extensions and intersections, generics, and tuple types
  • Derive new types from existing types
  • Code classes that exploit TypeScript features including access modifiers, interfaces, static members, generics, arrow functions, and abstractions
  • Define and describe TypeScript best practices

TypeScript Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: INTRODUCTION

  • TypeScript vs. JavaScript
  • Installing TypeScript
  • Static type checks
  • Non-exception failures
  • Compiling TypeScript to JavaScript
  • Explicit types
  • Strictness flags

Session 2: TYPES

  • Primitive types
  • Array types
  • Variable and function type annotations
  • Object types
  • Union types
  • Aliases
  • Interfaces
  • Assertions
  • Literal types
  • null and undefined types
  • Other types

Session 3: NARROWING

  • What is narrowing?
  • Type guards
  • Truthiness
  • Equality
  • Membership
  • instanceof
  • Assignments
  • Control flow analysis
  • Type predicates

Session 4: FUNCTIONS

  • Function type expressions
  • Call signatures
  • Construct signatures
  • Generic functions
  • Generic constraints
  • Optional parameters
  • Optional parameters in callbacks
  • Overloading
  • Using this in functions
  • Rest parameters and arguments (spread)
  • Parameter destructuring
  • void return type

TypeScript Training Course

Session 5: MORE ABOUT OBJECT TYPES

  • Optional property modifier
  • Readonly property modifier
  • Index signatures
  • Extending types
  • Intersecting types
  • Aliases or interfaces?
  • Generic object types
  • Array types
  • Tuple types

Session 6: TYPE MANIPULATION

  • What is type manipulation?
  • Generics
  • keyof
  • typeof
  • Indexed access types
  • Conditional types
  • Mapped types
  • Utility types

Session 7: CLASSES

  • Class members
  • Fields
  • Constructors
  • Methods
  • Getters and setters
  • Class heritage
  • extends
  • implements
  • Member visibility
  • Static members
  • Generic classes
  • Handling this
  • Arrow functions
  • Parameter properties
  • Class expressions
  • Abstract classes and members
  • Relationships between classes

Session 8: BEST PRACTICES

  • General types
  • Generics
  • The any type
  • Callback types
  • Function overloads
  • Others
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Requirements

Delegates attending this course should be familiar with/able to write JavaScript code up to and including features detailed in ES6. This knowledge can be gained by attendance on the pre-requisite JavaScript Developer course.

Pre-Requisite Courses

Course Reviews

Thank you for your time Stuart. I thoroughly enjoyed the course. Very informative and covered all the key parts of typescript to get me going. I have some upcoming work on repos which include typescript and I feel far more equipped and confident to tackle these tickets. Look forward to seeing you on a future course!

Rhys - Government - August 2024

Stuart is very professional and knowledgeable in the topic at hand. Course content is concisely broken down and explained with no stone left unturned. I learned something new and will use this knowledge in my everyday role.

Sean - Government - July 2024

Another excellent course from Stu. As usual he went beyond the nuts and bolts of the topic and actually inspired delegates to become better engineers in general. He always demonstrates a huge depth of knowledge, producing complex examples on the fly with now hesitation. Easily the best tutor I've had for these sorts of courses

Christopher - Government

Very good course with the course tutor being very knowledgeable and making the course very informative and helpful. Stuart is a great tutor and has a great ability to give a lot of information and knowledge without it feeling too much. I gained a lot of very useful information during the 2 day course very good instructor.

Craig - Lead Software Engineer - Government

Stuart was great as always. Delivery spot on, length of course spot on. Really enjoyed, thanks.

Alex - SDET - Government

Stuart has been great and engaging as always - learnt a lot about typescript with very little previous experience

Rokas - Government

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 2 days

Price: £1,195.00 exc. VAT 


Start Date Options Spaces  
16 Dec 2024
StayAhead Virtual Courses available 
Spaces Book Now 
20 Jan 2025
StayAhead Virtual Courses available 
Spaces Book Now 
24 Mar 2025
StayAhead Virtual Courses available 
Spaces Book Now 
02 Jun 2025
StayAhead Virtual Courses available 
Spaces Book Now 
31 Jul 2025
StayAhead Virtual Courses available 
Spaces Book Now 
29 Sep 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy