Skip to content

[refactor]: AuthorBarChart 컴포넌트 any 타입 개선 #987

Description

@yuminnnnni

연관된 이슈

#954

📋 Description

AuthorBarChart 컴포넌트에서 D3 콜백 함수들이 any 타입을 사용하고 있어 타입 안정성이 떨어집니다.

🔍 Current Issues

다음 위치에서 any 타입이 사용되고 있습니다:

  • Line 172: .data(data, (d: any) => ...)
  • Line 182, 209, 213-215: bar 렌더링 콜백의 (d: any)
  • Line 239, 243, 247: image 렌더링 콜백의 (d: any)

✅ Expected Behavior

  • 바 차트 데이터: AuthorDataType 사용
  • 이미지 데이터: { name: string; src: string } 타입 정의 후 사용

📝 Implementation

  • 이미지 데이터를 위한 타입 정의 (예: AuthorImageData)
  • 모든 d3 콜백 함수의 파라미터 타입을 명시적으로 지정
  • 타입 안정성 확인 및 테스트

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions