Top 6 TypeScript type-level-programming Projects
-
hotscript
A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
free-types
A type-level library enabling the creation and the manipulation of type constructors which can be detached from their type parameters. Also referred to as higher kinded types.
Project mention: Configuring ESLint, Prettier, and TypeScript Together | Josh Goldberg | /r/typescript | 2023-05-04Nested ternaries are a sin. The only time you should be using them is in complex type generics because that's the only official way to write them. But we may no longer even have that excuse now with the existence of HotScript's higher order types. https://github.com/gvergnaud/hotscript
That’s just how type programming looks.
Here’s (https://github.com/unional/type-plus/blob/main/packages/type...) a human written example that’s well-factored and uses loads of subtypes to clarify what it’s doing - but it’s still going to read like the black tongue of Mordor to you if you’re not familiar with how this kind of type stuff is structured and used.
And factoring all that stuff out may help readability but it doesn’t help comprehension - try and trace what the actual underlying type definitions for some of those utility types like IdentityEqual<> are actually doing (look at https://github.com/unional/type-plus/blob/main/packages/type...) and realize the rabbit hole runs deep in this stuff.
TypeScript type-level-programming related posts
Index
What are some of the best open-source type-level-programming projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | ts-essentials | 3,552 |
2 | hotscript | 3,332 |
3 | type-plus | 350 |
4 | free-types | 141 |
5 | talk-typelevel-ts | 28 |
6 | brainfuck-ts-types | 6 |
Sponsored