Skip to content

Commit 81077b3

Browse files
committed
fix: make static props mutable
1 parent 8d86052 commit 81077b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/service-module/types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,37 +121,37 @@ export interface ModelStatic extends EventEmitter {
121121
/**
122122
* The path passed to `FeathersClient.service()` to create the service
123123
*/
124-
readonly servicePath: string
124+
servicePath: string
125125
/**
126126
* Holds the value that was used to register the module with Vuex.
127127
* This will match the servicePath unless you've provided a custom
128128
* namespace in the Service Module plugin options.
129129
*/
130-
readonly namespace: string
130+
namespace: string
131131
/**
132132
* The global Vuex store
133133
*/
134134
readonly store: Store<StoreState>
135135
/**
136136
* The field in each record that will contain the ID
137137
*/
138-
readonly idField: string
138+
idField: string
139139
/**
140140
* The field in each temporary record that contains the temporary ID
141141
*/
142-
readonly tempIdField: string
142+
tempIdField: string
143143
/**
144144
* If `true`, calling `model.save()` will do an `update` instead of a `patch`.
145145
*/
146-
readonly preferUpdate: boolean
146+
preferUpdate: boolean
147147
/**
148148
* Server alias in the global `models` object
149149
*/
150-
readonly serverAlias: string
150+
serverAlias: string
151151
/**
152152
* Model name used to circumvent Babel transpilation errors
153153
*/
154-
readonly modelName: string
154+
modelName: string
155155
/**
156156
* The global `models` object
157157
*/

0 commit comments

Comments
 (0)