TypeScript Compiler API

Programmatic access to the TypeScript compiler. The Compiler API allows developers to parse TypeScript files into ASTs, perform type checking, emit JavaScript, and transform code programmatically.

API entry from apis.yml

apis.yml Raw ↑
aid: typescript:typescript-compiler-api
name: TypeScript Compiler API
description: Programmatic access to the TypeScript compiler. The Compiler API allows developers to parse
  TypeScript files into ASTs, perform type checking, emit JavaScript, and transform code programmatically.
image: https://www.typescriptlang.org/favicon-32x32.png
humanURL: https://www.typescriptlang.org/docs/handbook/compiler-options.html
baseURL: https://www.typescriptlang.org
tags:
- Compiler
- Transpilation
- Type Checking
- AST
- Code Generation
properties:
- type: Documentation
  url: https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API
- type: GitHub Repository
  url: https://github.com/microsoft/TypeScript
- type: npm Package
  url: https://www.npmjs.com/package/typescript
- type: API Reference
  url: https://www.typescriptlang.org/tsconfig
- type: Compiler Options
  url: https://www.typescriptlang.org/tsconfig/