All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.domain.Klip.kt Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package dev.petuska.klip.core.domain

import kotlin.jvm.Transient
import kotlin.reflect.KType
import kotlin.reflect.typeOf

public typealias Klips = Map>
public typealias MutableKlips = MutableMap>

public data class Klip(
  @Transient
  val type: KType,
  val data: @Serializable T,
  val attributes: Map,
)

@Suppress("FunctionNaming")
public inline fun  Klip(
  data: T,
  attributes: Map = mapOf(),
): Klip = Klip(data = data, attributes = attributes, type = typeOf())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy