Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Generate Typescript/Go/Rust types from Java

License

NotificationsYou must be signed in to change notification settings

SharedType/sharedtype

Repository files navigation

GitterCIMaven Central

SharedType - Sharing Java Types made easy

From Java:

@SharedTyperecordUser(Stringname,intage,Stringemail) {}

To Typescript:

exportinterfaceUser{name:string;age:number;email:string;}

Go (Planed):

typeUserstruct {NamestringAgeintEmailstring}

Rust:

pubstructUser{name:String,age:i32,email:String,}

Features

  • Java8 support.
  • Generics support.
  • Constant support.
  • Client source dependency is only@SharedType retained at source code level.
  • SharedType AP jar <150KB, only 2 small dependencies: jsr305 annotations andmustache.
  • Parsing takes milliseconds with-proc:only.
  • Intuitive defaults, put@SharedType and there you go. Global + class level options.

Documentation

Similar Projects

Authors

Cause Chung (cuzfrog@gmail.com), Jeremy Zhou (hb.zhou.jeremy@gmail.com)

License

CC BY 4.0CC BY 4.0


[8]ページ先頭

©2009-2025 Movatter.jp