Fix TS2308 error in index.ts
The module './BudgetContext' already exports a member named 'BudgetContextType'. Explicitly re-export to resolve the ambiguity.
This commit is contained in:
@@ -1,9 +1,18 @@
|
|||||||
|
|
||||||
export * from './BudgetContext';
|
export * from './BudgetContext';
|
||||||
export * from './types';
|
|
||||||
export * from './budgetUtils';
|
export * from './budgetUtils';
|
||||||
export * from './storageUtils';
|
export * from './storageUtils';
|
||||||
|
|
||||||
|
// types.ts에서 BudgetPeriod와 다른 타입들을 내보내지만,
|
||||||
|
// BudgetContextType은 이미 BudgetContext에서 내보내고 있으므로 제외
|
||||||
|
export type {
|
||||||
|
BudgetPeriod,
|
||||||
|
BudgetPeriodData,
|
||||||
|
BudgetData,
|
||||||
|
CategoryBudget,
|
||||||
|
Transaction
|
||||||
|
} from './types';
|
||||||
|
|
||||||
// Export hooks
|
// Export hooks
|
||||||
export * from './hooks/useTransactionState';
|
export * from './hooks/useTransactionState';
|
||||||
export * from './hooks/useBudgetDataState';
|
export * from './hooks/useBudgetDataState';
|
||||||
|
|||||||
Reference in New Issue
Block a user