configuration of webstorm for typescript
Create Project Create a new node project.
Here is reference of project structure. https://github.com/jan-molak/debugging-typescript-with-webstorm
add package.json, tsconfig.json, and src folder.
tsconfig.json
{ "compilerOptions": { "declaration": true, "target": "es6", "module": "commonjs", "moduleResolution": "node", "noImplicitAny": true, "outDir": "./dist", "preserveConstEnums": true, "removeComments": false, "sourceMap": true, "inlineSources": true, "typeRoots" : ["./node_modules/@types"], "lib": [ "es6" ] }, "include": [ "src/**/*", "test/**/*" ], "exclude": [ "node_modules" ] } package.json
{ "name": "test", "version": "1.0.0", "description": "", "main": ".……