TypeScript definition updates to help fix for the `noimplicitany` option (thanks @Waog #1088)