src/modules/generic-search/entities/search-state.entity.intf.ts
This interface describes the object which is stored in @ngrx/store and used by the Generic Search to make its job.
Properties |
|
criteria |
criteria:
|
Type : T
|
Criteria to be used for a search. |
hasBeenSearched |
hasBeenSearched:
|
Type : boolean
|
Optional |
Indicates if the searchState has been already searched. |
export interface StarkSearchState<T> {
/**
* Indicates if the searchState has been already searched.
*/
hasBeenSearched?: boolean;
/**
* Criteria to be used for a search.
*/
criteria: T;
}