Skip to content

TypeScript

Native TypeScript execution via type stripping on Node.js 25+. Packages compile to JS + DTS via tsup for any runtime (Node.js 18+, Bun, tsx).

Quick Start

bash
# Node.js 25+ -- run TypeScript directly
node src/index.ts

# Development with auto-reload
node --watch src/index.ts

No loaders, no compilation step, no tsc required to run your code. TypeScript is used for type checking only (tsc --noEmit).

Key Concepts

ConstraintRule
No enumUse const objects with as const
No namespaceOnly type-only namespaces allowed
No parameter propertiesUse explicit property declarations
Explicit import typeverbatimModuleSyntax: true
.ts extensionsRelative imports use .ts; generated code uses .js
node: prefixRequired for Node.js built-in modules

These constraints come from erasableSyntaxOnly: true -- TypeScript syntax must be removable by stripping types, leaving valid JavaScript.

Learn More