- Notifications
You must be signed in to change notification settings - Fork2
Generate Typescript/Go/Rust types from Java
License
NotificationsYou must be signed in to change notification settings
SharedType/sharedtype
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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,}
- 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.
Cause Chung (cuzfrog@gmail.com), Jeremy Zhou (hb.zhou.jeremy@gmail.com)
About
Generate Typescript/Go/Rust types from Java
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published