Upgrade to Pro — share decks privately, control downloads, hide ads and more …

suppress-ts-errors を使って TypeScriptの型チェックを漸進的に強化する / Introducing-suppress-ts-errors

0a16f7b8629f2facca2a1e80a73c5423?s=47 ryo
June 15, 2022

suppress-ts-errors を使って TypeScriptの型チェックを漸進的に強化する / Introducing-suppress-ts-errors

2022/06/15 Frontend LT回#7

0a16f7b8629f2facca2a1e80a73c5423?s=128

ryo

June 15, 2022
Tweet

More Decks by ryo

Other Decks in Technology

Transcript

  1. TVQQSFTTUTFSSPSTΛ࢖ͬͯ 5ZQF4DSJQUͷܕνΣοΫΛ઴ਐత ʹڧԽ͢Δ 'SPOUFOE-5ճ

  2. ࣗݾ঺հ

  3. !,BXBNBUB3ZP 🔥ݩফ๷࢜ 👨💻&OHJOFFS!-"13"4JOD ❤5ZQF4DSJQU 7VF 'JSFCBTF 1ZUIPO 💪झຯݒਨ ݸਓ։ൃ

  4. ࠓ೔࿩͢͜ͱ ɾTVQQSFTTUTFSSPSTͷ঺հ ɾ։ൃͷ;Γ͔͑Γ

  5. TVQQSFTTUTFSSPSTͱ͸ʁ

  6. None
  7. 5ZQF4DSJQUͷܕΤϥʔൃੜՕॴʹɺ !UTFYQFDUFSSPSͷίϝϯτΛૠೖͯ͠ ܕΤϥʔΛແޮԽ͢Δ$-*πʔϧ 🛠ػೳ

  8. 5ZQF4DSJQUͷܕΤϥʔൃੜՕॴʹɺ !UTFYQFDUFSSPSͷίϝϯτΛૠೖͯ͠ ܕΤϥʔΛແޮԽ͢Δ$-*πʔϧ 🛠ػೳ !UTFYQFDUFSSPS͸࣍ߦͷܕΤϥʔΛ཈੍͢Δɻ͔ ͭɺ΋࣍͠ߦʹܕΤϥʔ͕ͳ͘ͳͬͨ৔߹͸ɺ!UT FYQFDUFSSPSࣗମ͕ΤϥʔʹͳΔ

  9. 🛠ػೳ 54 549ͳͲจ຺ΛΈͯద੾ͳίϝϯτ͕ૠೖ͞ΕΔ

  10. 5ZQF4DSJQUԽΛ͢͢ΊΔաఔͰͷδϨϯϚΛ ղফ͠ɺ઴ਐతʹܕΤϥʔΛ౗͍ͯͨ͘͠Ί 🛠։ൃཧ༝

  11. $*ͰܕνΣοΫΛ࣮ߦͯ͠ɺ ৽نίʔυʹܕΤϥʔ͕ ࠞೖ͢Δ͜ͱ͸๷͍͗ͨ 🙈5ZQF4DSJQUԽͷδϨϯϚ طଘͷίʔυʹܕΤϥʔ͕ଟ ͗ͯ͢ɺڧ͍ܕνΣοΫͷઃ ఆͰ$*Λ௨͢͜ͱ͕Ͱ͖ͳ͍ 74

  12. $*ͰܕνΣοΫΛ࣮ߦͯ͠ɺ ৽نίʔυʹܕΤϥʔ͕ ࠞೖ͢Δ͜ͱ͸๷͍͗ͨ 🙈5ZQF4DSJQUԽͷδϨϯϚ طଘͷίʔυʹܕΤϥʔ͕ଟ ͗ͯ͢ɺڧ͍ܕνΣοΫͷઃ ఆͰ$*Λ௨͢͜ͱ͕Ͱ͖ͳ͍ 74 ݁Ռɺ؇͍ܕνΣοΫͷ·· $*Λ࣮ߦ͢Δ͜ͱʹͳΓɺ͍ͭ·

    Ͱ΋ܕνΣοΫΛڧԽͰ͖ͳ͍
  13. طଘܕΤϥʔΛҰ౓ʹશͯແޮ ԽͰ͖ΔͷͰɺڧ͍ܕνΣοΫ Ͱ΋$*Λ௨ͤΔ ✅TVQQSFTTUTFSSPSTͰͷղܾ ৽نίʔυ͸ڧ͍ܕνΣοΫͰ कΒΕͨঢ়ଶΛҡ࣋Ͱ͖Δɻ

  14. طଘܕΤϥʔΛҰ౓ʹશͯແޮ ԽͰ͖ΔͷͰɺڧ͍ܕνΣοΫ Ͱ΋$*Λ௨ͤΔ ✅TVQQSFTTUTFSSPSTͰͷղܾ طଘίʔυͷ!UTFYQFDUFSSPS Λॱ࣍ফͯ͠ߦ͚͹઴ਐతʹ ܕΤϥʔΛվળग़དྷΔ ৽نίʔυ͸ڧ͍ܕνΣοΫͰ कΒΕͨঢ়ଶΛҡ࣋Ͱ͖Δɻ

  15. %&.0🧑💻

  16. ࢓૊Έɾ޻෉

  17. UTNPSQIͰ5ZQF4DSJQU$PNQJMFS"1* Λૢ࡞͠ܕΤϥʔΛऔಘ ࢓૊Έ

  18. 5ZQF4DSJQU$PNQJMFS"1*ͱ͸ʁ UTD͕಺෦తʹߦ͍ͬͯΔ͜ͱΛϓϩάϥϜ͔Βݺͼग़͢"1*ɻ "45Λૢ࡞ͯ͠ίʔυͷ੩తղੳ΍ॻ͖׵͑ɺग़ྗ͕ߦ͑Δɻ

  19. UTNPSQIͱ͸ʁ 5ZQF4DSJQU$PNQJMFS"1*Λϥοϓͯ͠ɺ࢖͍΍͍͢"1*Λ ఏڙͯ͘͠ΕΔϥΠϒϥϦ ϑΝΠϧͷ*0ɺ&SSPSͷऔಘ΍ίʔυ ͷτϥόʔεɺॻ͖׵͑ͳͲɺ Α͘࢖͏"1*͕੔උ͞Ε͍ͯΔɻ

  20. ͲͷΑ͏ʹίϝϯτΛ௥Ճ͍ͯ͠Δͷʁ TSDMJCTVQQSFTTUTFSSPSTUT

  21. ͲͷΑ͏ʹίϝϯτΛ௥Ճ͍ͯ͠Δͷʁ TSDMJCTVQQSFTTUTFSSPSTUT ϑΝΠϧͷςΩετΛऔಘͯ͠ɺ ߦ͝ͱͷίʔυ഑ྻʹ֨ೲ

  22. ϑΝΠϧΛղੳͯ͠ܕΤϥʔͷ "45/PEFΛॱ࣍औಘ ͲͷΑ͏ʹίϝϯτΛ௥Ճ͍ͯ͠Δͷʁ TSDMJCTVQQSFTTUTFSSPSTUT

  23. TSDMJCTVQQSFTTUTFSSPSTUT ͲͷΑ͏ʹίϝϯτΛ௥Ճ͍ͯ͠Δͷʁ ૠೖҐஔͷจ຺ɺܕΤϥʔͷछผʹ ߹ΘͤͯίϝϯτΛ࡞੒ UTYͷ৔߹͸AAͰ͸ͳ͘A\  ^A ͰͷίϝϯτΞ΢τʹͳΔͳͲ

  24. TSDMJCTVQQSFTTUTFSSPSTUT ͲͷΑ͏ʹίϝϯτΛ௥Ճ͍ͯ͠Δͷʁ ࡞੒ͨ͠ίϝϯτΛɺ อ͍࣋ͯͨ͠ߦ͝ͱͷίʔυ഑ྻ ͷద੾ͳҐஔʹ௥Ճ

  25. TSDMJCTVQQSFTTUTFSSPSTUT ͲͷΑ͏ʹίϝϯτΛ௥Ճ͍ͯ͠Δͷʁ ࠷ऴతʹίϝϯτ͕௥Ճ͞Εͨ ߦ͝ͱͷίʔυ഑ྻΛKPJOͯ͠ɺ ܕΤϥʔ͕ίϝϯτΞ΢τ͞Εͨ ϑΝΠϧςΩετΛऔಘ

  26. 5ZQF4DSJQUɺ549͚ͩͰͳ͘ 7VFͷ4'$ʹ΋ରԠ ޻෉

  27. %&.0🧑💻

  28. Ͳ͏΍ͬͯ7VFͷ4'$ʹରԠ͍ͯ͠Δʁ TSDIBOEMFSTWVF)BOEMFSUT

  29. Ͳ͏΍ͬͯ7VFͷ4'$ʹରԠ͍ͯ͠Δʁ HMPCQBUUFSOͰ fi MFΛऔಘ fi MFͷGFBE'JMFͰಡΈऔΓɺ TDSJQUMBOHlUTzͷ಺෦ͷ ςΩετΛநग़ TSDIBOEMFSTWVF)BOEMFSUT

  30. Ͳ͏΍ͬͯ7VFͷ4'$ʹରԠ͍ͯ͠Δʁ ϓϩδΣΫτ಺ͷUTDPO fi HKTPOΛݩ ʹUTNPSQIͷ1SPKFDUΛ࡞੒ɻ ͦͷ಺෦ʹઌఔநग़ͨ͠7VFͷεΫ Ϧϓτ෦෼Λ54ϑΝΠϧͱͯ͠௥Ճ TSDIBOEMFSTWVF)BOEMFSUT

  31. Ͳ͏΍ͬͯ7VFͷ4'$ʹରԠ͍ͯ͠Δʁ ͦͷ54ϑΝΠϧʹରͯ͠ɺܕνΣο Ϋͱίϝϯτͷ௥ՃΛ࣮ߦɻ ৽͍͠TDSJQUͰ7VFͷ4'$Λஔ׵ TSDIBOEMFSTWVF)BOEMFSUT

  32. ࣮ࡍͷӡ༻

  33. -"13"4Ͱ࣮ࡍʹར༻ 5ZQF4DSJQUͷܕڧԽʹߩݙ

  34. TVQQSFTTUTFSSPSΛ࣮ߦͨ͠13 TUSJDUUSVFʹͯ͠ɺ 54ͷόʔδϣϯΞοϓ

  35. !UTFYQFDUFSSPSΛ౗͢13 Τϥʔछผ͝ͱʹॱ࣍ ౗͍͍ͯͬͯ͠Δ

  36. ܕΤϥʔղফͷਪҠ !UTFYQFDUFSSPSͷ਺ 54&SSPSͷ਺Λఆظܭଌɻઈࢍվળதʂʂ

  37. ͓ΘΓʹ

  38. ɾTVQQSFTTUTFSSPST࢖ͬͯͶ ɾ5ZQF4DSJQU$PNQJMFS"1*͸ศར ɾࣗ෼Ͱ࢖͏πʔϧΛ࡞Δͷ͸ָ͍͠

  39. ࠷ޙʹ

  40. WE ARE HIRING !!