Shalaga44
10/13/2024, 10:04 AMpackage com.project.common.dto
class LoginRequestDto(
val etc: String
)
With the missing-annotations-therapist plugin configured as follows:
configure<MissingAnnotationsTherapist> {
annotations = listOf(
Annotate(
annotationsToAdd = listOf(Annotation(fqName = "kotlin.js.JsExport")),
packageTarget = listOf(PackageTarget(pattern = "com.project.common.dto")),
classTargets = listOf(ClassTypeTarget.REGULAR_CLASS),
sourceSets = listOf("commonMain", "jsMain"),
),
)
}
The transformed code will include the specified annotation:
package com.project.common.dto
@kotlin.js.JsExport
class LoginRequestDto(
val etc: String
)
🔗 Check it out on GitHub
I’d love to hear your feedback and suggestions. Let me know what you think!