UNPKG

mysterium-vpn-js

Version:
22 lines (21 loc) 713 B
"use strict"; /** * Copyright (c) 2020 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.parsePageable = void 0; const validation_1 = require("../fmt/validation"); function parsePageable(data) { (0, validation_1.validateMultiple)('Pageable', data, [ { name: 'items', type: 'array' }, { name: 'page', type: 'number' }, { name: 'pageSize', type: 'number' }, { name: 'totalItems', type: 'number' }, { name: 'totalPages', type: 'number' }, ]); return data; } exports.parsePageable = parsePageable;