@cmk/fe_utils
Version:
frontend utility library
21 lines (19 loc) • 709 B
TypeScript
import { GenericFilterType } from './types';
import { TableUiType } from './useTableController';
export type MakeFilterUrlParams = {
url: string;
searchValue?: string;
externalFilters?: GenericFilterType[];
disablePagination?: boolean;
preprocessFilters?: (filters: GenericFilterType[]) => GenericFilterType[];
postprocessFilters?: (filters: GenericFilterType[]) => GenericFilterType[];
searchParamIn?: TableUiType['searchParam'];
filters?: TableUiType['filters'];
pageNumber: number;
itemsPerPage: number;
};
export declare const makeFilterUrl: (params: MakeFilterUrlParams) => {
fullUrl: string;
paramsString: string;
unpaginatedParamsString: string;
};