Skip to main content

Getting Started

kotlin-tsgen is published to Maven Central.

Be sure to apply the Kotlinx Serialization plugin.

Adding a dependency

plugins {
kotlin("jvm") version "2.3.0"
kotlin("plugin.serialization") version "2.3.0"
}

dependencies {
implementation("io.github.esafak.kotlintsgen:kotlin-tsgen-core:0.2.5")
}

Usage

See Docs for examples of how to generate TypeScript interfaces from Kotlin classes.