How TypeScript to JavaScript Conversion Works
AnyTool runs the official TypeScript compiler (ts.transpileModule) directly in the browser to strip types and emit JavaScript. Users choose an ECMAScript target (ES5 through ESNext), a module format (ESNext, ES2015, CommonJS, AMD, UMD, SystemJS), and a JSX mode, and the output recompiles live. Because it is the real compiler, generics, enums, decorators, namespaces, conditional/mapped types, and import type all convert correctly, and older targets are genuinely down-leveled.
- Official TypeScript compiler, not a regex stripper
- Selectable ES target, module format, and JSX mode
- Real down-leveling of class fields, async/await, optional chaining
- Live as-you-type transpile with diagnostics
- Self-hosted compiler — no runtime CDN
