While working on my TypeScript project, I encountered an issue with integrating CanvasJS using the declaration file - index.d.ts. The corresponding JavaScript file can be found at . I am utilizing require.js in my project, but it crashes when running because it couldn't locate the index.js it was looking for. One workaround is to create an index.js and paste the contents of , which resolves the issue.
However, instead of this approach, I would prefer for the index.d.ts file to directly reference or fetch the URL. Is there a way to achieve this?