Trying to import an npm module (Howler) in Angular 2 app

2.7k views Asked by At

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

There are 1 answers

1
display name On BEST ANSWER

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