@@ -110,18 +110,20 @@ export interface ModelInstanceOptions {
110
110
merge ?: boolean
111
111
}
112
112
113
+ type AnyData = { [ k : string ] : any }
114
+
113
115
/**
114
116
* FeathersVuex Model with readonly data props
115
117
*/
116
- export type Model < D extends { } = { } > = ModelInstance < D > & Readonly < D >
118
+ export type Model < D extends { } = AnyData > = ModelInstance < D > & Readonly < D >
117
119
118
120
/**
119
121
* FeathersVuex Model clone with writeable data props
120
122
*/
121
- export type ModelClone < D extends { } = { } > = ModelInstanceClone < D > & D
123
+ export type ModelClone < D extends { } = AnyData > = ModelInstanceClone < D > & D
122
124
123
125
/** Static Model interface */
124
- export interface ModelStatic < D extends { } = { } > extends EventEmitter {
126
+ export interface ModelStatic < D extends { } = AnyData > extends EventEmitter {
125
127
/**
126
128
* The path passed to `FeathersClient.service()` to create the service
127
129
*/
@@ -235,7 +237,7 @@ export interface ModelStatic<D extends {} = {}> extends EventEmitter {
235
237
}
236
238
237
239
/** Model instance interface */
238
- export interface ModelInstance < D extends { } = { } > {
240
+ export interface ModelInstance < D extends { } = AnyData > {
239
241
/**
240
242
* model's temporary ID
241
243
*/
@@ -298,7 +300,7 @@ export interface ModelInstance<D extends {} = {}> {
298
300
}
299
301
300
302
/** Model instance clone interface */
301
- export interface ModelInstanceClone < D extends { } = { } >
303
+ export interface ModelInstanceClone < D extends { } = AnyData >
302
304
extends ModelInstance < D > {
303
305
/**
304
306
* Commit changes from clone to original
0 commit comments