Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TS type to clipboardNew to Visual Studio Code? Get it now.
TS type to clipboard

TS type to clipboard

lwkchan

|
1,142 installs
| (2) | Free
Highlight JS object and generate TS interface in clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

make-a-type

This extension is available on the VSCode Marketplace.

I made this because the other available extensions which convert JS to TS either required you to use a JSON object or they created a separate TS file. This extension does not require you to use JSON and captures the TS type in your clipboard so that you can paste it anywhere you want.

Features

  • Highlight a JS Object, and get a TypeScript interface in your clipboard

make-a-type demo

Requirements

  • VS Code 1.44 or higher

Usage

  1. Highlight your JS object
  2. Open command pallette (Ctrl/Cmd-Shift-P)
  3. Search for "Make JS Object into TS Type: clipboard"
  4. Select option
  5. TS type is now in your clipboard, now paste it wherever you want to
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft