Home > @esengine/ecs-framework-monorepo > ComponentConstructor
ComponentConstructor type
组件类型定义
用于类型安全的组件操作 支持任意构造函数签名,提供更好的类型安全性
Signature:
typescript
export type ComponentConstructor<T extends IComponent = IComponent> = new (...args: any[]) => T;
References: IComponent