I wrote a type for enforcing some type safety on 'path strings'. StackBlitz link in comments.

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
  • graphql-utils

    Utilities and helpers to make working with GraphQL.js based APIs simpler.

  • If you would like to see how I've gone about implementing it so far, I opened a new branch, keymap, in the GraphQL-Utils GitHub repository and if you happen to have any input on those problems I mentioned I'd really appreciate it!

  • type-fest

    A collection of essential TypeScript types

  • This may be a good addition to type-fest. There's a similar Get type in there, but I think this is a little bit different.

  • 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
  • ts-toolbelt

    👷 TypeScript's largest type utility library

  • Since posting this, some comments have made me aware that ts-toolbelt has this feature and a couple other really useful ones built in. So their source code could be worth skimming through to see how they did things.

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