export const CLAIM_TYPE_MAP = {
CANCEL: '취소',
RETURN: '반품',
EXCHANGE: '교환'
};
keyof typeof CLAIM_TYPE_MAP 으로 사용하면 된다.
interface IClaimTypeMap {
claimType: keyof typeof CLAIM_TYPE_MAP //CANCEL | RETURN | EXCHANGE
}
'NOTE' 카테고리의 다른 글
gitignore에 dist추가해도 tracking 되는 이슈 (0) | 2024.06.27 |
---|---|
react-hook-form validate with zod (0) | 2023.08.17 |
react 패키지를 next로 컴파일 하는 패키지 (0) | 2023.08.06 |
리액트 오류: React DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node (0) | 2023.08.05 |
string 대문자, 소문자 체크하기 (0) | 2023.05.05 |