Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some type-level TypeScript libraries? [closed]

Tags:

typescript

To learn about the TS ecosystem, I'm looking for examples of type-level TS libraries.

By 'type-level TS library', I mean something like an npm package that does not provide typings for a specific value-level library, but instead provides facilities for type-level programming.

Some examples of this sort of thing:

  • fp-ts has higher-kinded-types
  • utility-types is 'lodash for types'
  • There's a library for testing types using types only (can't remember the name)

What are more examples of type-level TS libraries?

This is an objective question and I'm genuinely trying to learn something. I am not asking for 'good' vs. 'bad', just examples.

like image 824
Max Heiber Avatar asked Mar 02 '26 18:03

Max Heiber


1 Answers

Some honorable mentions:

Types

  • type-fest A collection of essential TypeScript types
  • ts-essentials All basic TypeScript types in one place
  • typescript-conditional-types Helpers for typescript generic types
  • ts-types-utils Type utilities for typescript
  • type-zoo A menagerie of useful type operators for TypeScript
  • unionize Boilerplate-free functional sum types in TypeScript
  • hkts A simple encoding of higher-kinded types in TypeScript
  • safe-units Type-safe TypeScript units of measure
  • type-plus Additional types and types adjusted utilities for TypeScript

Test own Types with Types

  • is Type check values
  • conditional-type-checks Types for testing TypeScript types.

Transformers

  • ts-transformer-keys
like image 146
a1300 Avatar answered Mar 04 '26 09:03

a1300



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!