Type Alias ComponentType<T>

ComponentType<T>: (new (...args: any[]) => T)

This type represents a constructor function for creating component instances.
Component classes define the structure and behavior of components that can be attached to entities.
They serve as templates/factories for creating component instances with consistent properties and methods.

Type Parameters

class PlayerComponent {
health: number;
speed: number;
}