问题
I am trying to import Howler inside my angular 2 app, but it does not have a typings file. I am confused and have been searching for the answer, but cannot find anything. How do I go about importing "howler" inside my component without a typings file?
回答1:
Try DefinitelyTyped typings definition for howler.
Here is the repo on GitHub where you can find howler.d.ts
Here is the npm package info
TypeScript v2 use following command to install
npm install --save @types/howler
If you have any question, post in their Gitter chat
来源:https://stackoverflow.com/questions/41194942/trying-to-import-an-npm-module-howler-in-angular-2-app