← Back to Kairo Docs|API Reference (Dokka)

checkResult

fun <T> checkResult(result: T?, type: KairoType<T>)

Ensures that the result matches the expected type. The primary purpose is shim support for Kotlin's nullability guarantees.

Adapted from com.fasterxml.jackson.module.kotlin.checkTypeMismatch.