Amazebot / bbot

An adaptable conversation engine for building bespoke bots.
MIT License
55 stars 2 forks source link

Make Typescript implicit return types consistent #88

Closed timkinnane closed 6 years ago

timkinnane commented 6 years ago

At the start of the project I thought it was preferable to declare explicit return types, to allow type checking to ensure the method did what it was intended to do.

Later, I found it was better to use implicit return types, for reasons I'm still not well versed enough to really communicate.

It would be worth refactoring at some point to set consistent patterns using implicit types. Probably easier for contributing too.

timkinnane commented 6 years ago

38491fe