Using JS library installed via npm in Typescript Angular 2 project
问题 I don't manage to use cal-heatmap in my Angular2 project written in TypeScript. Any help on how to get this going would be appreciated. I am using webpack (webpack.config.js) to bundle the application. Here is the ts.config. I installed cal-heatmap with npm and type definitions with tsd. In my application's TypeScript code I would do like: import * as calheatmap from 'cal-heatmap'; However, when I open the application in a browser calheatmap remains undefined and nothing is imported. The