@future-widget-lab/ui-filters
Version:
A set of primitives for handling filters through search parameters in React applications.
19 lines (18 loc) • 487 B
TypeScript
import type { Filters } from '../../types/filters.type';
export type RemoveFilterOptions = {
/**
* @description
* The filters collection.
*/
filters: Filters;
/**
* @description
* The name of the filter that will be removed.
*/
name: string;
};
/**
* @description
* Use this helper to remove an filter and its associated values from the filters collection.
*/
export declare const removeFilter: (options: RemoveFilterOptions) => Filters;