Fixed syntax errors at TypeScript (again)