Type alias Query

Query: {
    filter: ((entities) => Entity[]);
    match: ((entity) => boolean);
}

Represents a Query for filtering entities based on certain conditions.

Type declaration

  • filter: ((entities) => Entity[])
      • (entities): Entity[]
      • Filters a list of entities based on the query.

        Parameters

        • entities: Entity[]

          The list of entities to filter.

        Returns Entity[]

        A filtered list of entities that match the query.

  • match: ((entity) => boolean)
      • (entity): boolean
      • Determines if a given entity matches with the query.

        Parameters

        • entity: Entity

          The entity to check against the query.

        Returns boolean

        True if the entity matches, otherwise false.