typeshare icon indicating copy to clipboard operation
typeshare copied to clipboard

Support Kotlin Annotation Customization

Open snowsignal opened this issue 1 year ago • 0 comments

Kotlin should have both inline and .toml-level configuration to support annotations on types, similar to how Swift supports decorators.

For example:

#[typeshare(kotlin(annotations = "Serializable, Immutable, Parcelize"))]
struct MyType {
  value: String
}

becomes:

@Serializable
@Immutable
@Parcelize
data class MyType {
  val value: String,
}

snowsignal avatar Oct 25 '23 03:10 snowsignal