Skip to content

ECS Framework API v2.2.13


ECS Framework API / ValidComponentArray

Type Alias: ValidComponentArray<T>

ValidComponentArray<T> = T extends readonly ComponentConstructor[] ? T : never

Defined in: packages/core/src/Types/TypeHelpers.ts:152

组件数组约束 确保数组中的所有元素都是组件构造函数

Type Parameters

T

T extends readonly any[]

Released under the MIT License.