From c34ffe62fae253270d51a501c14d40605515f97f Mon Sep 17 00:00:00 2001 From: Jeff Hudson Date: Thu, 6 Feb 2025 20:19:21 -0500 Subject: [PATCH] Add util function to create Kairo types (#430) --- kairo-reflect/src/main/kotlin/kairo/reflect/KairoType.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kairo-reflect/src/main/kotlin/kairo/reflect/KairoType.kt b/kairo-reflect/src/main/kotlin/kairo/reflect/KairoType.kt index 88535ee58..1e902cdfa 100644 --- a/kairo-reflect/src/main/kotlin/kairo/reflect/KairoType.kt +++ b/kairo-reflect/src/main/kotlin/kairo/reflect/KairoType.kt @@ -5,6 +5,7 @@ import kotlin.reflect.KClass import kotlin.reflect.KType import kotlin.reflect.full.allSupertypes import kotlin.reflect.jvm.javaType +import kotlin.reflect.typeOf @Suppress("UseDataClass") public class KairoType( @@ -27,3 +28,6 @@ public class KairoType( } } } + +public inline fun kairoType(): KairoType = + KairoType(typeOf())