Forum Discussion
Issue in adding Library files in tsconfig
Hello gdonnellan,
I debug the visual.js file and all the default files, but I didn't found anything.
Can you please suggest me in which file I need to include this
public _window : any
_window = window;
Thanks in advance,
Tamil
Add it in the main plugin .ts where you have implemented the IVisual interface.
In my case I was working with different library from jQuery. it might be different with that one as its a bit of a special case like D3.js when it comes to custom visuals. Your problem may be related to not having the proper typings installed though for jQuery UI if its a compile time problem you are encountering.
export class NetworkVisual implements IVisual {
private _window : any;
constructor(options: VisualConstructorOptions) {
this._window = window;
debugger;
// this._window.jQuery should be available
}
}
- Tamil9 years agoFrequent Visitor
Hello gdonnellan,
Can you please provide with a sample screenshot/file for how to import the external library files in typescript .