W3cubDocs

/Kotlin

JsClass

Platform and version requirements: 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

Platform and version requirements: JS (1.1)

name

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

abstract val name: String

Extension Properties

Platform and version requirements: JS (1.1)

kotlin

Obtains a KClass instance for the given constructor reference.

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

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-js-class/index.html