{"repo":"vojtechhabarta/typescript-generator","free":true,"listed":false,"github":"https://github.com/vojtechhabarta/typescript-generator","clone":"git clone https://github.com/vojtechhabarta/typescript-generator.git","description":"Generates TypeScript from Java - JSON declarations, REST service client","language":"Java","stars":1219,"topics":["java","typescript","typescript-generator","json","jax-rs","maven-plugin","gradle-plugin","jackson"],"license":"MIT","category":"dev-tools","readme_excerpt":"Quick links: Configuration parameters Breaking changes Release notes Playground (beta) typescript-generator ==================== typescript-generator is a tool for generating TypeScript definition files (.d.ts) from Java JSON classes. If you have REST service written in Java (or another JVM language) using object to JSON mapping you can use typescript-generator to generate TypeScript interfaces from Java classes. For example for this Java class: typescript-generator outputs this TypeScript interface: Supported types include: - all Java primitive types with their corresponding wrappers (for example int and Integer , boolean and Boolean , etc.) - String - Date - enum - array - List and Map (including derived interfaces and implementation classes) - customized type mapping For more details see Type Mapping Wiki page. Note: typescript-generator works with compiled classes using Java reflection. It doesn't use source files (except for Javadoc feature). In Maven plugin this means either classes compiled from source files in the same module or classes added using element. Maven ----- In Maven build you can use typescript-generator-maven-plugin like this: More complete sample can be found here. Detailed description how to configure typescript-generator-maven-plugin is on generated site. Gradle ------ In Gradle build you can use cz.habarta.typescript-generator plugin like this: build.gradle For the Kotlin Gradle DSL you can alternatively use the cz.habarta.typescript-generator plugin ","default_branch":null,"files":null,"tree":[],"storefront":"/r/vojtechhabarta","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vojtechhabarta/typescript-generator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}