Skip to content

gauseen/to-typescript-interface

Repository files navigation

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

Demo

input java class:

public class Model {
  /**
   * 年龄
   */
  private Integer age;

  private String name;
};

output typescript interface:

export interface Model {
  /**
   * 年龄
   */
  age?: number;

  name?: string;
};

About

Enjoy!

About

Convert Java DTO To TypeScript Interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published