Open navigation menu

TypeScript Formatter

New here? Use the example below, then click Format.

Minified function
interface User{name:string;active:boolean}function greet(user:User):string{const msg=`Hello, ${user.name}!`;return msg;}const users:User[]=["Alice","Bob"].map(name=>({name,active:true}));
Formatted TypeScript
TeqSeq