Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON to TSNew to Visual Studio Code? Get it now.

JSON to TS

MariusAlchimavicius

|
432,286 installs
| (25) | Free
Convert JSON object to typescript interfaces
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

From clipboard

JSON to TS

Convert JSON object to typescript interfaces

Try it Online

Features

Convert from clipboard (Shift + Ctrl + Alt + V)

From clipboard

Convert from selection (Shift + Ctrl + Alt + S)

From selection

Optional quotes

Optional quotes

Converter

  • Array type merging (Huge deal)
  • Duplicate type prevention
  • Union types
  • Optional types
  • Array types

Known Issues

Command failed: xclip -selection clipboard -o


Solution: sudo apt-get install xclip

Happens when linux is missing clipboard packages

Links

  • Repo
  • Issues
  • Change log
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft