README.md

December 15, 2025 · View on GitHub

to ts type

English | 简体中文

Convert the data results of copy to ts type. You can directly copy the structure defined by the backend or the requested json into obj, and then use the shortcut keys to convert it into a type. This way you will get a good type hint when writing front-end code.

demo

Notes:

  • Supports JSON with // and /* */ comments, and simple JS object literals.
  • Clipboard parsing is safe (does not execute code). If parsing fails, it falls back to string.

Keybindings

  • ctrl+alt+t or cmd+alt+t -> to ts type

:coffee:

buy me a cup of coffee

License

MIT

Sponsors