-
- All Implemented Interfaces:
public final class RuntimeExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> T,String)>evaluateJs(<Error class: unknown class> $self, String js)Evaluates the given js expression, and returns the result as a value of type T. final static <T extends Any> T,String,DeserializationStrategy)>evaluateJs(<Error class: unknown class> $self, String js, DeserializationStrategy<T> deserializer)Evaluates the given js expression, and returns the result as a value of type T using the provided deserializer. -
-
Method Detail
-
evaluateJs
final static <T extends Any> T ,String)>evaluateJs(<Error class: unknown class> $self, String js)
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.
-
evaluateJs
final static <T extends Any> T ,String,DeserializationStrategy)>evaluateJs(<Error class: unknown class> $self, String js, DeserializationStrategy<T> deserializer)
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.
-
-
-
-