JavaScript Reflection
JavaScript Reflection
At this time, JavaScript does not support the full Kotlin reflection API. The only supported part of the API is the ::class
syntax which allows you to refer to the class of an instance, or the class corresponding to the given type. The value of a ::class
expression is a stripped-down KClass implementation that only supports the simpleName and isInstance members.
In addition to that, you can use KClass.js to access the JsClass instance corresponding to the class. The JsClass<