@@ -222,7 +222,7 @@ type CreateStatusBasedMutationResult<
222
222
{ status : TStatus }
223
223
>
224
224
225
- type SignalFunction < T extends ( ) => any > = T & Signal < ReturnType < T > > ;
225
+ type SignalFunction < T extends ( ) => any > = T & Signal < ReturnType < T > >
226
226
227
227
/**
228
228
* @public
@@ -233,60 +233,74 @@ export interface BaseMutationNarrowing<
233
233
TVariables = unknown ,
234
234
TContext = unknown ,
235
235
> {
236
- isSuccess : SignalFunction < (
237
- this : CreateMutationResult < TData , TError , TVariables , TContext > ,
238
- ) => this is CreateMutationResult <
239
- TData ,
240
- TError ,
241
- TVariables ,
242
- TContext ,
243
- CreateStatusBasedMutationResult <
244
- 'success' ,
236
+ isSuccess : SignalFunction <
237
+ (
238
+ this : CreateMutationResult < TData , TError , TVariables , TContext > ,
239
+ ) => this is CreateMutationResult <
245
240
TData ,
246
241
TError ,
247
242
TVariables ,
248
- TContext
243
+ TContext ,
244
+ CreateStatusBasedMutationResult <
245
+ 'success' ,
246
+ TData ,
247
+ TError ,
248
+ TVariables ,
249
+ TContext
250
+ >
249
251
>
250
- > >
251
- isError : SignalFunction < (
252
- this : CreateMutationResult < TData , TError , TVariables , TContext > ,
253
- ) => this is CreateMutationResult <
254
- TData ,
255
- TError ,
256
- TVariables ,
257
- TContext ,
258
- CreateStatusBasedMutationResult <
259
- 'error' ,
252
+ >
253
+ isError : SignalFunction <
254
+ (
255
+ this : CreateMutationResult < TData , TError , TVariables , TContext > ,
256
+ ) => this is CreateMutationResult <
260
257
TData ,
261
258
TError ,
262
259
TVariables ,
263
- TContext
260
+ TContext ,
261
+ CreateStatusBasedMutationResult <
262
+ 'error' ,
263
+ TData ,
264
+ TError ,
265
+ TVariables ,
266
+ TContext
267
+ >
264
268
>
265
- > >
266
- isPending : SignalFunction < (
267
- this : CreateMutationResult < TData , TError , TVariables , TContext > ,
268
- ) => this is CreateMutationResult <
269
- TData ,
270
- TError ,
271
- TVariables ,
272
- TContext ,
273
- CreateStatusBasedMutationResult <
274
- 'pending' ,
269
+ >
270
+ isPending : SignalFunction <
271
+ (
272
+ this : CreateMutationResult < TData , TError , TVariables , TContext > ,
273
+ ) => this is CreateMutationResult <
275
274
TData ,
276
275
TError ,
277
276
TVariables ,
278
- TContext
277
+ TContext ,
278
+ CreateStatusBasedMutationResult <
279
+ 'pending' ,
280
+ TData ,
281
+ TError ,
282
+ TVariables ,
283
+ TContext
284
+ >
279
285
>
280
- > >
281
- isIdle : SignalFunction < (
282
- this : CreateMutationResult < TData , TError , TVariables , TContext > ,
283
- ) => this is CreateMutationResult <
284
- TData ,
285
- TError ,
286
- TVariables ,
287
- TContext ,
288
- CreateStatusBasedMutationResult < 'idle' , TData , TError , TVariables , TContext >
289
- > >
286
+ >
287
+ isIdle : SignalFunction <
288
+ (
289
+ this : CreateMutationResult < TData , TError , TVariables , TContext > ,
290
+ ) => this is CreateMutationResult <
291
+ TData ,
292
+ TError ,
293
+ TVariables ,
294
+ TContext ,
295
+ CreateStatusBasedMutationResult <
296
+ 'idle' ,
297
+ TData ,
298
+ TError ,
299
+ TVariables ,
300
+ TContext
301
+ >
302
+ >
303
+ >
290
304
}
291
305
292
306
/**
0 commit comments