Pular para o conteúdo principal

SpecializedSearchResultsDto

@raizfc/contracts


@raizfc/contracts / SpecializedSearchResultsDto

Type Alias: SpecializedSearchResultsDto<TFilters>

SpecializedSearchResultsDto<TFilters> = Readonly<{ appliedFilters: TFilters; items: readonly SearchResultDto[]; type: SearchResultType; }>

Defined in: search/search.dto.ts:86

Generic shape returned by every specialized per-type endpoint (/search/teams, /search/players, ...). appliedFilters echoes back the filters the backend actually applied (after validation/defaults), so the client never has to guess what state the list reflects.

Type Parameters

TFilters

TFilters extends object = Record<string, never>