@@ -318,7 +318,7 @@ export type TypedUseLazyQueryStateResult<
318318 R
319319>
320320
321- export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > = {
321+ export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > =
322322 /**
323323 * Triggers a lazy query.
324324 *
@@ -342,8 +342,7 @@ export type LazyQueryTrigger<D extends QueryDefinition<any, any, any, any>> = {
342342 (
343343 arg : QueryArgFrom < D > ,
344344 preferCacheValue ?: boolean ,
345- ) : QueryActionCreatorResult < D >
346- }
345+ ) => QueryActionCreatorResult < D >
347346
348347export type TypedLazyQueryTrigger <
349348 ResultType ,
@@ -766,7 +765,7 @@ type UseQueryStateDefaultResult<D extends QueryDefinition<any, any, any, any>> =
766765
767766export type LazyInfiniteQueryTrigger <
768767 D extends InfiniteQueryDefinition < any , any , any , any , any > ,
769- > = {
768+ > =
770769 /**
771770 * Triggers a lazy query.
772771 *
@@ -790,8 +789,7 @@ export type LazyInfiniteQueryTrigger<
790789 (
791790 arg : QueryArgFrom < D > ,
792791 direction : InfiniteQueryDirection ,
793- ) : InfiniteQueryActionCreatorResult < D >
794- }
792+ ) => InfiniteQueryActionCreatorResult < D >
795793
796794export type TypedLazyInfiniteQueryTrigger <
797795 ResultType ,
@@ -1355,25 +1353,23 @@ export type TypedUseMutation<
13551353>
13561354
13571355export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
1358- {
1359- /**
1360- * Triggers the mutation and returns a Promise.
1361- * @remarks
1362- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1363- *
1364- * @example
1365- * ```ts
1366- * // codeblock-meta title="Using .unwrap with async await"
1367- * try {
1368- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1369- * console.log('fulfilled', payload)
1370- * } catch (error) {
1371- * console.error('rejected', error);
1372- * }
1373- * ```
1374- */
1375- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
1376- }
1356+ /**
1357+ * Triggers the mutation and returns a Promise.
1358+ * @remarks
1359+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1360+ *
1361+ * @example
1362+ * ```ts
1363+ * // codeblock-meta title="Using .unwrap with async await"
1364+ * try {
1365+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1366+ * console.log('fulfilled', payload)
1367+ * } catch (error) {
1368+ * console.error('rejected', error);
1369+ * }
1370+ * ```
1371+ */
1372+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
13771373
13781374export type TypedMutationTrigger <
13791375 ResultType ,
0 commit comments