I have just downloaded the TypeScript documentation. I have a some JavaScript classes and I would like to create and use these class in a TypeScript test application
How can I call a JavaScript function of an included JavaScript from TypeScript. I do not want to create a "d.ts" file. Just to create my classes, call its methods, access its properties.
How do I do that?
I am trying to use kendoUI with TypeScript.
For instance to show a window I have to do:
- Have a HTML to represent the content of a window. I have a div with an id logonDialog. This div
is initially hidden; - I create the window: logonDlg.kendoWindow(logOnParams);
- Then using jQuery I show the div: using
logonDlg.show();
Example
var logonDlg = $("logonDialog");
if (!logonDlg.data("kendoWindow")) {
logonDlg.kendoWindow(logOnParams);
logonDlg.show();
}
It is working OK. The JS is generated as I want but I receive an error since The property 'kendoWindow' does not exist on value of type 'JQuery'.
How can I disable this kind of error. I could not make, what Ryan said, to work.