UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

10 lines (9 loc) 594 B
import { type IComponent } from "./engine_types.js"; type ComponentLifecycleEvent = "component-added" | "removing-component"; export declare class ComponentLifecycleEvents { private static eventListeners; static addComponentLifecylceEventListener(evt: ComponentLifecycleEvent | (string & {}), cb: (data: IComponent) => void): void; static removeComponentLifecylceEventListener(evt: ComponentLifecycleEvent | (string & {}), cb: (data: IComponent) => void): void; static dispatchComponentLifecycleEvent(evt: ComponentLifecycleEvent, data: IComponent): void; } export {};