Skip to content

ECS Framework API v2.2.13


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>

Released under the MIT License.