gauseen / to-typescript-interface

Convert Java DTO To TypeScript Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 100.0%