UNPKG

@ayanaware/bento

Version:

Modular runtime framework designed to solve complex tasks

9 lines (8 loc) 326 B
import type { ComponentAPI } from '../api/ComponentAPI'; import { Entity, EntityType } from './Entity'; export interface Component extends Entity { type?: EntityType.COMPONENT; api?: ComponentAPI; /** Lifecycle: Called right before Component is fully loaded */ onLoad?(api?: ComponentAPI): Promise<unknown>; }