fix: 프로젝트 전체 TypeScript 타입에러 408개 수정 (tsc --noEmit 0 errors)
- 공통 템플릿 타입 수정 (IntegratedDetailTemplate, UniversalListPage) - 페이지(app/[locale]) 타입 호환성 수정 (80개) - 재고/자재 모듈 타입 수정 (StockStatus, ReceivingManagement) - 생산 모듈 타입 수정 (WorkOrders, WorkerScreen, WorkResults) - 주문/출고 모듈 타입 수정 (ShipmentManagement, Orders) - 견적/단가 모듈 타입 수정 (Quotes, Pricing) - 건설 모듈 타입 수정 (49개, 17개 하위 모듈) - HR 모듈 타입 수정 (CardManagement, VacationManagement 등) - 설정 모듈 타입 수정 (PermissionManagement, AccountManagement 등) - 게시판 모듈 타입 수정 (BoardManagement, BoardList 등) - 회계 모듈 타입 수정 (VendorManagement, BadDebtCollection 등) - 기타 모듈 타입 수정 (CEODashboard, clients, vehicle 등) - 유틸/훅/API 타입 수정 (hooks, contexts, lib) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
- **날짜**: 2026-01-29
|
||||
- **총 에러**: 408개 / 155파일
|
||||
- **목표**: 전체 `tsc --noEmit` 에러 0
|
||||
- **결과**: ✅ **0 errors** (408 → 0 완료)
|
||||
|
||||
---
|
||||
|
||||
@@ -15,116 +16,116 @@
|
||||
|
||||
## Phase 2: 페이지 (app/[locale]) — 80 errors
|
||||
|
||||
- [ ] `app/[locale]` 페이지 타입 에러 수정 (80 errors)
|
||||
- [x] `app/[locale]` 페이지 타입 에러 수정 (80 errors) ✅
|
||||
|
||||
## Phase 3: 재고/자재 — 36 errors
|
||||
|
||||
- [ ] `components/material/StockStatus` (31 errors)
|
||||
- [ ] `components/material/ReceivingManagement` (5 errors)
|
||||
- [x] `components/material/StockStatus` (31 errors) ✅
|
||||
- [x] `components/material/ReceivingManagement` (5 errors) ✅
|
||||
|
||||
## Phase 4: 생산 — 30 errors
|
||||
|
||||
- [ ] `components/production/WorkOrders` (18 errors)
|
||||
- [ ] `components/production/WorkerScreen` (6 errors)
|
||||
- [ ] `components/production/WorkResults` (6 errors)
|
||||
- [x] `components/production/WorkOrders` (18 errors) ✅
|
||||
- [x] `components/production/WorkerScreen` (6 errors) ✅
|
||||
- [x] `components/production/WorkResults` (6 errors) ✅
|
||||
|
||||
## Phase 5: 주문/출고 — 36 errors
|
||||
|
||||
- [ ] `components/outbound/ShipmentManagement` (18 errors)
|
||||
- [ ] `components/orders` (18 errors)
|
||||
- [ ] `components/orders/documents` (4 errors)
|
||||
- [x] `components/outbound/ShipmentManagement` (18 errors) ✅
|
||||
- [x] `components/orders` (18 errors) ✅
|
||||
- [x] `components/orders/documents` (4 errors) ✅
|
||||
|
||||
## Phase 6: 견적/단가 — 18 errors
|
||||
|
||||
- [ ] `components/quotes` (16 errors)
|
||||
- [ ] `components/pricing` (2 errors)
|
||||
- [x] `components/quotes` (16 errors) ✅
|
||||
- [x] `components/pricing` (2 errors) ✅
|
||||
|
||||
## Phase 7: 건설 — 50 errors
|
||||
|
||||
- [ ] `components/business/construction/item-management` (8 errors)
|
||||
- [ ] `components/business/construction/order-management` (7 errors)
|
||||
- [ ] `components/business/construction/structure-review` (5 errors)
|
||||
- [ ] `components/business/construction/site-management` (5 errors)
|
||||
- [ ] `components/business/construction/estimates` (4 errors)
|
||||
- [ ] `components/business/construction/estimates/sections` (3 errors)
|
||||
- [ ] `components/business/construction/pricing-management` (3 errors)
|
||||
- [ ] `components/business/construction/handover-report` (3 errors)
|
||||
- [ ] `components/business/construction/worker-status` (2 errors)
|
||||
- [ ] `components/business/construction/management` (2 errors)
|
||||
- [ ] `components/business/construction/contract` (2 errors)
|
||||
- [ ] `components/business/construction/utility-management` (1 error)
|
||||
- [ ] `components/business/construction/site-briefings` (1 error)
|
||||
- [ ] `components/business/construction/progress-billing` (1 error)
|
||||
- [ ] `components/business/construction/order-management/dialogs` (1 error)
|
||||
- [ ] `components/business/construction/category-management` (1 error)
|
||||
- [ ] `components/business/construction/bidding` (1 error)
|
||||
- [x] `components/business/construction/item-management` (8 errors) ✅
|
||||
- [x] `components/business/construction/order-management` (7 errors) ✅
|
||||
- [x] `components/business/construction/structure-review` (5 errors) ✅
|
||||
- [x] `components/business/construction/site-management` (5 errors) ✅
|
||||
- [x] `components/business/construction/estimates` (4 errors) ✅
|
||||
- [x] `components/business/construction/estimates/sections` (3 errors) ✅
|
||||
- [x] `components/business/construction/pricing-management` (3 errors) ✅
|
||||
- [x] `components/business/construction/handover-report` (3 errors) ✅
|
||||
- [x] `components/business/construction/worker-status` (2 errors) ✅
|
||||
- [x] `components/business/construction/management` (2 errors) ✅
|
||||
- [x] `components/business/construction/contract` (2 errors) ✅
|
||||
- [x] `components/business/construction/utility-management` (1 error) ✅
|
||||
- [x] `components/business/construction/site-briefings` (1 error) ✅
|
||||
- [x] `components/business/construction/progress-billing` (1 error) ✅
|
||||
- [x] `components/business/construction/order-management/dialogs` (1 error) ✅
|
||||
- [x] `components/business/construction/category-management` (1 error) ✅
|
||||
- [x] `components/business/construction/bidding` (1 error) ✅
|
||||
|
||||
## Phase 8: HR — 24 errors
|
||||
|
||||
- [ ] `components/hr/CardManagement/_legacy` (13 errors)
|
||||
- [ ] `components/hr/CardManagement` (3 errors)
|
||||
- [ ] `components/hr/VacationManagement` (2 errors)
|
||||
- [ ] `components/hr/EmployeeManagement` (2 errors)
|
||||
- [ ] `components/hr/SalaryManagement` (1 error)
|
||||
- [ ] `components/attendance` (2 errors)
|
||||
- [x] `components/hr/CardManagement/_legacy` (13 errors) ✅
|
||||
- [x] `components/hr/CardManagement` (3 errors) ✅
|
||||
- [x] `components/hr/VacationManagement` (2 errors) ✅
|
||||
- [x] `components/hr/EmployeeManagement` (2 errors) ✅
|
||||
- [x] `components/hr/SalaryManagement` (1 error) ✅
|
||||
- [x] `components/attendance` (2 errors) ✅
|
||||
|
||||
## Phase 9: 설정 — 26 errors
|
||||
|
||||
- [ ] `components/settings/PermissionManagement` (10 errors)
|
||||
- [ ] `components/settings/AccountManagement/_legacy` (6 errors)
|
||||
- [ ] `components/settings/PopupManagement` (4 errors)
|
||||
- [ ] `components/settings/SubscriptionManagement` (3 errors)
|
||||
- [ ] `components/settings/AccountManagement` (2 errors)
|
||||
- [ ] `components/settings/NotificationSettings` (2 errors)
|
||||
- [ ] `components/settings/CompanyInfoManagement` (2 errors)
|
||||
- [ ] `components/settings/TitleManagement` (1 error)
|
||||
- [ ] `components/settings/RankManagement` (1 error)
|
||||
- [x] `components/settings/PermissionManagement` (10 errors) ✅
|
||||
- [x] `components/settings/AccountManagement/_legacy` (6 errors) ✅
|
||||
- [x] `components/settings/PopupManagement` (4 errors) ✅
|
||||
- [x] `components/settings/SubscriptionManagement` (3 errors) ✅
|
||||
- [x] `components/settings/AccountManagement` (2 errors) ✅
|
||||
- [x] `components/settings/NotificationSettings` (2 errors) ✅
|
||||
- [x] `components/settings/CompanyInfoManagement` (2 errors) ✅
|
||||
- [x] `components/settings/TitleManagement` (1 error) ✅
|
||||
- [x] `components/settings/RankManagement` (1 error) ✅
|
||||
|
||||
## Phase 10: 게시판 — 15 errors
|
||||
|
||||
- [ ] `components/board/BoardManagement` (9 errors)
|
||||
- [ ] `components/board/BoardList` (3 errors)
|
||||
- [ ] `components/board/CommentSection` (1 error)
|
||||
- [ ] `components/board/BoardForm` (1 error)
|
||||
- [ ] `components/board/BoardDetail` (1 error)
|
||||
- [x] `components/board/BoardManagement` (9 errors) ✅
|
||||
- [x] `components/board/BoardList` (3 errors) ✅
|
||||
- [x] `components/board/CommentSection` (1 error) ✅
|
||||
- [x] `components/board/BoardForm` (1 error) ✅
|
||||
- [x] `components/board/BoardDetail` (1 error) ✅
|
||||
|
||||
## Phase 11: 회계 — 17 errors
|
||||
|
||||
- [ ] `components/accounting/VendorManagement` (4 errors)
|
||||
- [ ] `components/accounting/BadDebtCollection` (4 errors)
|
||||
- [ ] `components/accounting/CardTransactionInquiry` (3 errors)
|
||||
- [ ] `components/accounting/WithdrawalManagement` (2 errors)
|
||||
- [ ] `components/accounting/DepositManagement` (2 errors)
|
||||
- [ ] `components/accounting/BillManagement` (2 errors)
|
||||
- [ ] `components/accounting/VendorLedger` (1 error)
|
||||
- [ ] `components/accounting/SalesManagement` (1 error)
|
||||
- [ ] `components/accounting/PurchaseManagement` (1 error)
|
||||
- [ ] `components/accounting/ExpectedExpenseManagement` (1 error)
|
||||
- [x] `components/accounting/VendorManagement` (4 errors) ✅
|
||||
- [x] `components/accounting/BadDebtCollection` (4 errors) ✅
|
||||
- [x] `components/accounting/CardTransactionInquiry` (3 errors) ✅
|
||||
- [x] `components/accounting/WithdrawalManagement` (2 errors) ✅
|
||||
- [x] `components/accounting/DepositManagement` (2 errors) ✅
|
||||
- [x] `components/accounting/BillManagement` (2 errors) ✅
|
||||
- [x] `components/accounting/VendorLedger` (1 error) ✅
|
||||
- [x] `components/accounting/SalesManagement` (1 error) ✅
|
||||
- [x] `components/accounting/PurchaseManagement` (1 error) ✅
|
||||
- [x] `components/accounting/ExpectedExpenseManagement` (1 error) ✅
|
||||
|
||||
## Phase 12: 기타 모듈 — ~30 errors
|
||||
|
||||
- [ ] `components/business/CEODashboard` (3 errors)
|
||||
- [ ] `components/business` (기타 2 errors)
|
||||
- [ ] `components/clients` (4 errors)
|
||||
- [ ] `components/customer-center/InquiryManagement` (5 errors)
|
||||
- [ ] `components/customer-center/NoticeManagement` (1 error)
|
||||
- [ ] `components/customer-center/EventManagement` (1 error)
|
||||
- [ ] `components/vehicle-management` (8 errors)
|
||||
- [ ] `components/items` (5 errors)
|
||||
- [ ] `components/approval` (3 errors)
|
||||
- [ ] `components/dev/generators` (5 errors)
|
||||
- [ ] `components/quality/InspectionManagement` (1 error)
|
||||
- [ ] `components/process-management` (1 error)
|
||||
- [ ] `components/ui` (1 error)
|
||||
- [x] `components/business/CEODashboard` (3 errors) ✅
|
||||
- [x] `components/business` (기타 2 errors) ✅
|
||||
- [x] `components/clients` (4 errors) ✅
|
||||
- [x] `components/customer-center/InquiryManagement` (5 errors) ✅
|
||||
- [x] `components/customer-center/NoticeManagement` (1 error) ✅
|
||||
- [x] `components/customer-center/EventManagement` (1 error) ✅
|
||||
- [x] `components/vehicle-management` (8 errors) ✅
|
||||
- [x] `components/items` (5 errors) ✅
|
||||
- [x] `components/approval` (3 errors) ✅
|
||||
- [x] `components/dev/generators` (5 errors) ✅
|
||||
- [x] `components/quality/InspectionManagement` (1 error) ✅
|
||||
- [x] `components/process-management` (1 error) ✅
|
||||
- [x] `components/ui` (1 error) ✅
|
||||
|
||||
## Phase 13: 유틸/훅/API — 8 errors
|
||||
|
||||
- [ ] `hooks` (3 errors)
|
||||
- [ ] `contexts` (2 errors)
|
||||
- [ ] `lib/api/dashboard` (2 errors)
|
||||
- [ ] `lib/api` (1 error)
|
||||
- [ ] `lib/utils` (1 error)
|
||||
- [ ] `app/api/pdf/generate` (1 error)
|
||||
- [x] `hooks` (3 errors) ✅
|
||||
- [x] `contexts` (2 errors) ✅
|
||||
- [x] `lib/api/dashboard` (2 errors) ✅
|
||||
- [x] `lib/api` (1 error) ✅
|
||||
- [x] `lib/utils` (1 error) ✅
|
||||
- [x] `app/api/pdf/generate` (1 error) ✅
|
||||
|
||||
---
|
||||
|
||||
@@ -132,16 +133,18 @@
|
||||
|
||||
| Phase | 대상 | 에러 수 | 상태 |
|
||||
|-------|------|---------|------|
|
||||
| 1 | 공통 템플릿 | 13 | ⏳ |
|
||||
| 2 | 페이지 | 80 | ⏳ |
|
||||
| 3 | 재고/자재 | 36 | ⏳ |
|
||||
| 4 | 생산 | 30 | ⏳ |
|
||||
| 5 | 주문/출고 | 36 | ⏳ |
|
||||
| 6 | 견적/단가 | 18 | ⏳ |
|
||||
| 7 | 건설 | 50 | ⏳ |
|
||||
| 8 | HR | 24 | ⏳ |
|
||||
| 9 | 설정 | 26 | ⏳ |
|
||||
| 10 | 게시판 | 15 | ⏳ |
|
||||
| 11 | 회계 | 17 | ⏳ |
|
||||
| 12 | 기타 모듈 | ~30 | ⏳ |
|
||||
| 13 | 유틸/훅/API | 8 | ⏳ |
|
||||
| 1 | 공통 템플릿 | 13 | ✅ 완료 |
|
||||
| 2 | 페이지 | 80 | ✅ 완료 |
|
||||
| 3 | 재고/자재 | 36 | ✅ 완료 |
|
||||
| 4 | 생산 | 30 | ✅ 완료 |
|
||||
| 5 | 주문/출고 | 36 | ✅ 완료 |
|
||||
| 6 | 견적/단가 | 18 | ✅ 완료 |
|
||||
| 7 | 건설 | 50 | ✅ 완료 |
|
||||
| 8 | HR | 24 | ✅ 완료 |
|
||||
| 9 | 설정 | 26 | ✅ 완료 |
|
||||
| 10 | 게시판 | 15 | ✅ 완료 |
|
||||
| 11 | 회계 | 17 | ✅ 완료 |
|
||||
| 12 | 기타 모듈 | ~30 | ✅ 완료 |
|
||||
| 13 | 유틸/훅/API | 8 | ✅ 완료 |
|
||||
|
||||
**최종 결과: 408 errors → 0 errors (155 files across 13 phases)**
|
||||
|
||||
Reference in New Issue
Block a user