Renamed form type to ref

This commit is contained in:
bskjon committed 2026-08-01 13:39:05 +02:00
1 parent 6ab2e4082e
commit db6f311bfb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ publishing {
if (name == "pluginMaven") {
groupId = "no.iktdev"
artifactId = "ts-gen"
version = dynamicVersion
version = project.version.toString()
}
}
}
@@ -32,7 +32,7 @@ class TsModelRenderer {
val inheritedPropNames = superClasses.flatMap { it.memberProperties }.map { it.name }.toSet()
val baseInterface = buildInterfaceString(cls, inheritedPropNames, extendsClause, null)
val unionType = "export type ${cls.simpleName}Type = $subTypes\n"
val unionType = "export type ${cls.simpleName}Ref = $subTypes\n"
return listOf(baseInterface, unionType).filter { it.isNotBlank() }.joinToString("\n")
}