/ts-smart

a typescript smart tool.

Primary LanguageTypeScript

TS Smart

A smart typescript helper.

Email

Github

VSCode

Function

  • 根据 JSON 解析出 TypeScript Interface

  • Parse TypeScript Interface from JSON

skip.gif

  • 并添加 export

  • And add export

skip.gif

Start Use

1、选中需要解析的 JSON

1、Select the JSON that you want to parse.

2、ctrl+shift+p

3、input TS Smart: typeof json or TS Smart: typeof json export

TODO List

  • 添加自定义或默认快捷键(欢迎给出建议),开放更多参数,如前缀...

  • Add custom or default shortcut keys (suggestions are welcome), open more parameters such as prefix...

  • 根据 export const json = {} 自动识别是否添加 export

  • Automatically identify whether to add export according to export const json = {}