Skip to content

API Function registerComponent

github-actions[bot] edited this page Dec 1, 2026 · 5 revisions

Function: registerComponent()

function registerComponent(
   id, 
   type, 
   options?
): void;

Defined in: src/engine/core/registry.ts:275

Register a component class under a stable id. Usually applied with @behavior / @component.

Parameters

id

string

type

ComponentClass

options?

ComponentOptions

Returns

void

Clone this wiki locally