As at all times, the reply is in the precise tooling. First, I change from Atom to VS Code. Atom is nice. It has the very best ergonomy and developer expertise. VS Code falls far after Atom. Nonetheless, the VS Code has a higher ecosystem of plugins and higher help. Secondly, I began utilizing TypeScript with my tasks. You see, TypeScript has these two compiling choices:
@sorts/library-name package deal that mechanically masses the library sorts.
So let’s have a look into how such configuration may appear like. The one I’m utilizing most frequently is as follows (tsconfig.json file):
“lib”: [“es2017”, “dom”],
“include”: [ “**/*.js”,]
Then I set up the
typescript library as a dev dependency of my undertaking.
Et voila. The second you import any library, and this library has outlined sorts, you’ll mechanically get help for TypeScript.