Trying to convert a node express project to use typescript, how to go about it given that many of the dependencies don't support typescript

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

    ✉️ Send e-mails with Node.JS – easy as cake!

  • Do you mean this mailer which was last updated 10 years ago? I'd have to assume there's a similar library that was updated a bit more recently which would be better and have typescript definitions. Maybe nodemailer?

  • typescript-eslint

    :sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript

  • I'd say converting a project to TypeScript is always a huge task. To use TypeScript most effectively, you need to be very strict. Both with the strict: true compiler flag but also with the typescript-eslint plugin. You get the most value out of using TypeScript when you have really precise types which take time to get right, especially when you are first learning. It's easy to give yourself a false sense of security in your code as a result of writing bad/incorrect types. So I recommend enabling all of the strict rules and linter rules before you get started as they'll help put guard rails in for most of the things you shouldn't do.

  • 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