Companion

object Companion

Functions

Link copied to clipboard
fun addInitHook(initHookFn: () -> Unit): Any

Adds a constructor hook to the class.

fun addInitHook(methodName: String, vararg args: Any): Any
Link copied to clipboard
fun extend(props: Any): Any

Extends the current class given the properties to be included. Returns a Javascript function that is a class constructor (to be called with new).

Link copied to clipboard
fun include(props: Any): Any

Includes a mixin into the current class.

Link copied to clipboard
fun mergeOptions(props: Any): Any

Merges options into the defaults of the class.