Paste TypeScript and get it formatted with consistent style.
The code is parsed with the TypeScript parser and printed with Prettier's rules, which cover type annotations, interfaces, union and intersection types, generics, enums, abstract classes, decorators and JSX in TSX files.
Options for indentation, quote style and semicolons let you match the conventions of your project. Parse errors are reported with their position.
No. It checks syntax only, not whether types are correct.
Yes, along with abstract classes, namespaces and other TypeScript specific syntax.
TypeScript is a superset, so valid JavaScript works too, though the JavaScript Formatter is the more direct choice.