Cómo usar Formateador de TypeScript
- Pega el TypeScript.
- Copia el resultado.
Sobre Formateador de TypeScript
Aplica indentación y formato consistente a TypeScript.
Formatea TypeScript para que sea legible.
Aplica indentación y formato consistente a TypeScript.
No. It checks syntax only. A type error will not stop the formatting.
The tool uses the Prettier engine and its defaults, so yes, apart from the options you change here.
Paste JSX inside TypeScript and it is formatted too. For plain React code, the Babel Formatter is the better fit.
The formatting engine for this language is downloaded the first time you use it, then cached by your browser. After that, formatting is instant and nothing leaves your machine.