I am facing a situation where I have a method called getFilters
that retrieves various types of values.
getFilters(): IListFilteringType {...}
type IListFilteringTypeMultiSelect = (string | number)[];
type IListFilteringType = boolean | string | number | IListFilteringTypeMultiSelect;
Now, my question is, how can I explicitly specify the expected type of the returned value from getFilters
to be IListFilteringTypeMultiSelect
, rather than one of the other possible types defined in IListFilteringType
?
Your help is greatly appreciated.