TypeScript Enum Generator
Turn a pasted list of values into a TypeScript enum, const enum, as-const object, or union type. Auto-sanitizes member names into valid identifiers (handles spaces, punctuation, and digit-leading values), picks a key casing style, and can add JSDoc comments, a type guard, a values array, or a reverse-lookup map.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Values (one per line or comma-separated)
Enum Name
Key Naming Style
pascal, screaming, camel Output Format
string, numeric, const, asconst, union Add export keyword
Add JSDoc comments
Generate type guard function
Generate array of all values
Generate reverse mapping helper
Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.