What is the role of TypeScript in Angular?