Fix: Resolve TypeScript errors

The type `Transaction` was missing the `localTimestamp` property, causing TypeScript errors in `downloadTransaction.ts` and `uploadTransaction.ts`. This commit adds the `localTimestamp` property to the `Transaction` interface to resolve these errors.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-21 11:41:42 +00:00
parent e1c6875024
commit 40ddcee1da
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import { cn } from '@/lib/utils'; import { cn } from '@/lib/utils';
import TransactionEditDialog from './TransactionEditDialog'; import TransactionEditDialog from './TransactionEditDialog';
@@ -14,6 +13,8 @@ export type Transaction = {
category: string; category: string;
type: 'expense' | 'income'; type: 'expense' | 'income';
notes?: string; // notes 필드를 옵셔널로 추가 notes?: string; // notes 필드를 옵셔널로 추가
localTimestamp?: string; // 로컬 수정 타임스탬프 추가
serverTimestamp?: string; // 서버 타임스탬프 추가
}; };
interface TransactionCardProps { interface TransactionCardProps {

View File

@@ -40,5 +40,7 @@ export interface Transaction {
date: string; date: string;
category: string; category: string;
type: 'income' | 'expense'; type: 'income' | 'expense';
notes?: string; // notes 필드를 옵셔널로 추가 notes?: string;
localTimestamp?: string; // 로컬 수정 타임스탬프 추가
serverTimestamp?: string; // 서버 타임스탬프 추가
} }