File tree Expand file tree Collapse file tree 7 files changed +5
-7
lines changed
modules/kxs-ts-gen-core/src/commonMain/kotlin/dev.adamko.kxstsgen Expand file tree Collapse file tree 7 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
package dev.adamko.kxstsgen
2
2
3
3
import dev.adamko.kxstsgen.util.MutableMapWithDefaultPut
4
- import kotlinx.serialization.InternalSerializationApi
5
4
import kotlinx.serialization.KSerializer
6
5
import kotlinx.serialization.descriptors.PolymorphicKind
7
6
import kotlinx.serialization.descriptors.PrimitiveKind
@@ -21,7 +20,7 @@ fun interface SerializerDescriptorsExtractor {
21
20
): Set <SerialDescriptor >
22
21
23
22
24
- object Default : SerializerDescriptorsExtractor {
23
+ object Default : SerializerDescriptorsExtractor {
25
24
26
25
override operator fun invoke (
27
26
serializer : KSerializer <* >
Original file line number Diff line number Diff line change 1
1
package dev.adamko.kxstsgen
2
2
3
-
4
3
import kotlinx.serialization.descriptors.PolymorphicKind
5
4
import kotlinx.serialization.descriptors.PrimitiveKind
6
5
import kotlinx.serialization.descriptors.SerialDescriptor
@@ -9,6 +8,7 @@ import kotlinx.serialization.descriptors.StructureKind
9
8
import kotlinx.serialization.descriptors.elementDescriptors
10
9
import kotlinx.serialization.descriptors.elementNames
11
10
11
+
12
12
fun interface TsElementConverter {
13
13
14
14
operator fun invoke (
Original file line number Diff line number Diff line change 1
1
package dev.adamko.kxstsgen
2
2
3
-
4
3
import kotlinx.serialization.descriptors.PolymorphicKind
5
4
import kotlinx.serialization.descriptors.PrimitiveKind
6
5
import kotlinx.serialization.descriptors.SerialDescriptor
7
6
import kotlinx.serialization.descriptors.SerialKind
8
7
import kotlinx.serialization.descriptors.StructureKind
9
8
9
+
10
10
fun interface TsElementIdConverter {
11
11
12
12
operator fun invoke (descriptor : SerialDescriptor ): TsElementId
Original file line number Diff line number Diff line change 1
1
package dev.adamko.kxstsgen
2
2
3
-
4
3
import kotlinx.serialization.descriptors.PolymorphicKind
5
4
import kotlinx.serialization.descriptors.PrimitiveKind
6
5
import kotlinx.serialization.descriptors.SerialDescriptor
Original file line number Diff line number Diff line change 1
1
package dev.adamko.kxstsgen
2
2
3
-
4
3
import kotlinx.serialization.descriptors.PolymorphicKind
5
4
import kotlinx.serialization.descriptors.PrimitiveKind
6
5
import kotlinx.serialization.descriptors.SerialDescriptor
Original file line number Diff line number Diff line change 1
1
package dev.adamko.kxstsgen
2
2
3
+
3
4
@Target(
4
5
AnnotationTarget .CLASS ,
5
6
AnnotationTarget .PROPERTY ,
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ sealed interface TsTypeRef {
128
128
data class Literal (
129
129
val element : TsLiteral ,
130
130
override val nullable : Boolean ,
131
- ) : TsTypeRef
131
+ ) : TsTypeRef
132
132
133
133
134
134
data class Declaration (
You can’t perform that action at this time.
0 commit comments