Runtime TypeScript types change everything

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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    Maybe Deepkit's bytecode compiler (https://github.com/microsoft/TypeScript/issues/47658) could be a candidate for being a standard though.

  • marshal.ts

    A new full-featured and high-performance TypeScript framework

    Both work out of the box very well with Deepkit. You can either construct your own types in runtime or mix TS types with runtime information. See for example https://github.com/deepkit/deepkit-framework/blob/master/packages/framework/src/crud.ts where this is done

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

  • ttype-safe

    TypeScript runtime type validator generator that creates validation functions from TypeScript types with custom validation rules defined using JSDoc comments.

    It'd been nice to learn about this before, I did something similar to what you got here. Still very WIP, but we're using it at work and the results are excellent. I'll keep an eye on this one!

  • typia

    Super-fast/easy runtime validations and serializations through transformation

    This sounds kind of similar to a library called Typia (https://github.com/samchon/typia), both seem to be able to serialize TS types and share API to some extent.

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