TypeScript's Blessing: JSON To Interface

When using TypeScript, we need to write a lot of Interfaces.

But a JSON data object often has too many fields. Writing them one by one takes a lot of time.

When promoting TypeScript within a team, usage issues often create obstacles, and it’s not uncommon to eventually abandon it.

Today I recommend this plugin, hope it helps you.

JSON to TS Plugin

Installation

ext install json-to-ts

Copy to clipboard then run shortcut (Ctrl + Alt + V)

Select text then run shortcut (Ctrl + Alt + S)

Known Issues

Linux Known Issues

Command failed: xclip -selection clipboard -o

Solution

sudo apt-get install xclip

Article Link:

/en/archive/json-to-interface/

# Related Articles