Skip to content

Commit

Permalink
fix(transport-commons): find with Paginated<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Jun 22, 2023
1 parent 34c88f0 commit 73fb821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transport-commons/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { convert } from '@feathersjs/errors'
import { createDebug } from '@feathersjs/commons'
import { Id, NullableId, Params, ServiceInterface } from '@feathersjs/feathers'
import { Id, NullableId, Paginated, Params, ServiceInterface } from '@feathersjs/feathers'

const debug = createDebug('@feathersjs/transport-commons/client')

Expand Down Expand Up @@ -99,7 +99,7 @@ export class Service<T = any, D = Partial<T>, P extends Params = Params>
}

find(params: Params = {}) {
return this.send<T | T[]>('find', params.query || {})
return this.send<Paginated<T> | T[]>('find', params.query || {})
}

get(id: Id, params: Params = {}) {
Expand Down

0 comments on commit 73fb821

Please sign in to comment.