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.
Terminal Commands Used in This Lesson
npm i -g typescript tslint
tsc src/index.ts --outDir dist --watch