Type Alias SearchResult<T>

SearchResult<T>: {
    component: T;
    entity: Entity;
}

This type represents a search result object containing an entity and its matching component.
Used when searching for entities with specific components and criteria.
The generic type T extends Component to provide type safety for the returned component.

Type Parameters