Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>interface-transform-mcyNew to Visual Studio Code? Get it now.

interface-transform-mcy

mochenyin

|
13 installs
| (0) | Free
transform api json into ts interface
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

interface-transform README

This is the README for your extension "interface-transform".

Features

根据Swagger生成的接口文档,转换成前端typescript里的interface

使用步骤

1.启动:ctrl+shift+P或者cmd+shift+P,选择interface-transform: start
2.选中Swagger文档中接口的模型json,右键选择interface-transform: transform Selection,转换选中文本
3.右键选择interface-transform: transform Clipboard,转换剪贴板文本

Extension Settings

默认配置:

  • InterfaceTransform.indent: 默认缩进4
  • InterfaceTransform.semicolonEnd: interface结尾是否添加分号,默认否

Release Notes

0.0.1

Initial release of ...


  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft