English Delivery Only: TypeScript
- Code training TS
- Duur 2 dagen
Andere trainingsmethoden
Ga naar:
Methode
Deze training is in de volgende formats beschikbaar:
-
Klassikale training
Klassikaal leren
-
Op locatie klant
Op locatie klant
-
Virtueel leren
Virtueel leren
Vraag deze training aan in een andere lesvorm.
Trainingsbeschrijving
Naar bovenTypeScript 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.
Maatwerk
Global Knowledge biedt zowel standaard- als maatwerkcursussen die zijn afgestemd op uw wensen en die als besloten cursus op uw eigen locatie of onze locatie gevolgd kunnen worden.
Data
Naar bovenDoelgroep
Naar bovenThis course is designed for JavaScript developers who are required to build or maintain applications written in TypeScript.
Trainingsdoelstellingen
Naar bovenThis 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.
Inhoud training
Naar bovenCourse 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
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
Voorkennis
Naar bovenDelegates attending this course should be familiar with/able to write JavaScript code up to and including features detailed in ES6. This can be achieved via attendance on our JavaScript Developer course.
Vervolgtrainingen
Naar boven- Developing Node.js Web Applications
- Angular Development
- React