{"id":390,"date":"2022-08-30T15:00:33","date_gmt":"2022-08-30T15:00:33","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/what-modification-need-to-be-made-to-the-jquery-plugin-boilerplate-to-compile-in-typescript-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:00:33","modified_gmt":"2022-08-30T15:00:33","slug":"what-modification-need-to-be-made-to-the-jquery-plugin-boilerplate-to-compile-in-typescript-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/what-modification-need-to-be-made-to-the-jquery-plugin-boilerplate-to-compile-in-typescript-collection-of-common-programming-errors\/","title":{"rendered":"What modification need to be made to the jquery plugin boilerplate to compile in typescript?-Collection of common programming errors"},"content":{"rendered":"<p>Make <code>undefined<\/code> optional:<\/p>\n<pre><code>\/\/ the semi-colon before function invocation is a safety net against concatenated\n\/\/ scripts and\/or other plugins which may not be closed properly.\n; (function ($ : any, window, document, undefined?) {\n\n\/\/ undefined is used here as the undefined global variable in ECMAScript 3 is\n\/\/ mutable (ie. it can be changed by someone else). undefined isn't really being\n\/\/ passed in so we can ensure the value of it is truly undefined. In ES5, undefined\n\/\/ can no longer be modified.\n<\/code><\/pre>\n<p>This will allow the template to compile since undefined is not passed into the function.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 18:41:56. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Make undefined optional: \/\/ the semi-colon before function invocation is a safety net against concatenated \/\/ scripts and\/or other plugins which may not be closed properly. ; (function ($ : any, window, document, undefined?) { \/\/ undefined is used here as the undefined global variable in ECMAScript 3 is \/\/ mutable (ie. it can be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-390","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}