The Book π
This eBook was written for software developers who are interested in learning more about TypeScript and its powerful compiler APIs. The TypeScript Compiler API is a feature-rich API available for automating code-related tasks, such as reading code, writing code, and extending TypeScript's built-in feature set.
If you want to learn how to:
- Automate the generation of boilerplate code in your codebase.
- Create custom linters to catch bugs and inconsistencies in your codebase faster.
- Write more reliable code by eliminating a whole class of bugs.
- Read and analyze code programatically to generate custom documentation or other formats of data.
- Get a better understanding of the TypeScript internals.
Then this book is for you!
We will demystify the secrets of the TypeScript Abstract Syntax Tree and learn how to use it to our advantage! We will learn how to write linters, extend diagnostics, create custom logic for code validations at compile time, and most importantly - generate code automatically based on data and constraints.
Chapters π
1. What is the Typescript Compiler API
2. Overview of Abstract Syntax Trees
3. Transpiling Modules to Javascript
4. Extracting data from the AST
5. Use cases for reading ASTs
6. Writing a TypeScript Linter
7. Code Generation
8. Writing a TypeScript transformer
9. Unit testing code generation
10. The Type Checker
11. Leveraging A.I for code generation
F.A.Q β
How long is the book?
The book has 11 full chapters, each chapter is around a 10-minute read.
Do I need existing knowledge of TypeScript to read this book?
No, although it would be helpful. Good knowledge of JavaScript is needed and just basic knowledge of TypeScript is ideal.
How long do I have access to the eBook after purchase?
Forever! You will never lose access to reading the book.
Will I get access to free support?
Yes! All purchases come with free unlimited support for answering extra questions about topics covered in the book. A contact form will be provided in the dashboard after purchase.
Any location based discounts available?
Yes! We support Purchasing Power Parity (PPP) and offer a discount between 20% and 60% off during checkout depending on your location! Discounts are sourced from the World Bank and are refreshed weekly.