Skip to content

22.08.27

HyojinKim edited this page Aug 27, 2022 · 6 revisions

์ผ์‹œ : 22.08.27

์žฅ์†Œ : ํ† ์ฆˆ ๊ฐ•๋‚จํ† ์ฆˆํƒ€์›Œ์  (์˜คํ”„๋ผ์ธ)

์ฐธ์„์ž : ์˜ํƒ๋‹˜, ๋ฌธ๊ธฐ๋‹˜, ๋ฐ”์šธ๋‹˜, ํšจ์ง„๋‹˜, ์ฑ„์ •๋‹˜, ๋ฏผ์ •๋‹˜, ์˜ˆ์ง„๋‹˜, ํ•œ์Šฌ๋‹˜


author vs authors

author ๋กœ ๊ฐ€์ž!

CommitList vs Commits

s

  • rest api์—์„œ contents์ด๋‹ค! s๋ฅผ ๋ถ™์ด์ž.
  • ์งง์•„์„œ ์ข‹์Œ.
  • list๋Š” list ์ž๋ฃŒํ˜•์—๋งŒ ์“ธ ์ˆ˜ ์žˆ์„๊ฒƒ ๊ฐ™์Œ

list

  • ๊ทธ๋Ÿผ information์€?
  • s๋Š” ์•ˆ๋ณด์ด๊ธฐ๋„ ํ•จ. ์‹ค์ˆ˜ํ•  ์—ฌ์ง€๊ฐ€ ์žˆ์Œ

s๋กœ ๊ฐ‘์‹œ๋‹ค!

๋ถˆ๊ฐ€์‚ฐ๋ช…์‚ฌ๋„ s๋ฅผ ๋ถ™์ด๊ธฐ.

์•ฝ์–ด๋Š” ์ตœ๋Œ€ํ•œ ์ง€์–‘. ํ’€๋„ค์ž„์œผ๋กœ ์ ๊ธฐ

type vs interface

type, interface ๋‘˜๋‹ค Pick ์‚ฌ์šฉ ๊ฐ€๋Šฅ

type vs interface ๋น„๊ต ์ฐธ๊ณ ์ž๋ฃŒ ๊ณต์œ ๋“œ๋ฆฝ๋‹ˆ๋‹ค~!

[https://velog.io/@jeong3320/typescripttype๊ณผ-interface์˜-์ฐจ์ด์ž‘์„ฑ์ค‘](https://velog.io/@jeong3320/typescripttype%EA%B3%BC-interface%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%9E%91%EC%84%B1%EC%A4%91)

https://velog.io/@youngjewoo/TypeScript-type-vs-interface

https://bny9164.tistory.com/48


๋ฉ”๋ชจ

  • ๊ณต์‹ ๊ฐ€์ด๋“œ๋ฌธ์„œ์—์„œ inferface ๋ฅผ ์šฐ์„ ํ•˜๊ณ , ํŠน๋ณ„ํ•œ ๋ฌธ์ œ๊ฐ€ ์žˆ์„๋•Œ๋งŒ type ์„ ์‚ฌ์šฉํ•˜๋„๋ก ๊ถŒ์žฅ

  • interface ๋Š” ๊ฐ์ฒดํ˜•ํƒœ์˜ ํƒ€์ž…์ •์˜๋งŒ ๊ฐ€๋Šฅ

    • ๋‹จ์ผํƒ€์ž…, ํŠœํ”Œํƒ€์ž…, computed value ๋“ฑ ์‚ฌ์šฉ ๋ถˆ๊ฐ€
    • ์„ ์–ธ๋ณ‘ํ•ฉ ์‚ฌ์šฉ ๊ฐ€๋Šฅ
  • interface ๊ฐ€ ์ปดํŒŒ์ผ ์„ฑ๋Šฅ์—์„œ ๋” ์œ ๋ฆฌํ•จ

  • interface ํ•ฉ์„ฑ์‹œ ์บ์‹œ ์ ์šฉ๋˜์ง€๋งŒ, type ํ•ฉ์„ฑ์‹œ ๋ชจ๋“  type๊ตฌ์„ฑ์š”์†Œ๋ฅผ ์ˆœํšŒํ•˜๋ฉด์„œ ์ฒดํฌํ•จ (์„ฑ๋Šฅ์ €ํ•˜)

interface๋กœ ๊ฒฐ์ •!

enum์€ ์ตœ๋Œ€ํ•œ ์ง€์–‘

https://engineering.linecorp.com/ko/blog/typescript-enum-tree-shaking

git log interface ํŒŒ์ผ ์ด๋ฆ„?

ํ˜„์žฌ๋Š” parseInterface

commitRaw.type.ts

src

  types

    commitRaw.ts

autor์€ 1๋ช…๋งŒ ๊ณ ๋ คํ•˜์ž!

MVP์—์„œ๋Š” 1๋ช…๋งŒโ€ฆ.

co author์€ ์ผ๋‹จ ๊ณ ๋ คํ•˜์ง€ ๋ง์ž

githru๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์‚ฌ๋žŒ ์ž…์žฅ์—์„œ git commit ์˜ ์‹œ๊ฐ์  ๋ฐ์ดํ„ฐ ํ๋ฆ„์— ๋” ๊ด€์‹ฌ์ด ์žˆ์„ ๊ฒƒ ๊ฐ™๊ณ  co author ๋ณ„๋กœ ๋ถ„๋ฆฌํ•ด์„œ ๋ณด๋Š” ๊ฒƒ์€ ๋‹ˆ์ฆˆ๊ฐ€ ๋งŽ์ง€ ์•Š์„ ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ•œ๋‹ค.

Basic/Root/Merge type

๋Š” ๊ตฌ๋ถ„ํ•˜์ง€ ๋ง์ž.

files โ†’ fileDictionary

ํ•„๋“œ๋ช… ๋ณ€๊ฒฝ ํ•„์š”ํ•˜๋ฉด ๋…ผ์˜์ฃผ์„ธ์š”