Apollon77 / alexa-remote

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide TypeScript type definitions

BewhiskeredBard opened this issue · comments

Is your feature request related to a problem? Please describe.
It's painful to use pure JavaScript modules, like alexa-remote2, in a TypeScript project.

Describe the solution you'd like
The most thorough solution would be to rewrite this package in TypeScript, but I would find it sufficient for the package to include a set of TypeScript type definitions.

Describe alternatives you've considered
The only real alternative is for each TypeScript project that depends on alexa-remote2 to write their own type definitions.

Additional context
N/A

I'm not that firm in TS, but I'm happy to get a PR and provide details if needed. But know: Most responses are coming from Amazon, so defining types fr that might be hard and can break anytime.

Even if there were just type definitions for the main AlexaRemote class and its public methods, it would be a huge help. The Alexa responses could still be defined as unknown. Since I'm having to define some types anyway for my own uses, I'll see about putting together a simple PR to add them. No promises on timeline though.

great (and then you might still be faster then me) ;-)