Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

TypeScript String Union Builder

Turn a list of allowed values into an escaped TypeScript string-literal union, removing duplicate entries locally.

Private browser workspace● Runs in your browser
01 Your input
02 Your result

How to use TypeScript String Union Builder

  1. Paste the input or use the example.
  2. Adjust any options and run the tool.
  3. Review, copy or download the result.

Example

draft
published
archived
draft

Capabilities and limits

Up to 10,000 lines. Leading and trailing whitespace and blank lines are removed; duplicates are case-sensitive. Produces a type declaration, not runtime validation. Type names must start with an uppercase letter.

Local processing

The tool processes your pasted input on this device. It does not send that input to a FeuTex processing server. Download your result before closing this page.