jsty
JSON to TypeScript type converter
Default
$ ./target/release/jsty Personal <<EOF
{
"name": "reon",
"age": 25,
"jobs": [
"YouTuber",
"TikToker"
],
"address": {
"prefecture": "東京都",
"city": "港区"
}
}
EOF
interface Personal {address: {city: string;prefecture: string;};age: number;jobs: string[];name: string;}
Pretty
$ ./target/debug/examples/pretty Personal <<EOF
{
"name": "reon",
"age": 25,
"jobs": [
"YouTuber",
"TikToker"
],
"address": {
"prefecture": "東京都",
"city": "港区"
}
}
EOF
interface Personal {
address: {
city: string;
prefecture: string;
};
age: number;
jobs: string[];
name: string;
}