Pixilab
Home › Companies › Show HN launch › Gen-ts-type – Code Generate TS Type from JSON data with collapsed field

Gen-ts-type – Code Generate TS Type from JSON data with collapsed field

Show HN: Gen-ts-type – Code Generate TS Type from JSON data with collapsed field

Based, Gen-ts-type – Code Generate TS Type from JSON data with collapsed field works in show hn launch.

Profile

I built a tool to generate TypeScript types from JSON/JS data, initially to tackle the deeply nested arrays in for a few JSON RPC API (e.g., array[0].content.section.contents[0].item.contents[0] could be a aItem or bItem). Some existing tools generate named union types at every level, which can get messy. This tool automatically converts fields to optional at the right depth, making the types cleaner and easier to use.Features: - Web UI: Paste JSON, get TypeScript types instantly - CLI or importable in TypeScript projects - Handles complex types (nested objects, arrays, etc.) - Supports optional fields and union types where neededTry the Web UI: https://gen-ts-type.surge.shAlso published on

The company sits in the show hn launch segment, where it competes on its core product or service.

It is recorded at the Show HN launch stage.

SectorShow HN launch
StageShow HN launch

Website: gen-ts-type.surge.sh

Browse related

Sign in to view the contact information we hold for Gen-ts-type – Code Generate TS Type from JSON data with collapsed field.
Create a free account