A smart typescript helper.
-
根据
JSON
解析出TypeScript Interface
-
Parse
TypeScript Interface
fromJSON
-
并添加
export
-
And add
export
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
-
添加自定义或默认快捷键(欢迎给出建议),开放更多参数,如前缀...
-
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 toexport const json = {}