UNPKG

@metamask/keyring-api

Version:
25 lines 641 B
import { exactOptional, object } from "@metamask/keyring-utils"; import { nullable, number, string } from "@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', * } * ``` */ export const PaginationStruct = object({ /** * Maximum number of items to return. */ limit: number(), /** * Next cursor to iterate over the results. */ next: exactOptional(nullable(string())), }); //# sourceMappingURL=pagination.mjs.map