Skip to content

toPaginated

Source Code | Documentation

Ensure the result is in paginated format

ts
  import {  } from 'feathers-utils/utils';

Type declaration

ts
/**
 * Ensure the result is in paginated format
 *
 * @see https://utils.feathersjs.com/utils/to-paginated.html
 */
export declare function toPaginated<R>(result: R[] | Paginated<R>): Paginated<R>
ArgumentTypeDescription
resultR[] | Paginated<R>

Released under the MIT License.