Home > @vsf-enterprise/commercetools > mapPaginationParams
# mapPaginationParams() function
Signature:
export declare function mapPaginationParams({ page, perPage }: {
perPage?: number;
page?: number;
sort?: any;
term?: any;
filters?: any;
[x: string]: any;
}): Pick<BaseSearch, 'limit' | 'offset'> | undefined;
# Parameters
Parameter | Type | Description |
---|---|---|
{ page, perPage } | { perPage?: number; page?: number; sort?: any; term?: any; filters?: any; [x: string]: any; } |
Returns:
Pick<BaseSearch, 'limit' | 'offset'> | undefined