@@ -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 ,
@@ -1356,25 +1354,23 @@ export type TypedUseMutation<
13561354>
13571355
13581356export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
1359- {
1360- /**
1361- * Triggers the mutation and returns a Promise.
1362- * @remarks
1363- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1364- *
1365- * @example
1366- * ```ts
1367- * // codeblock-meta title="Using .unwrap with async await"
1368- * try {
1369- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1370- * console.log('fulfilled', payload)
1371- * } catch (error) {
1372- * console.error('rejected', error);
1373- * }
1374- * ```
1375- */
1376- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
1377- }
1357+ /**
1358+ * Triggers the mutation and returns a Promise.
1359+ * @remarks
1360+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1361+ *
1362+ * @example
1363+ * ```ts
1364+ * // codeblock-meta title="Using .unwrap with async await"
1365+ * try {
1366+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1367+ * console.log('fulfilled', payload)
1368+ * } catch (error) {
1369+ * console.error('rejected', error);
1370+ * }
1371+ * ```
1372+ */
1373+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
13781374
13791375export type TypedMutationTrigger <
13801376 ResultType ,
0 commit comments