@@ -80,7 +80,7 @@ declare module '..' {
80
80
}
81
81
}
82
82
83
- export interface SetupContext {
83
+ export interface ModelSetupContext {
84
84
/**
85
85
* The global Vuex store
86
86
*/
@@ -189,18 +189,18 @@ export interface ModelStatic<D extends {} = {}> extends EventEmitter {
189
189
* @param data the instance data
190
190
* @param ctx setup context
191
191
*/
192
- instanceDefaults ( data : Partial < D > , ctx : SetupContext ) : Partial < D >
192
+ instanceDefaults ( data : Partial < D > , ctx : ModelSetupContext ) : Partial < D >
193
193
194
194
/**
195
- * A new setupinstance class method is now available in version 2.0.
195
+ * A new setupInstance class method is now available in version 2.0.
196
196
* This method allows you to transform the data and setup the final
197
197
* instance based on incoming data. For example, you can access the
198
198
* models object to reference other service Model classes and create
199
199
* data associations.
200
200
* @param data the instance data
201
201
* @param ctx setup context
202
202
*/
203
- setupInstance ( data : Partial < D > , ctx : any ) : Partial < D >
203
+ setupInstance ( data : Partial < D > , ctx : ModelSetupContext ) : Partial < D >
204
204
205
205
/**
206
206
* Gets called just before sending the data to the API server. It gets
@@ -289,7 +289,7 @@ export interface ModelInstance<D extends {} = {}> {
289
289
* the update id.
290
290
* @param params Params passed to the Feathers client request
291
291
*/
292
- update ( parms ?: Params ) : Promise < this>
292
+ update ( params ?: Params ) : Promise < this>
293
293
/**
294
294
* The save method is a convenience wrapper for the create/patch
295
295
* methods, by default. If the records has no _id, the
0 commit comments