UNPKG

@vctrl/hooks

Version:

vctrl/hooks is a React hooks package designed to simplify 3D model loading and management within React applications. It's part of the vectreal-core ecosystem and is primarily used in the vctrl/viewer React component and the official website application.

8 lines (7 loc) 339 B
import { EventData, EventHandler, EventTypes } from './types'; declare const eventSystem: { emit<T extends EventTypes>(event: T, data?: EventData[T]): void; on<T extends EventTypes>(event: T, handler?: EventHandler<T>): void; off<T extends EventTypes>(event: T, handler?: EventHandler<T>): void; }; export default eventSystem;