miguelmota / alexa-voice-service.js

Library for interacting with Alexa Voice Service (AVS) in the browser.
https://lab.miguelmota.com/alexa-voice-service
MIT License
131 stars 79 forks source link

How to import in Typscript project like Angular2? #5

Closed ladvishal1985 closed 7 years ago

ladvishal1985 commented 8 years ago

How to import in Typscript project like Angular2. I am using systemjs and we try to use this example for a POC. Would you be able to guide me on correct way to import in Angular2

aluanhaddad commented 7 years ago

It should be

import AVS from 'alexa-voice-service';

If you are using SystemJS with jspm, that will be sufficient.

If you are using SystemJS via npm and have a systemjs.config.js file, you will want to add an entry to the "map" section.

There is an @types package being worked on.