You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
305 B
JavaScript

"use strict";
const arrayOf = require("@validatem/array-of");
const isBoolean = require("@validatem/is-boolean");
const isInteger = require("@validatem/is-integer");
module.exports = function isPaginatedChunkOf(rules) {
return {
chunk: arrayOf(rules),
limited: isBoolean,
count: isInteger
};
};