Typescript 프로젝트의 naming convention백엔드/NodeJS | Typescript2023. 12. 7. 21:46
Table of Contents
반응형
Enforcing a naming convention keeps the code base consistent and reduces overhead when thinking about how to name a variable. We recommend the following:
Use camelCase for variable and function names.Use PascalCase for class names and interface names.Use camelCase for interface members.Use PascalCase for type names and enum names.Name files with camelCase (for example, ebsVolumes.tsx or storage.tsb)
파일이름은 camelCase 방식을 사용하는것 같다.
다른 항목들에 대해서는 아래와 같이 정리한다고 한다.
변수명, 함수명 | camelCase |
클래스명, 인터페이스명 | PascalCase |
인터페이스 멤버 | camelCase |
type 이름, enum 이름 | PascalCase |
파일 이름 | camelCase |
반응형
'백엔드 > NodeJS | Typescript' 카테고리의 다른 글
Typescript - TypeORM 적용 (1) | 2023.12.25 |
---|---|
Typescript - TypeORM 사용해서 DB 쿼리하기 (0) | 2023.12.13 |
Typescript 이해하기 - Async/Await 이해하기 (0) | 2023.11.28 |
Typescript 이해하기 - 제너레이터 이해하기 (0) | 2023.11.28 |
Typescript 이해하기 - Promise 이해하기 (0) | 2023.11.27 |
@ray5273 :: Micro Changes, Macro Impact
개발 및 IT 관련 포스팅을 작성 하는 블로그입니다.
IT 기술 및 개인 개발에 대한 내용을 작성하는 블로그입니다. 많은 분들과 소통하며 의견을 나누고 싶습니다.