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

interface-transform-mcy

mochenyin

|
44 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 Schema 3.右键选择interface-transform: transform Selection,转换选中文本(文本需符合JSON Schema格式)
4.右键选择interface-transform: transform Clipboard,转换剪贴板文本(文本需符合JSON Schema格式)

Extension Settings

默认配置:

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

Release Notes

0.0.1

Initial release of ...


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