{"id":3907,"date":"2016-04-27T00:04:01","date_gmt":"2016-04-27T00:04:01","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3907"},"modified":"2016-04-27T00:04:01","modified_gmt":"2016-04-27T00:04:01","slug":"fixing-typescript-error","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-typescript-error\/","title":{"rendered":"Fixing typescript error: Overload signatures must all be ambient or non-ambient."},"content":{"rendered":"<pre>\n..\/..\/..\/usr\/local\/lib\/node_modules\/typescript\/lib\/lib.d.ts(16893,18): \nerror TS2394: Overload signature is not compatible with function implementation.\n\nindex.tsx(3,10): error TS2384: \n\nOverload signatures must all be ambient or non-ambient.\n<\/pre>\n<p>For instance, you can cause it with just this:<\/p>\n<pre lang=\"javascript\">\nfunction print(x: String) { \n}\n<\/pre>\n<p>This is an indication that you&#8217;re creating a function that overloads another function, but the other one doesn&#8217;t have types. The correct fix is to rename your item.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a typescript error overloading \/ overriding built-in functions<\/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,557],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3907"}],"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=3907"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3907\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}