to-typescript-interface
to-typescript-interface is a VSCode Extension, Convert Java DTO To TypeScript Interface.
Usage
- vscode install
to-typescript-interface extension
- Press command
- Mac
command + shift + p
- Windows
ctrl + shift + p
- input
to ts
- Press Enter Key
Example
input java class:
public class Model {
/**
* 年龄
*/
private Integer age;
private String name;
};
output typescript interface:
export interface Model {
/**
* 年龄
*/
age?: number;
name?: string;
};
About
Enjoy!
| |