palindromed / Bot-HandOff

MIT License
103 stars 79 forks source link

Errors with strict type-checking #33

Open daneeq opened 6 years ago

daneeq commented 6 years ago

Hi,

I was experimenting with your library and I'm having trouble integrating it with my typescript code.

If I simply take the code in the current master and try to compile it with tsc, I get a large number of type-checking errors, ranging from implicit any to Object is possibly 'undefined to forbidden parameter assignments. I have set my tsconfig.json to "strict" = true as per recommended best practices.

As an alternative, I considered using your npm package but it didn't seem to contain the type definitions, so I would lose all the type-checking benefits after integration.

If I use it as normal javascript, everything works fine.

Thanks, Dan