tta small language for TypeScript and TSX

Tooling

Modules

Keep .tt or .ttx on source imports and let ttc rewrite emitted specifiers.

example.tt
import { Token } from "./token.tt";
import type { TOption, TResult } from "@tt/std";
import * as Option from "@tt/std/option";
import * as Result from "@tt/std/result";

export { Parser } from "./parser.tt";

Features

  • Relative .tt imports emit as .js; .ttx imports emit as the file tsc writes: .jsx under "jsx": "preserve", .js otherwise.
  • Use --rewrite-imports ts or off for TypeScript-extension or bundler workflows.
  • Direct relative imports carry exported variant declarations into exhaustiveness checking.
NextCLI →