suspend fun <reified T> RuntimeDomain.evaluateJs(js: String): T?
Evaluates the given js expression, and returns the result as a value of type T.
The value is converted from JSON using Kotlinx Serialization, so the type T must be @Serializable.
suspend fun <T> RuntimeDomain.evaluateJs(js: String, deserializer: DeserializationStrategy<T>): T?
Evaluates the given js expression, and returns the result as a value of type T using the provided deserializer.
The value is converted from JSON using Kotlinx Serialization, so the type T must be @Serializable.