3-3. 실습
//tsconfig.json { "compilerOptions": { "allowJs": true, "checkJs": true, "noImplicitAny": false }, "include": ["./src/**/*"] } 저기서 noImplicitAny를 true로 바꾸면 ts파일에 타입이 정해지지 않을것들에 빨간줄이 생길거다!!! noImplicitAny 의미는 any라고 붙여라. 이런의미이다. 실습하기전 상태 let todoItems; // api function fetchTodoItems() { const todos = [ { id: 1, title: '안녕', done: false }, { id: 2, title: '타입', done: false }, { id: 3, title: '스크립트'..
2023. 5. 7.