UNPKG

expense-manager-react

Version:

A comprehensive expense tracking application built with React, TypeScript, and Supabase

27 lines (26 loc) 805 B
import * as z from "zod"; declare const expenseFormSchema: z.ZodObject<{ date: z.ZodDate; category: z.ZodString; description: z.ZodString; amount: z.ZodNumber; }, "strip", z.ZodTypeAny, { date?: Date; category?: string; description?: string; amount?: number; }, { date?: Date; category?: string; description?: string; amount?: number; }>; type ExpenseFormValues = z.infer<typeof expenseFormSchema>; interface ExpenseFormProps { onSubmit?: (data: ExpenseFormValues) => void; initialData?: Partial<ExpenseFormValues>; isEditing?: boolean; onExpenseAdded?: () => void; } declare const ExpenseForm: ({ onSubmit, initialData, isEditing, onExpenseAdded, }: ExpenseFormProps) => import("react/jsx-runtime").JSX.Element; export default ExpenseForm;