틈틈히 업데이트 예정
https://stackoverflow.com/questions/59969756/not-assignable-to-type-intrinsicattributes-intrinsicclassattributes-react-jsIntrinsicAttributes and
class 문법을 사용할 때 type 지정
function type Alias. parameter 자리에 어떤 type이 들어오는지 정의, Arrow 옆에 return할 타입을 정의type myFuncType = (a:string|number) => number;const myFunc:myFuncType =
함수에 숫자 또는 문자를 집어넣으면 자릿수를 세어 출력해주는 함수를 만들어보십시오. 예를 들어 '245' 이런 문자를 입력하면 3이 return 되어야합니다. 숫자도 마찬가지로 9567 이런 숫자를 입력하면 4가 return 되어야합니다. 숫자 또는 문자 이외의 자료가
//Narrowing으로 판정해주는 문법들// 1. typeof 변수// 속성명 in 오브젝트 자료// instanceof 부모프로토타입// 현재 변수의타입이 무엇인지 특정지을 수 있다면 인정을 해준다. function func(x :number|string){
typescript 환경tsconfig 확인styled.d.ts 확인react-app-env.d.ts 확인theme.ts 확인npm i @types/styled-components확인state가 2개의 type을 갖게 설정할 수 있다. <type|type>으로 v
extends로 확장&(엔퍼센드)로 확장한다.Type은 주로 원시값, 튜플, union 타입을 정의하지만 객체 타입이 저장이 불가능한 것은 아니다.Interface는 interface의 이름이 같으면 자동확장된다.IData의 프로퍼티에 origin이 추가되면서, sal