Member-only story

Migrating a Javascript ExpressJS based to Typescript

Marcos Henrique da Silva
6 min readSep 28, 2021

In this article I will give a quick tips to convert your Javascript project to Typescript using a real sample.

Foto de cottonbro no Pexels

Hi everyone, recently I gave a look in a very nice article that talks about functional dependencies and compares the Node.JS way with .NET. In the article the Author Eduard Bargues creates a Git repo with the .NET and two Node.JS projects with Javascript. You can read his article here:

To start, I forked his repo and I am aiming to convert his Javascript code into Typescript from one of his sub-project that in this case is nodejs-functional-di.

The folder and file structure is defined as:

nodejs-functional-di structure

The project is small since he was aiming to show the usage of functional dependency injections in Node.JS, but at the same moment things there make sense. Let’s get started

Setting up Typescript easily

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (1)

Write a response