1 Implement interfaces in TypeScript
mebaumb редактировал(а) эту страницу 2021-04-22 17:45:56 -07:00

Event Information

Category Details
Reactor Topic Coding, Languages, and Frameworks
Title Implement interfaces in TypeScript
Description In TypeScript, you can use interfaces as you would in traditional object-oriented programming. You can also use interfaces to define object types and this is the primary focus of this module. This workshop will explain the reasons for using an interface in TypeScript, and teach you how to declare, instantiate and extend an interface. No prior knowledge of TypeScript is required, but you should already have Git, Visual Studio Code, and Node.js installed.
Level Beginner
Content Implement Interfaces: https://aka.ms/InterfacesTypeScript

Event Dates Run:

June 8 & 9, 2021 - All Locations

Instructor notes

Share this link with attendees at the beginning of the workshop: https://aka.ms/InterfacesTypeScript

Workshop steps:

  1. Start with an overview of interfaces, and how this is specific to TypeScript and other object-oriented programming languages (not JavaScript). Share the learning objectives and what to expect in this workshop.
  2. Provide some examples of interfaces, the reasons for using them, and how an interface is different from a type alias.
  3. Go through the exercise to declare and instantiate an interface in the Playground: https://www.typescriptlang.org/play.
  4. Walk through the exercise to extend an interface.
  5. Go through the exercises in the lab on using interfaces in TypeScript. These examples are to be completed in VS Code.
  6. Go through the knowledge check and summary.

Wrapping up:

  • Please encourage attendees to rate the module 😄
  • Share out the survey link: https://aka.ms/Reactor/Survey with the event code (the Reactor contact on the call can give you this)