TypeScript is not really supported but trying not to break it

Fixes #552