Foxp – a TypeScript type checker enabling pseudo dependent types
Foxp – a TypeScript type checker enabling pseudo dependent types
Hello. I’ve created a TypeScript package that enables dependent-type–like checks by implementing a scripting language called CionLisp entirely at the type level. By extracting types from runtime values, it enables type validations not natively supported by TypeScript. Using this, I’ve implemented several features, including: - Division-by-zero detection - Length-indexed vectors (similar to Vect n in idris) - Safe accessors (similar to Lenses) Additionally, anything that can be expressed on CionLisp and resolved at type level—such as email validation via regex—can potentially be type-checked as well. Please note that this is still in an alpha stage, so use with caution. Thank you for your interest.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Nullable Types in TypeScript
Brainfuck interpreter using TypeScript types
Ts-essentials – Reusable, type-safe, TypeScript types
Functional data types for TypeScript development
Wordle Implemented in TypeScript Types
A C-style language interpreter implemented by the TypeScript types
Fastify-zod, type-once, run everywhere (TypeScript/OpenAPI)
Extra Types for TypeScript
Generate TypeScript Types from JSON Samples
type-kanren – type-level microKanren in TypeScript