The TypeScript API is generated from TSDoc annotations in the npm/src/ source tree using TypeDoc. Source files live in npm/src/.
The Wiki Programmatic API page provides usage examples and design rationale.
Related
- Wiki Programmatic API — usage guide
- Python API Reference — Python library reference