From 8fbd19e7d700a71e0194bca942622f66621c3425 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Wed, 13 Nov 2024 16:23:48 +0530 Subject: [PATCH] add typing for location filter options in IAgendaState --- assets/interfaces/agenda.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/interfaces/agenda.ts b/assets/interfaces/agenda.ts index 3439fedac..225ee1f9b 100644 --- a/assets/interfaces/agenda.ts +++ b/assets/interfaces/agenda.ts @@ -314,7 +314,14 @@ export interface IAgendaState { errors?: {[field: string]: Array}; loadingAggregations?: boolean; dateFilters?: IDateFilters; - locationsFiltersOptions?:{[key: string]: boolean}; + locationsFiltersOptions?:ILocationFilterOptions; +} + +export interface ILocationFilterOptions { + city?: boolean; + state?: boolean; + country?: boolean; + place?: boolean; } export type AgendaGetState = () => IAgendaState;