JavaScript Type Definitions and NPM Packages

in NodeJS

Strong Type or Not

I enjoy writing JavaScript without depending on strong type definitions, but if you can somehow understand the parameter expectaction of a function, than it is realy helpful during development, even that function accepts any type of parameter(s).

Most JavaScript editors are capable of showing coding information, while you are writing. Even though, _vi_ (vim) is my favorite, default vim is lacking of high level productivity tools. Currently, I am using Visual Studio Code (VSCode), which is working on all well know OS and has great addons like code highlighting, code snippets and intellisense.

On the other hand, having a good ide is not always enough, if the JavaScript code written as npm package or module does not contain a good type definition file. So while developing NodeJS and use well know packages, I can navigate to source code by clicking F12 on VSCode. Than curiosity take over the job and I started to investigate what is the best practive of doing this.
Continue reading

  • page 1 of 1
Author's picture

Volkan N. Metin

Father of 2 beautiful kids
Computer Engineer
Software Development Adventurer


Software Development Manager


Istanbul, TR