How to use it
Format and beautify TypeScript and TSX with Prettier, with options for line width, indent, semicolons, quotes and trailing commas. Paste or edit TypeScript above; the formatted result updates as you type.
Example
Input: interface User{id:number}
Output:
interface User {
id: number;
}Limits and behavior
- TypeScript and TSX syntax errors include a line and column.
- Input is limited to 1 MiB of UTF-8 text.