TypeScript: fixed syntax, it wasn't TypeScript at all