Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kotlin Annotation Customization #148

Open
snowsignal opened this issue Oct 25, 2023 · 0 comments · May be fixed by #151
Open

Support Kotlin Annotation Customization #148

snowsignal opened this issue Oct 25, 2023 · 0 comments · May be fixed by #151
Labels
feature-request A request for a new feature high-priority This issue takes precedent over ones that don't have this label

Comments

@snowsignal
Copy link
Contributor

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 snowsignal added feature-request A request for a new feature high-priority This issue takes precedent over ones that don't have this label labels Oct 25, 2023
@czocher czocher linked a pull request Nov 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a new feature high-priority This issue takes precedent over ones that don't have this label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant