Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add @types for styled-components #108

Closed
2 tasks done
seongbin9786 opened this issue Apr 30, 2024 · 1 comment
Closed
2 tasks done

Fix: Add @types for styled-components #108

seongbin9786 opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@seongbin9786
Copy link
Contributor

문제점

styled-component가 v6버전이 아니어서 타입 정의가 제대로 되지 않아도 타입 체크를 통과합니다.

해결 방법

  • @types/styled-components 패키지를 설치합니다.
  • styled-component의 prop에도 Type 정의를 추가하고 Type Checking을 도입합니다. (기존에 발생했던 일부 오류들이 있는데 타입을 추가로 정의해줘서 오류를 제거합니다.)
@seongbin9786 seongbin9786 added the enhancement New feature or request label Apr 30, 2024
@seongbin9786 seongbin9786 self-assigned this Apr 30, 2024
@seongbin9786 seongbin9786 changed the title Add @types for styled-components Fix: Add @types for styled-components Apr 30, 2024
@seongbin9786
Copy link
Contributor Author

fixed by #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant