DEV Community

Cover image for JS To TS(vscode plugin)
AKclown
AKclown

Posted on • Updated on

JS To TS(vscode plugin)

**Function 1: **Convert API return data to typescript type declaration.PS: Automatically assign the type content to the clipboard
Image description

Function 2:  convert objects of JavaScript to typescript type declaration.
Image description

Function 3:  a plug-in that converts the type provided by the Swagger document to the typescript type automatically.
Image description

Settings plane
Image description

Keyboard shortcuts configuration.

  • Default button configuration (window & mac)
  • Object conversion operation ctrl+shift+j (Function 1)
  • Swagger conversion operation ctrl+shift+k (Function 2)
  • You can also make customize settings in the shortcut key setting interface.
  • - PS: [js to ts]https://github.com/AKclown/js-to-ts

Top comments (0)