fix: TS type mismatch in mutation onSubmit handlers

This commit is contained in:
TheRaiwy
2026-05-27 14:58:32 +03:00
parent dbd7603a0b
commit ea02a77772
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ interface AddMoneyDialogProps {
bank: PiggyBank | null
open: boolean
onOpenChange: (open: boolean) => void
onSubmit: (bankId: number, amount: number, description?: string) => Promise<void>
onSubmit: (bankId: number, amount: number, description?: string) => Promise<unknown>
}
export function AddMoneyDialog({ bank, open, onOpenChange, onSubmit }: AddMoneyDialogProps) {
+1 -1
View File
@@ -6,7 +6,7 @@ import { Select } from './ui/select'
interface PiggyBankFormProps {
categories: Category[]
onSubmit: (data: { name: string; target_amount: number; currency: string; category_id: number | null }) => Promise<void>
onSubmit: (data: { name: string; target_amount: number; currency: string; category_id: number | null }) => Promise<unknown>
onCancel: () => void
}
+1
View File
@@ -0,0 +1 @@
{"root":["./src/app.tsx","./src/main.tsx","./src/types.ts","./src/components/addmoneydialog.tsx","./src/components/piggybankcard.tsx","./src/components/piggybankform.tsx","./src/components/transactionhistory.tsx","./src/components/ui/button.tsx","./src/components/ui/dialog.tsx","./src/components/ui/input.tsx","./src/components/ui/progress.tsx","./src/components/ui/select.tsx","./src/lib/api.ts","./src/lib/utils.ts"],"version":"5.6.3"}
+1
View File
@@ -0,0 +1 @@
{"root":["./vite.config.ts"],"version":"5.6.3"}