Open WONILLISM opened 2 years ago
typescript와 styled-components와 연결해보자
@types/styled-components를 통해 타입 정의를 한 것을 theme에 적용시키기 위해 확장할 필요가있다. styled.d.ts라는 이름으 declaration(선언) 파일을 만들어야한다.
@types/styled-components
styled.d.ts
theme.ts 파일에 선언된 타입들을 적용시킬 수 있다.
theme.ts
typescript와 styled-components와 연결해보자