SPFx Fundamentals:

TypeScript Crash Course

A good understanding of TypeScript is essential for developing in the SharePoint Framework. In this lesson, we’ll take a moment to step away from web parts in order to establish a fundamental understanding of this language that is used so widely in SPFx. We’ll create a simple script that demonstrates TypeScript compilation, types, interfaces, enums, classes, and modules. If you’re new to TypeScript or if you’re looking to bolster your understanding of the language, this will be a great opportunity to learn.

Learn More

  1. Download Starter Solution
  2. TypeScript Handbook
  3. Lesson Source Code

Terminal Commands Used in This Lesson

  1. npm i -g typescript tslint
  2. tsc src/index.ts --outDir dist --watch
Lesson 5 of 26