mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
13 lines
252 B
TypeScript
13 lines
252 B
TypeScript
|
|
import { Pagination } from './types';
|
||
|
|
|
||
|
|
export const checkIsValidPaginationData = ({
|
||
|
|
limit,
|
||
|
|
offset,
|
||
|
|
}: Pagination): boolean =>
|
||
|
|
Boolean(
|
||
|
|
limit &&
|
||
|
|
(limit === 25 || limit === 50 || limit === 100 || limit === 200) &&
|
||
|
|
offset &&
|
||
|
|
offset > 0,
|
||
|
|
);
|