Nodeå¦å 35æéç® ãªã³ã©ã¤ã³ãã©ã¤ã¢ã«ã§ã®çºè¡¨è³æã§ãã Webã¢ããªã»ãµã¤ãã®éçºã«ãããObservabilityã¯ãã¦ã¼ã¶ã¼ä½é¨(UX)ã®ä½ä¸ããã¤ã©ãã§çºçããããæ¤åºãâ¦
ããã«ã¡ã¯ã@watilde ã§ããAmplifyã®éçºè ä½é¨ä½é¨ã®åä¸ããã¹ãããã¤ã¼ãã®ã¦ã©ãããGitHubã§ã®åå¿ãªã©ãã¦ãã¾ããããå»å¹´ã®ãã¨ã§ãããæè¿ã¯cliã®æ¹åã¨ãã¦create-react-appã®ããã«initã®å®è¡æã«READMEã®çæãè¡ãPRãªã©ä½ã£ãããã¦ã¾ããåè: aws-amplify/amplify-cli#5808 ãã®è¨äºã¯è±èªã§æ¸ãã Improve UX by observability in front-end with Amplify and QuickSight ãèªåã§æ¥æ¬èªã«æ訳ãã¦ã¿ããã®ã§ããNodeå¦å 35æéç® ãªã³ã©ã¤ã³ãã©ã¤ã¢ã« ã§ãåæ§ã®å 容ãçºè¡¨äºå®ã§ãã JavaScriptã®ã¨ã©ã¼ä¾ JavaScriptã¯100%åãã¦ããã®ã ç§éã®ä½ãWebã¢ããªã»Webãµã¤ããæ§ã ãªããã¤ã¹ã§100ï¼ åä½ãã¦ãããã¯ãå®æ
TypeScriptã§ææããã¦anyã使ã£ã¦ããç®æã£ã¦ãèªåã®æ¸ããã³ã¼ãã ãã©åããã¡ãã¨æ¸ãã®ãé¢åã ããanyã«ãã¦ããã£ã¦å ´åã¨ããµã¼ããã¼ãã£ã®ã©ã¤ãã©ãªãããã£ã¦ããå¤ã§ãåããªããªã®ã調ã¹ãã®ãé¢åã ããanyã«ãã¦ãããã£ã¦ã±ã¼ã¹ãããã ä¾ãã°å¾è ã®ä¾ã§ãFirestoreããåã£ã¦ããããã¥ã¡ã³ããªãã¸ã§ã¯ãã®åãããããããªãã®ã§anyã«ãã¦ããã code:ts (doc: any) => { ... } ãããunknownã«å¤ããã¨â¦ code:ts (doc: unknown) => { ... } unknownã«existsãçãã¦ãããã©ããç¥ããªãããã¨ææãããã ãã¡ãã¨ããåãã¤ããå¿ è¦ãããã®ã ããã©ãããã°è¯ããï¼ code:ts if (doc.exists) { // ERROR: Object is of type 'unknown
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}