@@ -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 ,
@@ -659,25 +658,23 @@ export type TypedUseMutation<
659658>
660659
661660export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
662- {
663- /**
664- * Triggers the mutation and returns a Promise.
665- * @remarks
666- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
667- *
668- * @example
669- * ```ts
670- * // codeblock-meta title="Using .unwrap with async await"
671- * try {
672- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
673- * console.log('fulfilled', payload)
674- * } catch (error) {
675- * console.error('rejected', error);
676- * }
677- * ```
678- */
679- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
680- }
661+ /**
662+ * Triggers the mutation and returns a Promise.
663+ * @remarks
664+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
665+ *
666+ * @example
667+ * ```ts
668+ * // codeblock-meta title="Using .unwrap with async await"
669+ * try {
670+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
671+ * console.log('fulfilled', payload)
672+ * } catch (error) {
673+ * console.error('rejected', error);
674+ * }
675+ * ```
676+ */
677+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
681678
682679export type TypedMutationTrigger <
683680 ResultType ,
0 commit comments