@@ -295,7 +295,7 @@ export type TypedUseLazyQueryStateResult<
295295 R
296296>
297297
298- export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > = {
298+ export type LazyQueryTrigger < D extends QueryDefinition < any , any , any , any > > =
299299 /**
300300 * Triggers a lazy query.
301301 *
@@ -319,8 +319,7 @@ export type LazyQueryTrigger<D extends QueryDefinition<any, any, any, any>> = {
319319 (
320320 arg : QueryArgFrom < D > ,
321321 preferCacheValue ?: boolean ,
322- ) : QueryActionCreatorResult < D >
323- }
322+ ) => QueryActionCreatorResult < D >
324323
325324export type TypedLazyQueryTrigger <
326325 ResultType ,
@@ -807,25 +806,23 @@ export type TypedUseMutation<
807806>
808807
809808export type MutationTrigger < D extends MutationDefinition < any , any , any , any > > =
810- {
811- /**
812- * Triggers the mutation and returns a Promise.
813- * @remarks
814- * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
815- *
816- * @example
817- * ```ts
818- * // codeblock-meta title="Using .unwrap with async await"
819- * try {
820- * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
821- * console.log('fulfilled', payload)
822- * } catch (error) {
823- * console.error('rejected', error);
824- * }
825- * ```
826- */
827- ( arg : QueryArgFrom < D > ) : MutationActionCreatorResult < D >
828- }
809+ /**
810+ * Triggers the mutation and returns a Promise.
811+ * @remarks
812+ * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
813+ *
814+ * @example
815+ * ```ts
816+ * // codeblock-meta title="Using .unwrap with async await"
817+ * try {
818+ * const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
819+ * console.log('fulfilled', payload)
820+ * } catch (error) {
821+ * console.error('rejected', error);
822+ * }
823+ * ```
824+ */
825+ ( arg : QueryArgFrom < D > ) => MutationActionCreatorResult < D >
829826
830827export type TypedMutationTrigger <
831828 ResultType ,
0 commit comments