@@ -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 ,
@@ -583,25 +582,23 @@ export type TypedUseMutation<
583582>
584583
585584export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
586- {
587- /**
588- * Triggers the mutation and returns a Promise.
589- * @remarks
590- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
591- *
592- * @example
593- * ```ts
594- * // codeblock-meta title="Using .unwrap with async await"
595- * try {
596- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
597- * console.log('fulfilled', payload)
598- * } catch (error) {
599- * console.error('rejected', error);
600- * }
601- * ```
602- */
603- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
604- }
585+ /**
586+ * Triggers the mutation and returns a Promise.
587+ * @remarks
588+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
589+ *
590+ * @example
591+ * ```ts
592+ * // codeblock-meta title="Using .unwrap with async await"
593+ * try {
594+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
595+ * console.log('fulfilled', payload)
596+ * } catch (error) {
597+ * console.error('rejected', error);
598+ * }
599+ * ```
600+ */
601+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
605602
606603export type TypedMutationTrigger <
607604 ResultType ,
0 commit comments