TypeScript 2.0ãã¼ã¿çãå
¬éãNullå¤ã®æé¤åãé²åããååæã容æãªã¢ã¸ã¥ã¼ã«å®£è¨ãªã© Type Script 2.0ã§ã¯è¨èªä»æ§ãã³ã³ãã¤ã©ã«æ¹è¯ãå ãããã¦ãã¾ãã ãNon-nullable Typesãã¯ãå¤æ°ã®å¤ãNullã®å ´åã«ã¯ã¨ã©ã¼ã¨ããæ©è½ãJavaScriptã®ããã°ã©ã ã§ã¯å¤æ°ã®å¤ã¨ãã¦NullãUndefinedã«ãªããã¨ãããã¾ãããå¤æ°ããããä¾å¤çãªå¤ã«ãªããã¨ãéçºè
ãæå³ãã¦ããªããã¨ãå¤ãããã°ã®æ¸©åºã¨ãªã£ã¦ãã¾ããã TypeScript 2.0ã§ã¯ãã--strictNullChecksããã©ã°ãç«ã¦ããã¨ã§ãä¾ãã°æååã®å¤æ°ã¯å¿
ãæåã®å¤ããæ°å¤åã®å¤æ°ã«ã¯å¿
ãæ°å¤ãå
¥ããã¨ã¨ãªãããã以å¤ã®NullãUndefinedã®å¤ã§ã¯ã¨ã©ã¼ã¨ãªãã¾ãã ãControl Flow Analysis for Typesãã¯ãå解æã«ã³ã³
{{#tags}}- {{label}}
{{/tags}}