Fixed syntax errors at TypeScript