Skip to content

Commit 83a145d

Browse files
committed
types: add keepCopiesInStore
-> to MakeServicePluginOptions
1 parent c0435f6 commit 83a145d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/service-module/types.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface MakeServicePluginOptions {
5050
replaceItems?: boolean
5151
skipRequestIfExists?: boolean
5252
nameStyle?: string
53+
keepCopiesInStore?: boolean
5354

5455
servicePath?: string
5556
namespace?: string
@@ -245,7 +246,9 @@ export interface ModelStatic extends EventEmitter {
245246
* A proxy for the `find` getter
246247
* @param params Find params
247248
*/
248-
findInStore<M extends Model = Model>(params?: Params | Ref<Params>): Paginated<M>
249+
findInStore<M extends Model = Model>(
250+
params?: Params | Ref<Params>
251+
): Paginated<M>
249252

250253
/**
251254
* A proxy for the `count` action
@@ -269,7 +272,10 @@ export interface ModelStatic extends EventEmitter {
269272
* @param id ID of record to retrieve
270273
* @param params Get params
271274
*/
272-
getFromStore<M extends Model = Model>(id: Id | Ref<Id>, params?: Params | Ref<Params>): M | undefined
275+
getFromStore<M extends Model = Model>(
276+
id: Id | Ref<Id>,
277+
params?: Params | Ref<Params>
278+
): M | undefined
273279
}
274280

275281
/** Model instance interface */

0 commit comments

Comments
 (0)