TypeScript Transform API

The TypeScript Transform API enables custom AST transformations during compilation. Transformers can modify, add, or remove nodes in the TypeScript AST before code emission.

API entry from apis.yml

apis.yml Raw ↑
aid: typescript:typescript-transform-api
name: TypeScript Transform API
description: The TypeScript Transform API enables custom AST transformations during compilation. Transformers
  can modify, add, or remove nodes in the TypeScript AST before code emission.
image: https://www.typescriptlang.org/favicon-32x32.png
humanURL: https://www.typescriptlang.org/docs/handbook/2/types-from-types.html
baseURL: https://www.typescriptlang.org
tags:
- AST
- Code Transformation
- Compilation
- Custom Transformers
properties:
- type: Documentation
  url: https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter
- type: GitHub Repository
  url: https://github.com/microsoft/TypeScript