study
패스트캠퍼스 챌린지 16일차
변수에 타입 지정하기 타입스크립트의 타입은 primitive 타입과 object타입으로 나눌 수 있다. primitive 타입은 string, number, boolean 등 원시 타입이고, object타입은 객체 그 자체는 모든 것이 타입이 될 수 있기 때문에 수 없이 많다. type Store = { currentPage :number, feeds :NewsFeed[] } type NewsFeed = { id :number, comments_count :number, url :string, user :string; time_ago :string, points :number, title :string, read? :boolean } const container: HTMLElement | null = d..
2022. 2. 8. 11:02