{"id":7613,"date":"2019-11-05T19:58:45","date_gmt":"2019-11-05T19:58:45","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=7613"},"modified":"2019-11-05T19:58:45","modified_gmt":"2019-11-05T19:58:45","slug":"typescript-3-7-2","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/typescript-3-7-2\/","title":{"rendered":"TypeScript 3.7.2"},"content":{"rendered":"<p><a href=\"https:\/\/devblogs.microsoft.com\/typescript\/announcing-typescript-3-7\/\" rel=\"noopener noreferrer\" target=\"_blank\">TypeScript 3.7.2<\/a> has just been released. <\/p>\n<p>First off you&#8217;re going to want to install it globally on your machine, hence run (obviously this will install the latest version so not specific to version 3.7.2)<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nnpm install -g typescript\r\n<\/pre>\n<p>or if you want it locally to your project, ofcourse you can run<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nnpm install -D typescript \r\n<\/pre>\n<p>If you&#8217;re using VS Code and you want to set it up for this version (if it&#8217;s not already set for the latest) then press F1 and select <em>Preferences: Open User Settings<\/em> adding (or editing) the following (off of the root level of the JSON)<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n&quot;typescript.tsdk&quot;: &quot;node_modules\\\\typescript\\\\lib&quot;,\r\n<\/pre>\n<p>I&#8217;m not going go through the new features exception to say we&#8217;ve now got <em>optional chaining<\/em> the ?. operator from C# and <em>Nullish coalescing<\/em> using the ?? operator.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TypeScript 3.7.2 has just been released. First off you&#8217;re going to want to install it globally on your machine, hence run (obviously this will install the latest version so not specific to version 3.7.2) npm install -g typescript or if you want it locally to your project, ofcourse you can run npm install -D typescript [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[46],"tags":[],"class_list":["post-7613","post","type-post","status-publish","format-standard","hentry","category-typescript"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=7613"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7613\/revisions"}],"predecessor-version":[{"id":7615,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7613\/revisions\/7615"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=7613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=7613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=7613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}