What's the most insane/complex type definition you wrote?

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • DefinitelyTyped

    The repository for high quality TypeScript type definitions.

  • I wrote DefinitelyTyped type definitions for a small library named vhtml. To get the type checks for JSX attributes and children to work properly, I had to mess with the JSX.IntrinsicElements interface, and its lesser-known cousin, JSX.LibraryManagedAttributes. It's nothing impressive in terms of complexity, but took a lot of fiddling to get it to work correctly. Mostly because TypeScript's JSX support is tailored for React and doesn't quite agree with Preact & other JSX inplementations.

  • ts-sql

    A SQL database implemented purely in TypeScript type annotations.

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

    SurveyJS logo
  • adt-ts

    TypeScript library inspired by PureScript

  • I ported a lot of Purescript typeclasses and functions into Typescript: https://github.com/nadameu/adt-ts

  • redux-toolkit

    The official, opinionated, batteries-included toolset for efficient Redux development

  • We've got some fun definitions over in Redux Toolkit, particularly for createAction and createSlice. For that matter, createAsyncThunk has some bizarre typedefs to support a form of "optional generics"

  • light-client

    The Raiden Light Client

  • Interesting. We use Redux in our project, and independently wrote something close to you guys, but using io-ts to provide runtime validation capabilities to our action creators, and our createReducer helper uses some TS blackmagic to prevent one from registering an action twice on the same reducer at compile-time! Good job there =)

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

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts