@@ -177,53 +177,47 @@ function createStore(params: {
177
177
* during event handling.
178
178
*/
179
179
export function createBackendApi ( butlerMod : ReturnType < typeof butlerModule > ) {
180
- return {
181
- ...buildCreateApi (
182
- coreModule ( ) ,
183
- butlerMod
184
- ) ( {
185
- reducerPath : 'backend' ,
186
- tagTypes : Object . values ( ReduxTag ) ,
187
- baseQuery : tauriBaseQuery ,
188
- endpoints : ( _ ) => {
189
- return { } ;
190
- }
191
- } )
192
- } ;
180
+ return buildCreateApi (
181
+ coreModule ( ) ,
182
+ butlerMod
183
+ ) ( {
184
+ reducerPath : 'backend' ,
185
+ tagTypes : Object . values ( ReduxTag ) ,
186
+ baseQuery : tauriBaseQuery ,
187
+ endpoints : ( _ ) => {
188
+ return { } ;
189
+ }
190
+ } ) ;
193
191
}
194
192
195
193
export function createGitHubApi ( butlerMod : ReturnType < typeof butlerModule > ) {
196
- return {
197
- ...buildCreateApi (
198
- coreModule ( ) ,
199
- butlerMod
200
- ) ( {
201
- reducerPath : 'github' ,
202
- tagTypes : Object . values ( ReduxTag ) ,
203
- baseQuery : tauriBaseQuery ,
204
- refetchOnFocus : true ,
205
- refetchOnReconnect : true ,
206
- endpoints : ( _ ) => {
207
- return { } ;
208
- }
209
- } )
210
- } ;
194
+ return buildCreateApi (
195
+ coreModule ( ) ,
196
+ butlerMod
197
+ ) ( {
198
+ reducerPath : 'github' ,
199
+ tagTypes : Object . values ( ReduxTag ) ,
200
+ baseQuery : tauriBaseQuery ,
201
+ refetchOnFocus : true ,
202
+ refetchOnReconnect : true ,
203
+ endpoints : ( _ ) => {
204
+ return { } ;
205
+ }
206
+ } ) ;
211
207
}
212
208
213
209
export function createGitLabApi ( butlerMod : ReturnType < typeof butlerModule > ) {
214
- return {
215
- ...buildCreateApi (
216
- coreModule ( ) ,
217
- butlerMod
218
- ) ( {
219
- reducerPath : 'gitlab' ,
220
- tagTypes : Object . values ( ReduxTag ) ,
221
- baseQuery : tauriBaseQuery ,
222
- refetchOnFocus : true ,
223
- refetchOnReconnect : true ,
224
- endpoints : ( _ ) => {
225
- return { } ;
226
- }
227
- } )
228
- } ;
210
+ return buildCreateApi (
211
+ coreModule ( ) ,
212
+ butlerMod
213
+ ) ( {
214
+ reducerPath : 'gitlab' ,
215
+ tagTypes : Object . values ( ReduxTag ) ,
216
+ baseQuery : tauriBaseQuery ,
217
+ refetchOnFocus : true ,
218
+ refetchOnReconnect : true ,
219
+ endpoints : ( _ ) => {
220
+ return { } ;
221
+ }
222
+ } ) ;
229
223
}
0 commit comments