Diving Deeper
In this final section of the course, we'll add some finishing touches to our mental model of how the TypeScript compiler works by studying declaration merging. Finally, we'll build a small API doc generator on top of the TypeScript compiler API.
-
Diving DeeperAfternoon Break
Afternoon coffee break
-
Diving DeeperDeclaration Merging
We'll take a close look at type-related information on Visual Studio Code's tooltips, which is ultimately provided by TypeScript's language server. This information sheds light on how values, types and namespaces can stack onto a single named entity, through a process called declaration merging.
-
Diving DeeperThe Compiler API
We'll build a small example project built on top of the TypeScript compiler API, to extract API documentation from a simple library. Along the way we'll take a look at TypeScript's internal data structures, to put some finishing touches onto our type-checking mental model.
-
Diving DeeperWrap Up and Recap
We'll recap everything we've learned throughout the day, and discuss some resources for further self-directed learning.