Typescript.tools

TSC = Typescript compiler

AST Playground

  1. ASTExplorer - Shows AST returned by TSC parser. Very useful.

  2. TypeScript AST Viewer - SImilar to ASTExplorer, but custom made for Typescript. Very useful for checking symbols (not shown in ASTExplorer).

Reading and examples

  1. Typescript Architectural Overview - Explains how all the different parts of TS are connected together. Also defines the common terminologies.

  2. Typescript compiler wiki page - Example code to use diff parts of TS. Show boilerplate code and some example.

    More services covered, less depth.

  3. Typescript Deep Dive by Basarat - Good introduction to various parts of TSC api.

    Gives the initial hints and basic concept of many apis, but often doesn't show full examples or connect the different parts it is describing. Feels like a developer's note.

  4. Typescript Transformer Handbook - Lots of links and examples on how to write custom transformer. More of complete working examples, less theory. Same techniques apply for using TSC api directly.

Wrappers and utils

  1. ts-morph - Easier and nicer abstraction layer on top of TS internals. Exposes underlying constructs for advanced usecases.

    Slower startup due to extra initial overhead.

  2. byots - Modified version of Typescript lib, which exposes more internal apis. Matching releases are created automatically.

    TS has anyway opened up more apis, is it worth using anymore ??

  3. ttypescript - TSC drop-in replacement which supports passing custom transformers as cmdline argument.

S
Description
Collection of resources related to Typescript compiler api and related things
Readme
45 KiB