Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TypeScript Interface GeneratorNew to Visual Studio Code? Get it now.
TypeScript Interface Generator

TypeScript Interface Generator

topporo

|
2,178 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Typescript Interface Generetor

Interface generator of TypeScript used on Visual Studio Code.

It creates an interface for arguments that are untyped objects and annotates them as types.

The interface is created based on the signature of all class, interface and object literals imported into the active source file.

If the signature is not uniquely determined, the user chooses which signature to adopt.

Usage

  1. Open Command Palette.
  2. Select "Interface Generate in TypeScript"
  3. A list of untyped arguments in the active source file is displayed, so select the argument for which you want to create an Interface.
  4. Candidates for signatures of properties referenced by arguments in functions or methods may be displayed. In that case, choose the appropriate signature.
  5. Enter the name of the Interface.
  6. The type is automatically annotated as the argument, and the generated Interface Declaration Statement is copied to the clipboard.
  7. Paste interface Declaration Statement.

Demo

demo

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft