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