2024-05-13.md
π‘DIL: μ΄νν°λΈ νμ μ€ν¬λ¦½νΈ
μ€ν°λ: μκ° CS, https://github.com/monthly-cs/2024-05-effective-typescript
μμ±μΌ: 2024-05-13
μμ±μ: dusunax
2μ₯. νμ μ€ν¬λ¦½νΈμ νμ μμ€ν
μμ΄ν 6: editorλ₯Ό μ¬μ©νμ¬ νμ μμ€ν νμνκΈ°
- tsc: νμ μ€ν¬λ¦½νΈ μ»΄νμΌλ¬
- tsserver: λ¨λ μΌλ‘ μ€νν μ μλ νμ μ€ν¬λ¦½νΈ μλ², μΈμ΄ μλΉμ€ μ μ©
μΈμ΄ μλΉμ€λ?
- μ½λ μλ μμ±, λͺ μΈ specification κ²μ¬, κ²μ, 리ν©ν°λ§
- μΆλ‘ μ 보λ₯Ό λλ²κΉ μ μ¬μ©
νμ λνκΈ°, μ’νκΈ°
- 쑰건문 λΆκΈ°μμ κ°μ νμ λ³ν
- κ°μ²΄μ κ°λ³ μμ± μΆλ‘
- μ°μ°μ μ²΄μΈ μ€κ° μΆλ‘ λ μ λλ¦ νμ -> λ©μλ μ΄λ¦μ μ‘°μ¬
Go To Definition
- λΌμ΄λΈλ¬λ¦¬, λΌμ΄λΈλ¬λ¦¬μ νμ
μ μΈμ νμν λ λμμ΄ λ¨
- d.ts νμΌ
μμ½
Things to Remember
- Take advantage of the TypeScript language services by using an editor that supports them.
- νΈμ§κΈ°μμ νμ μ€ν¬λ¦½νΈ μΈμ΄λ₯Ό νμ©νλ€
- Use your editor to build an intuition for how the type system works and how TypeScript infers types.
- νΈμ§κΈ°λ₯Ό μ¬μ©ν΄μ μ΄λ»κ² νμ μμ€ν μ΄ λμνλ μ§, νμ μ€ν¬λ¦½νΈκ° μ΄λ»κ² νμ μ μΆλ‘ νλ μ§ κ°λ μ μ‘λλ€
- Familiarize yourself with TypeScript's refactoring tools, e.g., renaming symbols and files.
- Know how to jump into type declaration files to see how they model behavior.
- νμ μ€ν¬λ¦½νΈκ° λμμ μ΄λ»κ² λͺ¨λΈλ§νλ μ§ μκΈ° μν΄ νμ μ μΈ νμΌμ μ°Ύμ보λ λ°©λ²μ ν°λνλ€