UNPKG

@metamask/keyring-api

Version:
28 lines 832 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaginationStruct = void 0; const keyring_utils_1 = require("@metamask/keyring-utils"); const superstruct_1 = require("@metamask/superstruct"); /** * Pagination struct. This struct is used to specify the limit of items to * return and the next cursor to iterate over the results. * * @example * ```ts * { * limit: 10, * next: 'c3y1Q6QtqtstbxKX+oqVdEW6', * } * ``` */ exports.PaginationStruct = (0, keyring_utils_1.object)({ /** * Maximum number of items to return. */ limit: (0, superstruct_1.number)(), /** * Next cursor to iterate over the results. */ next: (0, keyring_utils_1.exactOptional)((0, superstruct_1.nullable)((0, superstruct_1.string)())), }); //# sourceMappingURL=pagination.cjs.map