ECS Framework API / isComponentType
Function: isComponentType()
isComponentType<
T>(value):value is ComponentConstructor<T>
Defined in: packages/core/src/Types/TypeHelpers.ts:240
组件类型守卫
Type Parameters
T
T extends IComponent
Parameters
value
any
Returns
value is ComponentConstructor<T>