/** * @typedef Pagination * @type {Object} * @param {number} current the current page number * @param {number} first the page number of first page * @param {number} last the page number of last page * @param {number} [previous] the page number of previous page * @param {number} [next] the page number of next page */ /** * Extract the pagination data from the API paginated collection's view parameter. * @param {Object} [view] the API paginated collection's view parameter * @param {string} view.first path to the first page of the paginated collection * @param {string} view.last path to the last page of the paginated collection * @param {string} [view.previous] path to the previous page of the paginated collection * @param {string} [view.next] path to the next page of the paginated collection * @returns {Pagination|null} the transformed pagination or null if view is undefined */ function paginationFromCollectionView(view) {} export default paginationFromCollectionView;