HOTScript is an open-source TypeScript library that brings functional programming concepts to the type system through composable type-level functions. It allows developers to manipulate TypeScript types using familiar operations such as mapping, filtering, joining, and mathematical calculations. The library introduces higher-order functions that operate entirely during type checking rather than at runtime. Its Pipe and Compose utilities combine multiple transformations into reusable processing sequences. Developers can manipulate tuples, strings, numbers, objects, and boolean types through specialized function collections. HOTScript also supports type-level pattern matching and custom lambda functions for specialized transformations. Practical applications include extracting route parameters, transforming API payload types, and building strongly typed utility libraries. The project remains under development, with possible breaking API changes.
Features
- Composable Type-Level Functions
- TypeScript Pipe and Compose Utilities
- Tuple Mapping and Filtering Operations
- Compile-Time Mathematical Calculations
- Type-Level Pattern Matching
- Custom Lambda Functions and Object Transformations