[230615] TypeScript 공식문서 (Object Types)
1. Typescript Object Type
- 공식문서 Object Type 부분 반정도 읽음
- 학습 페이지 - Object Type
undefined 처리
interface Shape {}
declare function getShape(): Shape;
interface PaintOptions {
shape: Shape;
xPos?: number;
yPos?: number;
}
// ---cut---
function paintShape(opts: PaintOptions) {
let xPos = opts.xPos === undefined ? 0 : opts.xPos;
// ^?
let yPos = opts.yPos === undefined ? 0 : opts.yPos;
// ^?
// ...
}
2. 사이드프로젝트 오프라인 회의
- 각자 한거 머지 진행
- 백엔드랑 다음 스프린트 API 설계함
- 1차 스프린트 종료하고 다음주까지 해야할 분량 정함
Leave a comment