Skip to content

Commit d37514d

Browse files
committed
fix: implement ModelInstanceClone instead to ensure reset() and commit() signatures
1 parent ce6250d commit d37514d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service-module/make-base-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
FeathersVuexOptions,
88
ModelInstanceOptions,
99
ModelStatic,
10-
ModelInstance
10+
ModelInstanceClone
1111
} from './types'
1212
import { globalModels, prepareAddModel } from './global-models'
1313
import { mergeWithAccessors, checkNamespace, getId } from '../utils'
@@ -58,7 +58,7 @@ export default function makeBaseModel(options: Required<FeathersVuexOptions>) {
5858
return ExistingBaseModel as ModelStatic<D>
5959
}
6060

61-
abstract class BaseModel implements ModelInstance<D> {
61+
abstract class BaseModel implements ModelInstanceClone<D> {
6262
// Think of these as abstract static properties
6363
public static servicePath: string
6464
public static namespace: string

0 commit comments

Comments
 (0)