@resourge/react-fetch
Version:
[](LICENSE)
27 lines (26 loc) • 677 B
TypeScript
/**
* react-fetch v1.41.3
*
* Copyright (c) resourge.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
export declare enum OrderByEnum {
ASC = 1,
DESC = 2
}
export type SortCriteria = Array<{
orderBy: OrderByEnum;
orderColumn: string;
}>;
export type SortSearchParamsType = {
sort?: SortCriteria;
};
export type PaginationSearchParamsType = {
page: number;
perPage: number;
};
export type ParamsType<FilterSearchParams extends Record<string, any>> = Partial<PaginationSearchParamsType> & Partial<FilterSearchParams> & SortSearchParamsType;