TypeScript Playground

Free

by TypeScript Playground

Provided by TypeScript Playground

Not yet rated
Platform
Web
Pricing
Free
Account required
No
Ads
None
Last verified
19 hours ago
Developer
TypeScript Playground
Official URL

Overview

The TypeScript Playground is the official in-browser editor on the TypeScript website, run by Microsoft. You type TypeScript or JavaScript on the page and the compiler checks it as you go, which makes it the quickest way to try a language feature, reproduce a type error or show someone a small example without setting up a project.

A toolbar across the top lets you pick the TypeScript version, run the code, and open a TS Config panel where you choose the editor language (TypeScript, TypeScript definitions or JavaScript) and compiler settings. Compiler flags are stored in the page address, and the built-in Examples menu uses that to open samples such as generic functions, async and await, mapped types or TypeScript with React with the right settings already applied.

The Share and Export menus are aimed at bug reports and teaching: you can copy the playground as a Markdown link or a ready-made Markdown issue, tweet a link, or send the code on to the TypeScript AST Viewer, the Bug Workbench, CodeSandbox or StackBlitz. When checked, the page also carried a notice that a new Playground with TypeScript 7 and multi-file projects is available at a separate address on the same site.

Features

  • Edits and type-checks TypeScript or JavaScript in the browser
  • Version picker for trying code against different TypeScript releases
  • TS Config panel for compiler options and editor language
  • Run button for executing the code
  • Examples menu with TypeScript and JavaScript samples that preset compiler flags
  • Export as Markdown link or Markdown issue, or to CodeSandbox and StackBlitz
  • Opens code in the TypeScript AST Viewer or Bug Workbench
  • Settings for light or dark colours and a choice of code fonts

Privacy

See the official privacy policy. The Playground is part of the TypeScript website, which links to the Microsoft privacy policy and terms of use.

Pros & Cons

Pros

  • Official tool from the TypeScript team, on the TypeScript site
  • Nothing to install and no account
  • Compiler settings travel with the link, which suits bug reports
  • Large set of worked examples built in

Cons

  • Meant for small snippets, not whole projects; multi-file support is in a separate new Playground
  • No saved workspace: your code lives in the link you share
  • The page is heavy and has to download the compiler before it is ready

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Code Playgrounds · JSFiddle

    An online code editor and playground for HTML, CSS, and JavaScript.

    Not yet rated
    Freemium Web
  • Code Playgrounds · CodePen

    A social code playground for front-end code.

    Not yet rated
    Freemium Web
  • Code Playgrounds · JS Bin

    A collaborative JavaScript, HTML, and CSS playground.

    Not yet rated
    Open Source Web
  • Code Playgrounds · PlayCode

    A fast online JavaScript playground with live preview.

    Not yet rated
    Freemium Web