TypeScript Types

Open-source TypeScript projects categorized as Types

Top 23 TypeScript Type Projects

  • DefinitelyTyped

    The repository for high quality TypeScript type definitions.

    Project mention: ⚛️ Explaining React's Types | dev.to | 2024-03-27

    Prior to React 18, it used to include an implicit children prop, making it suitable for components expected to have children. For a long time, though, the implicit children prop type has been removed according to React 18's type changes.

  • type-fest

    A collection of essential TypeScript types

    Project mention: Adding type safety to object IDs in TypeScript | news.ycombinator.com | 2024-01-30

    Related: https://github.com/sindresorhus/type-fest/blob/main/source/o...

  • 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.

  • Superstruct

    A simple and composable way to validate data in JavaScript (and TypeScript).

    Project mention: Popular Libraries For Building Type-safe Web Application APIs | dev.to | 2024-04-07

    You can check out Superstruct documentation here.

  • io-ts

    Runtime type system for IO decoding/encoding

    Project mention: TDD | /r/CharruaDevs | 2023-12-07

    Qué rico. Si tenés chance meté un proceso de code review fuerte, y para el tema de I/O probá a usar https://github.com/Effect-TS/schema ó https://github.com/gcanti/io-ts que les da una solución obvia al tema de "tipos para lo que devuelva el backend", aunque es en realidad mucho más capaz que eso.

  • ts-toolbelt

    👷 TypeScript's largest type utility library

    Project mention: 5 Resources Each TypeScript Developer Should Know About | dev.to | 2024-03-10

    There are a bunch of awesome type utility libraries that may boost your works on types, like ts-toolbelt, utility-types, SimplyTyped, etc., which you can already use.

  • ts-essentials

    All essential TypeScript types in one place 🤙

  • pgtyped

    pgTyped - Typesafe SQL in TypeScript

    Project mention: Type-Safe Printf() in TypeScript | news.ycombinator.com | 2024-03-24

    There is an implementation of SQL that operates on a table shaped type, entirely at type level. For your amusement: https://github.com/codemix/ts-sql

    There are a bunch of more practical takes that codegen types from your database and generate types for your queries, eg: https://github.com/adelsz/pgtyped

    To me the second approach seems much more pragmatic because you don’t need to run a SQL parser in a fairly potato interpreter on every build

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • runtypes

    Runtime validation for static types

  • csstype

    Strict TypeScript and Flow types for style based on MDN data

  • react-complex-tree

    Unopinionated Accessible Tree Component with Multi-Select and Drag-And-Drop

  • monads

    Option, Result, and Either types for TypeScript - Inspired by Rust 🦀

  • typescript-runtime-type-benchmarks

    📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support

    Project mention: TypeScript please give us types | /r/typescript | 2023-07-08

    Has been heavily optimized, both in terms of its types and runtime performance. Even including the static parser, many types are about an order of magnitude more efficient than equivalent Zod. Early results show it as marginally faster than any validator currently published to typescript-runtime-type-benchmarks, not including more complex cases where (2) would give ArkType a much more significant advantage.

  • abitype

    Strict TypeScript types for Ethereum ABIs

  • typetype

    A programming language designed for typescript type generation

  • graphql-typed-document-node

    An improved version of `DocumentNode` for seamless TypeScript integration for GraphQL.

    Project mention: how to correctly specify query variable when generating TS types from graphql-typed-document-node? | /r/graphql | 2023-10-16

    When using graphql-typed-document-node to generate TS types from gql, I am getting errors when my query has variables.

  • type-plus

    Additional types and types adjusted utilities for TypeScript

    Project mention: Trying to Understand Copilot's Type Spaghetti | news.ycombinator.com | 2024-04-15

    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.

  • metatype

    Declarative API development platform. Build backend components with Typescript/Python/WASM, no matter where and how your (legacy) systems are.

    Project mention: Build declaratively back ends and APIs with GraphQL or REST | /r/hypeurls | 2023-08-14
  • nominal

    🔒 The new way to do types in typescript.

  • types.ts

    Shared TypeScript definitions for Octokit projects

  • type-level-regexp

    🔤🔍 Type-level RegExp, parse and match string in TypeScript type system.

    Project mention: Announcing TypeScript 5.1 Beta | /r/typescript | 2023-04-18

    Previously, we'd avoid comparisons against character sets whenever possible due to the performance impact, but this should open the door to tons of new functionality, including making detailed regex validation and inference viable (shout-out to David Tai who recently implemented a type-safe regex parser and is working on adding similar functionality to ArkType :-)).

  • fnts

    λ Minimal Functional Programming Utilities for TypeScript & JavaScript

  • nominal

    Powerful nominal types for your Typescript project (by Coder-Spirit)

  • knex-types

    Generate TypeScript definitions (types) from a PostgreSQL database schema.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-15.

TypeScript Types related posts

Index

What are some of the best open-source Type projects in TypeScript? This list will help you:

Project Stars
1 DefinitelyTyped 47,043
2 type-fest 13,145
3 Superstruct 6,797
4 io-ts 6,593
5 ts-toolbelt 6,406
6 ts-essentials 3,546
7 pgtyped 2,797
8 runtypes 2,545
9 csstype 1,673
10 react-complex-tree 749
11 monads 704
12 typescript-runtime-type-benchmarks 540
13 abitype 426
14 typetype 405
15 graphql-typed-document-node 369
16 type-plus 349
17 metatype 308
18 nominal 259
19 types.ts 113
20 type-level-regexp 106
21 fnts 79
22 nominal 67
23 knex-types 63
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com