@@ -267,7 +267,7 @@ export type TypedUseLazyQuery<
267267 QueryDefinition < QueryArg , BaseQuery , string , ResultType , string >
268268>
269269
270- export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > = {
270+ export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > =
271271 /**
272272 * Triggers a lazy query.
273273 *
@@ -291,8 +291,7 @@ export type LazyQueryTrigger<D extends QueryDefinition<any, any, any, any>> = {
291291 (
292292 arg : QueryArgFrom < D > ,
293293 preferCacheValue ?: boolean ,
294- ) : QueryActionCreatorResult < D >
295- }
294+ ) => QueryActionCreatorResult < D >
296295
297296export type TypedLazyQueryTrigger <
298297 ResultType ,
@@ -775,25 +774,23 @@ export type TypedUseMutation<
775774>
776775
777776export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
778- {
779- /**
780- * Triggers the mutation and returns a Promise.
781- * @remarks
782- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
783- *
784- * @example
785- * ```ts
786- * // codeblock-meta title="Using .unwrap with async await"
787- * try {
788- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
789- * console.log('fulfilled', payload)
790- * } catch (error) {
791- * console.error('rejected', error);
792- * }
793- * ```
794- */
795- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
796- }
777+ /**
778+ * Triggers the mutation and returns a Promise.
779+ * @remarks
780+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
781+ *
782+ * @example
783+ * ```ts
784+ * // codeblock-meta title="Using .unwrap with async await"
785+ * try {
786+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
787+ * console.log('fulfilled', payload)
788+ * } catch (error) {
789+ * console.error('rejected', error);
790+ * }
791+ * ```
792+ */
793+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
797794
798795export type TypedMutationTrigger <
799796 ResultType ,
0 commit comments