Skip to content

refactor: [TA-265] 도메인 리스트 렌더의 any 타입 제거(기존 타입 적용) - #137

Merged
seorinn merged 1 commit into
developfrom
TA-265-anytype-domain-list
Jun 29, 2026
Merged

seorinn merged 1 commit into
developfrom
TA-265-anytype-domain-list

Conversation

@seorinn

@seorinn seorinn commented Jun 29, 2026 •

Copy link
Copy Markdown
Collaborator

변경 사항

도메인 리스트를 렌더하는 .map 콜백/리스트 상태/Props의 any를 기존 src/types로 교체 (A유형만, 런타임 동작 변화 없음).

  • SearchPage/Photographers: data/useState/map → PhotographerListItem
  • SearchPage/Promotions: data/useState → PromotionListItem
  • SearchPage/Overview: promotionList/photographerList Props → 각 타입, map 추론
  • PromotionBox: activeRegions(region: any→Region), postData images: any[]→ImageFile[], author: any→{ nickname; isAdmin } | null
  • MainHome/BannerBox: 로컬 배너 배열 인라인 타입 지정

배경

TA-248에서 item: any 때문에 null 가드가 누락됐던 것과 같은 계열의 잠재 버그를 예방. 정확한 타입이 이미 src/types에 존재하여 위험 없이 적용 가능.

스코프

  • 폼 상태(useState<any>), 이벤트/에러 핸들러(e: any), 외부 SDK(카카오맵 Location), 혼합 콘텐츠(SavedContents)는 위험·저가치로 제외.

테스트

  • tsc 통과(전 체인 타입 연결 확인), 전체 40 suites / 170 tests 통과
  • Opus 코드리뷰: 머지 가능 판정(리뷰 지적 PromotionBox 잔여 any 동반 처리 완료)

Closes TA-265

@vercel

vercel Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment Jun 29, 2026 8:23am

@seorinn
seorinn marked this pull request as ready for review June 29, 2026 08:24
@seorinn
seorinn merged commit 5e2916a into develop Jun 29, 2026
3 checks passed
@seorinn
seorinn deleted the TA-265-anytype-domain-list branch June 29, 2026 08:24

This branch was successfully deployed

1 active deployment
Preview — 08814ef0 Deployed Jun 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant