zerobias / telegram-mtproto

Telegram client api (MTProto) library
MIT License
617 stars 136 forks source link

Fix tsc compilation with --strict #148

Closed koloboid closed 6 years ago

koloboid commented 6 years ago

For libraries, it's always best to specify a return type in the TS typings Added void return type to "on" functions

Actually, I dont know what the right branch for this

zerobias commented 6 years ago

Hmm, looks like we missed that in all branches) Added this in master for beginning, thanks 👍