한 파일에 몰아넣기? 분리하기?

똑같은 고민 하는 사람 많나보다. 아래 자료들 참고

 

결론) 프로젝트마다, 필요에 따라 다름.

- 누구나 import 가능한 global 파일에 정리 

- 각 컴포넌트 폴더에 나눠서 정리 (granularly)

 

 

How to organize TypeScript interfaces

 

 

TypeScript | Organizing and Storing Types and Interfaces

https://www.becomebetterprogrammer.com/typescript-organizing-and-storing-types-and-interfaces/#Global-based

 

TypeScript | Organizing and Storing Types and Interfaces

Are you are new to TypeScript and want to start working on your first project? Some of the questions many developers ask are: How do you structure your types in a TypeScript project? What is the best way to structure your typings that is robust and expanda

www.becomebetterprogrammer.com

TypeScript _ Organizing and Storing Types and Interfaces.mhtml
4.32MB

'<언어> > [Typescript]' 카테고리의 다른 글

[JS] Generator (Python의 그것)  (0) 2022.04.18

+ Recent posts