인터페이스나 타입 만들떄
interface company {
name: string;
chirman?: string;
}
이렇게 쓰면 ?: chirman은 넣어도되고 안넣어도된다
'programming > javascript' 카테고리의 다른 글
[typescript] 클래스 선언 방법 (0) | 2023.04.23 |
---|---|
[typescript] inject,injectable데코레이터 토큰 ,프로바이더 (0) | 2023.04.20 |
pnpm (0) | 2023.04.18 |
[express] nodemon 사용법 (0) | 2023.04.15 |
shift, splice, slice 함수 사용법 정리 (0) | 2023.04.08 |