I'm looking for a simple tool to do a simple thing: convert a JSON object to a typescript type or interface.
For instance given one of these: https://api.github.com/users/octocat
I'd like to copy and paste that into the tool and get a structure like this:
export interface GitProfile {
login: string;
id: number;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
...other_parts: part_types;...
}
This seems pretty straight forward so I'm crossing my fingers someone already made the tool and I just can't find it. Tempted to make one myself, though I'm a pretty novice programmer and it might take time.
