Skip to content

TypeScript

Edit and run TypeScript with type syntax stripped in the sandbox.

The TypeScript editor opens .ts text files with syntax highlighting, search, history, line wrapping, and code folding.

Interactive TypeScript editorEdit and Run TypeScript — types are stripped in the sandbox. Nothing here is saved to a tray.

Run strips the TypeScript-only syntax (type annotations, interfaces, and the like) and executes the resulting JavaScript in the same sandboxed runner used for .js files. Console output streams into the panel below the editor, and Run becomes Stop while it executes.

Worktray does not run a type checker. Stripping types is not the same as verifying them, so code can run here even when a separate tsc check would report a type error. Treat successful execution as “it ran”, not “it type-checks”.

The runner has no DOM and cannot access Worktray’s origin, localStorage, or IndexedDB — see the JavaScript editor for the full sandbox description.