Skip to content

Commit ee2f3d1

Browse files
committed
rm unneeded TsTypeRef.Unknown
1 parent ac2cafa commit ee2f3d1

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

modules/kxs-ts-gen-core/src/commonMain/kotlin/dev.adamko.kxstsgen/KxsTsSourceCodeGenerator.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ abstract class KxsTsSourceCodeGenerator(
268268
typeRef.id.name
269269
}
270270
}
271-
272-
is TsTypeRef.Unknown -> generateTypeReference(typeRef.ref)
273271
}
274272

275273
return buildString {

modules/kxs-ts-gen-core/src/commonMain/kotlin/dev.adamko.kxstsgen/tsElements.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@ sealed interface TsTypeRef {
9898
override val nullable: Boolean,
9999
) : TsTypeRef
100100

101-
// /** A property within another declaration (e.g. an enum value, or type within a namespace) */
102-
// data class Property(
103-
// val id: TsElementId,
104-
// val declaration: Declaration,
105-
// override val nullable: Boolean,
106-
// ) : TsTypeRef
107-
108-
object Unknown : TsTypeRef {
109-
val ref: Literal = Literal(TsLiteral.Primitive.TsUnknown, false)
110-
override val nullable: Boolean by ref::nullable
111-
}
112-
113101
}
114102

115103

0 commit comments

Comments
 (0)