kotlinx-serialization-typescript-generator
kotlinx-serialization-typescript-generator copied to clipboard
KxsTsGen :: Generate TypeScript interfaces from Kotlin classes
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/adamko-dev/kotlinx-serialization-typescript-generator). ## Config Migration Needed - [ ]...
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [gradle/wrapper-validation-action](https://togithub.com/gradle/wrapper-validation-action) | action | major | `v2` -> `v3` | ---...
I have a use case here where kotlin have internal subclass ```kotlin @Serializable data class A(val c: C){ enum class C{ one } } @Serializable data class B(val c: C){...
This has a large scope. SerialDescriptors are not at all generic. It is probably impossible to get this information from KSX. 1. Generic fields ```kotlin class WrapperClass( val type: List...
The plugin will scan for all classes with `@Serializable`. It will convert each to a TypeScript definition. Nice extras 1. kxs-ts-gen is configurable 2. Add a `@TsExport` annotation so only...
Double and Int are both converted directly to `number`. This is confusing on the TypeScript side. ```kotlin @Serializable data class Position( val x: Double, val y: Double, val level: Int,...
If a client already has some standard type aliases, then I want to re-use those type aliases in my generated code. ```kotlin @Serializable data class Position( val x: Double, val...
- group docs into chapters - add KDoc wherever possible - update readme to include tuples - document generic types limitations - document 'brand type'
kxs-ts-gen should detect `@JsonDiscriminator`, and use the `@SerialName` as a hardcoded value ```kotlin @Serializable @JsonDiscriminator("type") sealed class SomeClass { val id: String } @SerialName("named") @Serializable data class NamedSomeClass( override val...
Ideally the test should work on all platforms, but getting the tests working on JVM and JS would be a good first step Requires some way of capturing log output...