Skip to content

Commit

Permalink
♻️ refactor(types): centralize mutation types
Browse files Browse the repository at this point in the history
  • Loading branch information
thrownullexception committed Aug 11, 2024
1 parent 6a9ab19 commit b66bf91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/frontend/lib/data/useMutate/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { MessageDescriptor } from "@lingui/core";

export type ToastMessageInput = {
description: MessageDescriptor;
// action?: { label: MessageDescriptor; action: () => void };
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { MessageDescriptor } from "@lingui/core";
import { msg } from "@lingui/macro";
import { useMutation, useQueryClient } from "@tanstack/react-query";

Expand All @@ -7,11 +6,7 @@ import { noop } from "@/shared/lib/noop";
import { fakeMessageDescriptor } from "@/translations/fake";

import { getQueryCachekey } from "../constants/getQueryCacheKey";

export type ToastMessageInput = {
description: MessageDescriptor;
// action?: { label: MessageDescriptor; action: () => void };
};
import type { ToastMessageInput } from "./types";

export interface IApiMutateOptions<T, V, R> {
dataQueryPath: string;
Expand Down

0 comments on commit b66bf91

Please sign in to comment.