The TypeScript modules course shows how to transform your scripts into modules. The course explains named exports, default exports, export assignments, export statements, named imports, default imports and namespace imports. You will also learn how to rename imported and exported modules and how to import a module for its side-effects. At the end of the course, you will also convert a TypeScript project that uses CommonJS module syntax into one that utilizes the ES module syntax.
My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...
My FREE TypeScript Course:
https://typescript.tv/
Timeline:
00:00 Module systems in JavaScript and TypeScript
01:44 Project setup with CommonJS
02:15 From script to module
02:50 Relative Named Imports
03:30 Use compiled TypeScript module in JavaScript
04:14 Named Imports & Default Imports
05:31 Export Statements
06:00 Renaming exports
07:20 Renaming imports
07:53 Namespace Imports
08:48 Best pratices for namespaces
10:04 Import a module for side-effects
10:48 Fix TS7016
11:15 Fix TS2306
13:37 The global object
13:55 Fix TS7017 with ambient module declaration
14:43 Assignments to read-only properties (TS2540)
15:03 Converting CommonJS module to ECMAScript module
16:06 Switch to ES module syntax
17:40 Closing Note
Follow Us:
🌐 https://typescript.tv/
🐦 / typescripttv
📺 / typescripttv
Hashtags:
#TypeScript #WebDev #Programming #TypeScriptTV