JsClass

JS
1.1
interface JsClass<T : Any>

Represents the constructor of a class. Instances of JsClass can be passed to JavaScript APIs that expect a constructor reference.

Properties

JS
1.1

name

Returns the unqualified name of the class represented by this instance.

abstract val name: String

Extension Properties

JS
1.1

kotlin

Obtains a KClass instance for the given constructor reference.

val <T : Any> JsClass<T>.kotlin: KClass<T>