kvision / pl.treksoft.kvision.hmr / ApplicationBase

ApplicationBase

interface ApplicationBase

Base interface for applications.

Base interface for applications supporting Hot Module Replacement (HMR).

Functions

dispose

abstract fun dispose(): Map<String, Any>

Ending point for an application.

start

abstract fun start(state: Map<String, Any>): Unit

Starting point for an application.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.