{"id":5285,"date":"2016-11-23T14:06:25","date_gmt":"2016-11-23T14:06:25","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5285"},"modified":"2016-11-23T14:06:25","modified_gmt":"2016-11-23T14:06:25","slug":"fixing-typescript-error-error-ts2430-interface-nodebuffer-incorrectly-extends-interface-uint8array","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-typescript-error-error-ts2430-interface-nodebuffer-incorrectly-extends-interface-uint8array\/","title":{"rendered":"Fixing Typescript error: error TS2430: Interface &#8216;NodeBuffer&#8217; incorrectly extends interface &#8216;Uint8Array"},"content":{"rendered":"<p>If you recently upgraded Typescript, you&#8217;ll get an error like this:<\/p>\n<pre>\ntypings\/main\/ambient\/node\/index.d.ts(426,11): error TS2430: Interface 'NodeBuffer' incorrectly extends interface 'Uint8Array'.\n  Types of property 'fill' are incompatible.\n    Type '(value: any, offset?: number, end?: number) => Buffer' is not assignable to type '(value: number, start?: number, end?: number) => this'.\n      Type 'Buffer' is not assignable to type 'this'.\n<\/pre>\n<p>The fix to this is to re-install the Node type bindings:<\/p>\n<pre lang=\"bash\">\ntypings install 'dt!node' --save --global\nrm -rf typings\/\ntypings install\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing errors upgrading Typescript<\/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":[9],"tags":[302,388,557,558],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5285"}],"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=5285"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5285\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}