@resourge/react-fetch
Version:
[](LICENSE)
29 lines (28 loc) • 690 B
TypeScript
/**
* react-fetch v1.43.1
*
* 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> & SortSearchParamsType & {
f?: Partial<FilterSearchParams>;
};