ãªã¼ãã³ãããããã¼ãºã«ã³ãã¡ã¬ã³ã¹(ODC)2024 ã§ã®çºè¡¨è³æ
TypeScript解èªã¢ã·ã¹ã¿ã³ãããã¯TypeScriptã®ã³ã¼ããªã¼ãã£ã³ã°ãæ¯æ´ãããã¼ã«ã§ãã æ¢åTypeScriptæ¡ä»¶ã«åå ããéã«ãæ¢åã³ã¼ããèªãã«ããã£ã¦ã次ã®ãããªæ©ã¿ã解決ããããã®ãã®ã§ãã TypeScriptã®æ§æãããããããªãã??ã£ã¦ä½ï¼ãã#nameã®#ã£ã¦ã³ã¡ã³ãï¼ãã<></>ã£ã¦ä½ï¼ãè¨èªæ©è½ã®ååãããããã調ã¹ããããªããstring | undefinedã®|ã£ã¦ãªãã¦ååï¼ããvalue as anyã£ã¦ãªãã¦æ©è½ï¼ãã[K: string]: stringã£ã¦ä½ï¼ã使ãæ¹å·¦ã®ã¨ãã£ã¿ã¼ã«è§£èªãããTypeScriptãã³ãããã解èªãããã³ã¼ãé¨åãã¯ãªãã¯ããå³ã¨ãªã¢ã«ã³ã¼ãã®æå³ãªã©ã表示ããããµã³ãã«ã³ã¼ãå ¥åããã³ã¼ãããªãå ´åã¯ãµã³ãã«ã³ã¼ãã§ã試ããã ããã ãµã³ãã«ã³ã¼ãæ©å¯æ å ±ã³ã¼ãã¯ãã¹ã¦ãªãã©ã¤ã³ã§å¦çããããµã¼ã
æ¬æ¸ããµãã¤ãã«TypeScriptãã¯å®åã§TypeScriptã使ãéçºè ã®ããã®å ¥éæ¸ã§ããããã¦ããã®ãã¼ã¸ã¯TypeScriptã®ç¹å¾´ãæéã§ææ¡ã§ãããããæ°ç¾ãã¼ã¸ãããªãæ¬æ¸ã®ã³ã³ãã³ããã¤ã¾ã¿é£ãããè¦ç´ã§ãã » æ¬æ¸ã¤ãã¦è©³ããç¥ã » ã¨ã«ããä»ããTypeScriptãæ¸ãã¦ã¿ãã TypeScriptã¨ã¯âJavaScriptã®ã¹ã¼ãã¼ã»ããã¨ãªãããã°ã©ãã³ã°è¨èªãéçåä»ãè¨èªã§ãããããã°ã©ã ã®æ£ãããéçã«æ¤æ»ã§ãããã©ã¤ãã©ãªãIDEãªã©ã®éçºç°å¢ãå å®ãã¦ããã大ããªã¨ã³ã·ã¹ãã ãæã£ã¦ãããMicrosoftã2012å¹´ã«éçºãããªã¼ãã³ã½ã¼ã¹ã§å ¬éããã» TypeScriptã®ç¹å¾´ã«ã¤ãã¦è©³ããç¥ã » TypeScriptèªçã®èæ¯ã«ã¤ãã¦è©³ããç¥ã TypeScriptã¯JavaScriptã®ã¹ã¼ãã¼ã»ããâã¹ã¼ãã¼ã»ããã¨ã¯ãå ã®è¨èªã¨ã®
ããã¸ã§ã¯ãã§ä½¿ããã¦ããæè¡ã¨ ESModule ã®ç¶æ³ã«ã¤ã㦠UIT ã§ã¯ã SPA éçºã®ããã¸ã§ã¯ãã«ãã㦠Vue.js 㨠React ãå¤ãå©ç¨ããã¦ãããæ¢åã®å¤ã㯠Babel ãå©ç¨ãã JavaScript ã§ãæ°è¦ã®ããã¸ã§ã¯ãã§ã¯ TypeScript ãå©ç¨ãã¦éçºãè¡ããã¦ãã¾ãã FYI: ãLINE DEV DAY 2019 çªå¤ç·¨ãUIT Front-end Tooling Survey 2019 æè¡é¸å®ã¯å¿è«ãããã¸ã§ã¯ãã«ãããç´°ããªã³ã¼ãã£ã³ã°ã«ã¼ã«ã«ã¤ãã¦ã¯ãããã¸ã§ã¯ãã®ã³ã¼ããªã¼ãã¼ã«å§ãããã¦ãããããã¸ã§ã¯ããã¨ã«è£éãæã£ãææ決å®ãè¡ã£ã¦ãã¾ãã ãã®ä¸ã§ãç§ãæºããããã¸ã§ã¯ãã«ããã¦ã¯ã default export ãå¯è½ãªéãé¿ããããã«å¿ããã¦ãã¾ãã import å´ã®è£éã§å¯¾è±¡ãèªç±ã«å½åã§ãã¦ãã¾ã ä»åã¯ããDa
注é æ¬ããã¥ã¡ã³ãã¯ãã¾ã æªå®æã§ãããã¦ã§ãããã³ãã¨ã³ãã®éçºãå¦ã¶ã¨ãã«ãJavaScriptãçµç±ããã«ãæåããTypeScriptã§å¦ãã§ãã社å åãã³ã³ãã³ãã¨ãã¦ä½æããã¯ããã¾ãããåºæ¬ã®ææ³é¨å以å¤ã¯ã¾ã å·çããã¦ããªãç« ãããã¤ãããã¾ããæ¸ããã¦ããç« ãã¾ã ã¾ã å 容ã追å ãããå¯è½æ§ãããã¾ãããç°å¢ã®å¤åã§å 容ã®å¤æ´ãå ¥ãå¯è½æ§ãããã¾ãã æ¸ç±ã®å稿ã¯GitHubä¸ã§ç®¡çãã¦ããã¾ããããTypoãè¦ã¤ãã¦ãã ãã£ãæ¹ãããã£ãããã¾ãããã GitHubä¸ã§é£çµ¡ ããé¡ããã¾ã 1 ãreSTãã¡ã¤ã«ã ãä¿®æ£ãã¦ããããã°ãHTML/PDFã®çæã¾ã§ã¯ä¸è¦ã§ãããã£ã¼ãããã¯ãªã©ãæè¿ãã¦ããã¾ãã 1 https://github.com/future-architect/typescript-guide/pulls
6. åºã¦ããè¨èª JSXã» DeNA 社製ãçã® JS ãããé ããªã㪠㻠㻠ãããã (è¦åºå ¸1 )ãJS ã®ç®ããã¶ã£ã Java Haxeã»ã» ã»ãã®ä¸ã§ã¯æå¤åãJS ã ãã§ãªãã PHP ã FlashãJava ã« C#ãªã©ãæ§ã ãªè¨èªã« å¤æå¯è½ãæç¶åè¨èªã®ç®ããã¶ã£ãé¢æ°å è¨èª TypeScriptã» ã»ã»ãã®ä¸ã§ã¯æå¾çºãC#ä½ã£ã 人ãè¨è¨ãJS ã¨ã®è¦ªåæ§ãéè¦ãã¦ãããJS ã®ç®ããã¶ã£ã C# éçåä»ãã®è¨èªãªã³ãªã¼ 1 ãã³ããã¼ã¯ãå°ãªãã®ã§è©ä¾¡ä¿çä¸ 7. 注æãã®ã«ï¼ ããã 3 ã¤ã®è¨èªã¯è¨è¨ææ³ãå ¨ãç°ãªã JSX ã¯æé©åã«éç¹ãç½®ãã¦ãã°ãã°ãã¤ã³ã© ã¤ã³åãè¡ãããã¹ããã©ã¯ãã£ã¹ã¨ããåã® ããããã¦ãã¦ãæ°ã«ããã«ã³ã¼ããæ¸ãã TypeScript 㯠JS ã¨ã®è¦ªåæ§ãéè¦ããç´ ç´ãª JS ãåºåãã Haxe ã¯æè»æ§ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}