@@ -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
796794interface UseInfiniteQuerySubscriptionOptions <
797795 D extends InfiniteQueryDefinition < any , any , any , any , any > ,
@@ -1209,25 +1207,23 @@ export type TypedUseMutation<
12091207>
12101208
12111209export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
1212- {
1213- /**
1214- * Triggers the mutation and returns a Promise.
1215- * @remarks
1216- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1217- *
1218- * @example
1219- * ```ts
1220- * // codeblock-meta title="Using .unwrap with async await"
1221- * try {
1222- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1223- * console.log('fulfilled', payload)
1224- * } catch (error) {
1225- * console.error('rejected', error);
1226- * }
1227- * ```
1228- */
1229- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
1230- }
1210+ /**
1211+ * Triggers the mutation and returns a Promise.
1212+ * @remarks
1213+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
1214+ *
1215+ * @example
1216+ * ```ts
1217+ * // codeblock-meta title="Using .unwrap with async await"
1218+ * try {
1219+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
1220+ * console.log('fulfilled', payload)
1221+ * } catch (error) {
1222+ * console.error('rejected', error);
1223+ * }
1224+ * ```
1225+ */
1226+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
12311227
12321228export type TypedMutationTrigger <
12331229 ResultType ,
0 commit comments