TypeScript Create Arrays / Data based off of Interfaces

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

    MongoDB object modeling designed to work in an asynchronous environment.

  • But you can implement the same idea without the (base) source of truth being a TS interface. You could write or generate a schema in a format that can be used by both frontend and backend, and derive as much as you can (including the TS interface) from that. Heck if the input for a Mongoose schema is as basic as it looks in your example, you might even be able to use that (it looks like Mongoose might have TS inference for schemas soon).

  • ts-transformer-keys

    A TypeScript custom transformer which enables to obtain keys of given type

  • Wow, after researching this for an hour, it looks like it's actually possible! Check this out.

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