{"id":5282,"date":"2016-11-23T14:02:12","date_gmt":"2016-11-23T14:02:12","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5282"},"modified":"2016-11-23T14:02:12","modified_gmt":"2016-11-23T14:02:12","slug":"upgrading-type-bindings-typings","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/upgrading-type-bindings-typings\/","title":{"rendered":"Upgrading type bindings with Typings"},"content":{"rendered":"<p>If you upgrade a Javascript library, or the Typescript compiler, you will likely find that you need new type bindings.<\/p>\n<p>Currently is more painful than you might expect.<\/p>\n<p>If you want to list versions of type bindings for a library, you can do this:<\/p>\n<pre lang=\"bash\">\ntypings info 'dt!node' --versions\n<\/pre>\n<p>This is a good way to determine if there are newer versions. If you re-install the library, it will update the typings.json to the latest:<\/p>\n<pre lang=\"bash\">\ntypings install 'dt!node' --save --global\n<\/pre>\n<p>The problem is now you have two copies of the type bindings, so you&#8217;ll get even more errors than when you started. I&#8217;ve been able to fix this by deleting the typings folder, and re-running &#8216;typings install&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading type bindings with Typings<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[302,557,558],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5282"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5282"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5282\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}