UNPKG

@paperbits/common

Version:
25 lines (20 loc) 471 B
import { ComponentBinder } from "../components"; /** * Definition of a UI component. */ export interface IComponent { /** * Component name. */ name: string; /** * Constructor parameters. */ params?: any; /** * A lifecycle hook fired after the component mounted. */ oncreate?: (viewModel?: any, element?: HTMLElement) => void; binder?: ComponentBinder; definition?: unknown; }