tag:blogger.com,1999:blog-1007651349729494127.post6145795480451022201..comments2023-07-10T08:47:58.464-07:00Comments on My online Notebook: Creating TypeScript type declaration file for an existing jQuery pluginAnonymoushttp://www.blogger.com/profile/14704377348226567479noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-1007651349729494127.post-45351872647025581252018-05-09T03:57:24.596-07:002018-05-09T03:57:24.596-07:00Hello,
OK, I found out, that I can use the typing...Hello,<br /><br />OK, I found out, that I can use the typings.d.ts to do that. <br /><br />Sadly, after including your (modified) interfaces (I want to include jQuery.ScannerDetection - http://a.kabachnik.info/jquery-scannerdetection-tutorial.html) and add the script reference into the 'scripts' array in .angular-cli.json I still get the error 'TypeError: $(...).scannerDetection is not a function.'<br /><br />Do you have any idea what I could have missed?<br />Thanks and regards.Unknownhttps://www.blogger.com/profile/17319554279816694941noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-53229218330594938432018-05-09T02:04:30.828-07:002018-05-09T02:04:30.828-07:00Thank you for this article. Could you please tell ...Thank you for this article. Could you please tell me where to add this into Angular CLI?<br /><br />Thank you very much!Unknownhttps://www.blogger.com/profile/17319554279816694941noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-26819097900352090402017-11-12T11:03:53.962-08:002017-11-12T11:03:53.962-08:00Nice post, more Find out Useful Free JQuery Plugi...Nice post, more Find out <a href="https://www.amohits.com/" rel="nofollow"> Useful Free JQuery Plugins </a> at amohits.Anonymoushttps://www.blogger.com/profile/04237611832541300044noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-72387658662351544812014-03-28T10:56:03.231-07:002014-03-28T10:56:03.231-07:00Concise and practical postConcise and practical postrobhttps://www.blogger.com/profile/17178520367956770572noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-36556896462802572412012-10-19T09:06:17.464-07:002012-10-19T09:06:17.464-07:00Welcome :)Welcome :)Anonymoushttps://www.blogger.com/profile/14704377348226567479noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-46109581242378738582012-10-18T21:08:52.037-07:002012-10-18T21:08:52.037-07:00Ah! got it!. Thank you very much.
Unfortunately I ...Ah! got it!. Thank you very much.<br />Unfortunately I am in the Mac so i am struggling a bit with Sublime Text for now.<br />nacho4dhttps://www.blogger.com/profile/05226784060372265780noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-87215577751276910772012-10-18T20:36:30.766-07:002012-10-18T20:36:30.766-07:00Ignacio,
Glad that you found it useful.
You might ...Ignacio,<br />Glad that you found it useful.<br />You might be using the word interface to name a variable or function. Interface is a keyword in TypeScript. <br />If you are using VS, I recommend you to install Web Essentials. It makes writing TypeScript very easy on VS.Anonymoushttps://www.blogger.com/profile/14704377348226567479noreply@blogger.comtag:blogger.com,1999:blog-1007651349729494127.post-44162159042784104612012-10-18T20:22:53.215-07:002012-10-18T20:22:53.215-07:00Ravi, Great post! I tried this and wrote a declara...Ravi, Great post! I tried this and wrote a declaration file for some library. I believe it is fine now but I think when it gets larger it will be prune to mistakes. How can I check the syntax of the <i>mydeclarations.d.ts</i> file?<br /><br />In the command line I did:<br /><br /><i>$ tsc mydeclarations.d.ts</i><br /><br />and got:<br /><br /><i>SyntaxError: interface is a reserved identifier</i><br /><br />:(<br />nacho4dhttps://www.blogger.com/profile/05226784060372265780noreply@blogger.com