@@ -2,6 +2,7 @@ import { Service, Id } from '@feathersjs/feathers'
2
2
import { Params , Paginated } from '../utils'
3
3
import { EventEmitter } from 'events'
4
4
import { Store } from 'vuex'
5
+ import { Ref } from '@vue/composition-api'
5
6
6
7
export { Id } from '@feathersjs/feathers'
7
8
@@ -244,18 +245,18 @@ export interface ModelStatic extends EventEmitter {
244
245
* A proxy for the `find` getter
245
246
* @param params Find params
246
247
*/
247
- findInStore < M extends Model = Model > ( params ?: Params ) : Paginated < M >
248
+ findInStore < M extends Model = Model > ( params ?: Params | Ref < Params > ) : Paginated < M >
248
249
249
250
/**
250
251
* A proxy for the `count` action
251
252
* @param params Find params
252
253
*/
253
- count < M extends Model = Model > ( params ?: Params ) : Promise < M [ ] | Paginated < M > >
254
+ count ( params ?: Params ) : Promise < number >
254
255
/**
255
256
* A proxy for the `count` getter
256
257
* @param params Find params
257
258
*/
258
- countInStore < M extends Model = Model > ( params ?: Params ) : Paginated < M >
259
+ countInStore ( params ?: Params | Ref < Params > ) : number
259
260
260
261
/**
261
262
* A proxy for the `get` action
@@ -268,7 +269,7 @@ export interface ModelStatic extends EventEmitter {
268
269
* @param id ID of record to retrieve
269
270
* @param params Get params
270
271
*/
271
- getFromStore < M extends Model = Model > ( id : Id , params ?: Params ) : M | undefined
272
+ getFromStore < M extends Model = Model > ( id : Id | Ref < Id > , params ?: Params | Ref < Params > ) : M | undefined
272
273
}
273
274
274
275
/** Model instance interface */
0 commit comments