{"id":26733,"date":"2015-01-17T10:38:26","date_gmt":"2015-01-17T01:38:26","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=26733"},"modified":"2015-01-17T10:38:26","modified_gmt":"2015-01-17T01:38:26","slug":"typescript-1-4","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/typescript-1-4\/","title":{"rendered":"Microsoft\u3001\u300cTypeScript 1.4\u300d\u3092\u30ea\u30ea\u30fc\u30b9"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/01\/IWelcome-to-TypeScript.png\" alt=\"Welcome to TypeScript\" title=\"Welcome to TypeScript.png\" border=\"0\" width=\"546\" height=\"226\" \/><\/p>\n<p>Microsoft\u306f\u672c\u65e5\u3001\u540c\u793e\u304c\u958b\u767a\u3092\u9032\u3081\u308bJavaScript\u306e\u5f37\u5316\u7248\u8a00\u8a9e\u300c<a href=\"http:\/\/www.typescriptlang.org\/\">TypeScript<\/a>\u300d\u306e\u6700\u65b0\u7248\u300cTypeScript 1.4\u300d\u306e\u30ea\u30ea\u30fc\u30b9\u3092\u767a\u8868\u3057\u307e\u3057\u305f(<a href=\"http:\/\/blogs.msdn.com\/b\/typescript\/archive\/2015\/01\/16\/announcing-typescript-1-4.aspx\">TypeScript Blog<\/a>\u3001<a href=\"https:\/\/news.ycombinator.com\/item?id=8901041\">Hacker News<\/a>)\u3002Visual Studio 2015 CTP5\u3001Visual Studio 2013\u3001 NPM\u3001\u3042\u308b\u3044\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>TypeScript 1.4\u3067\u306f\u3001Union\u30bf\u30a4\u30d7\u3084\u3001\u30bf\u30a4\u30d7\u30a8\u30a4\u30ea\u30a2\u30b9\u3001Const Enum\u578b\u306e\u5c0e\u5165\u306a\u3069\u306b\u3088\u308b\u30b7\u30b9\u30c6\u30e0\u30bf\u30a4\u30d7\u306e\u6539\u826f\u304c\u884c\u308f\u308c\u305f\u307b\u304b\u3001TypeScript 2.0\u3067\u306eECMAScript 6\u306e\u5b8c\u5168\u30b5\u30dd\u30fc\u30c8\u306b\u5411\u3051\u3066\u3001ES 6\u306e\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u30e2\u30fc\u30c9\u3084\u3001let\/const\u306e\u30b5\u30dd\u30fc\u30c8\u3001ES6\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6587\u5b57\u5217\u306e\u30b5\u30dd\u30fc\u30c8\u306a\u3069\u3001ES6\u306e\u4e00\u90e8\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\nfunction f(x: number | number[]) {\n  if (typeof x === \"number\") {\n    return x + 10;\n  }\n  else {\n    \/\/ return sum of numbers\n  }\n}\n<\/pre>\n<p>\u2191Union\u30bf\u30a4\u30d7\u3002<\/p>\n<pre>\ntype PrimitiveArray = Array<string|number|boolean>;\ntype MyNumber = number;\ntype NgScope = ng.IScope;\ntype Callback = () => void;\n<\/pre>\n<p>\u2191\u30bf\u30a4\u30d7\u30a8\u30a4\u30ea\u30a2\u30b9\u3002<\/p>\n<p>TypeScript\u306f<a href=\"https:\/\/news.ycombinator.com\/item?id=8901041\">Hacker News<\/a>\u3067\u3082\u304a\u304a\u3080\u306d\u8a55\u5224\u304c\u826f\u304f\u3001RedMonk\u306e<a href=\"http:\/\/redmonk.com\/sogrady\/2015\/01\/14\/language-rankings-1-15\/\">\u4eba\u6c17\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u30e9\u30f3\u30ad\u30f3\u30b0<\/a>\u3067\u3082\u304b\u306a\u308a\u4e0a\u4f4d\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u30e9\u30a4\u30d0\u30eb\u304c\u3072\u3057\u3081\u304faltJS\u8a00\u8a9e\u306e\u4e2d\u3067\u3082\u6700\u6709\u529b\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066\u4eca\u5f8c\u3055\u3089\u306b\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u304f\u53ef\u80fd\u6027\u304c\u9ad8\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft\u306f\u672c\u65e5\u3001\u540c\u793e\u304c\u958b\u767a\u3092\u9032\u3081\u308bJavaScript\u306e\u5f37\u5316\u7248\u8a00\u8a9e\u300cTypeScript\u300d\u306e\u6700\u65b0\u7248\u300cTypeScript 1.4\u300d\u306e\u30ea\u30ea\u30fc\u30b9\u3092\u767a\u8868\u3057\u307e\u3057\u305f(TypeScript Blog\u3001Hacker News [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":26732,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[87,1121],"class_list":["post-26733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-microsoft","tag-typescript"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/26733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=26733"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/26733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/26732"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=26733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=26733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=26733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}