@@ -314,7 +314,7 @@ export type TypedUseLazyQueryStateResult<
314314 R
315315>
316316
317- export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > = {
317+ export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > =
318318 /**
319319 * Triggers a lazy query.
320320 *
@@ -338,8 +338,7 @@ export type LazyQueryTrigger<D extends QueryDefinition<any, any, any, any>> = {
338338 (
339339 arg : QueryArgFrom < D > ,
340340 preferCacheValue ?: boolean ,
341- ) : QueryActionCreatorResult < D >
342- }
341+ ) => QueryActionCreatorResult < D >
343342
344343export type TypedLazyQueryTrigger <
345344 ResultType ,
@@ -781,7 +780,7 @@ type UseQueryStateDefaultResult<D extends QueryDefinition<any, any, any, any>> =
781780
782781export type LazyInfiniteQueryTrigger <
783782 D extends InfiniteQueryDefinition < any , any , any , any , any > ,
784- > = {
783+ > =
785784 /**
786785 * Triggers a lazy query.
787786 *
@@ -805,8 +804,7 @@ export type LazyInfiniteQueryTrigger<
805804 (
806805 arg : QueryArgFrom < D > ,
807806 direction : InfiniteQueryDirection ,
808- ) : InfiniteQueryActionCreatorResult < D >
809- }
807+ ) => InfiniteQueryActionCreatorResult < D >
810808
811809export type TypedLazyInfiniteQueryTrigger <
812810 ResultType ,
@@ -1371,25 +1369,23 @@ export type TypedUseMutation<
13711369>
13721370
13731371export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
1374- {
1375- /**
1376- * Triggers the mutation and returns a Promise.
1377- * @remarks
1378- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1379- *
1380- * @example
1381- * ```ts
1382- * // codeblock-meta title="Using .unwrap with async await"
1383- * try {
1384- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1385- * console.log('fulfilled', payload)
1386- * } catch (error) {
1387- * console.error('rejected', error);
1388- * }
1389- * ```
1390- */
1391- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
1392- }
1372+ /**
1373+ * Triggers the mutation and returns a Promise.
1374+ * @remarks
1375+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1376+ *
1377+ * @example
1378+ * ```ts
1379+ * // codeblock-meta title="Using .unwrap with async await"
1380+ * try {
1381+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1382+ * console.log('fulfilled', payload)
1383+ * } catch (error) {
1384+ * console.error('rejected', error);
1385+ * }
1386+ * ```
1387+ */
1388+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
13931389
13941390export type TypedMutationTrigger <
13951391 ResultType ,
0 commit comments