🩻타입 컨벤션
타입을 정의하는 규칙에 대해 작성한 문서
/**
* + 책 유형
* 1. `thriller`: 스릴러
* 2. `mystery`: 추리소설
* 3. `romance`: 로맨스 소설
* 4. `horror`: 공포 소설
* 5. `fantasy`: 판타지 소설
*/
export type TBookType = 'thriller' | 'mystery' | 'romance' | 'horror' | 'fantasy';
/** 책의 스키마 타입 */
export interface IBook {
/** 식별자 */
id: number;
/** 제목 */
title: string;
/** 작가 */
author: string;
/** 책 유형 */
type: TBookType;
}🎈 접두사
📖 TSDoc
📦 API 타입
0️⃣ 요청 타입
1️⃣ 응답 타입
🗂️ 타입 정의 위치
Last updated