diff --git a/src/internal.types.ts b/src/internal.types.ts index f36f6ba..580b6e4 100644 --- a/src/internal.types.ts +++ b/src/internal.types.ts @@ -1,7 +1,7 @@ import type { Paginated, PaginationOptions } from '@feathersjs/feathers'; -export type PaginatedOrArray = P extends { paginate: false } +export type PaginatedOrArray = P extends { paginate?: false } ? R[] : P extends { paginate: PaginationOptions } ? Paginated - : (Paginated | R[]); + : Paginated;