This is a migrated thread and some comments may be shown as answers.

kendo.all.d.ts errors on JQueryAjaxSettings

5 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Enrico
Top achievements
Rank 1
Enrico asked on 21 Aug 2016, 01:05 PM

Hi,

If I reference kendo.all.d.ts without having JQuery definitions loaded, then kendo.all.d.ts has a compile error due to the missing interface JQueryAjaxSettings.
I've added a new file kendo-all-fix.d.ts which contains the interface

interface JQueryAjaxSettings {
// ... full definition copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/jquery/jquery.d.ts
}
As I can see, you've provided empty JQuery interfaces in order to make it compile.

I'm using kendo 2016.2.714

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 24 Aug 2016, 06:03 AM
Hi,

The shipped definitions indeed reference the jQuery type definitions. We don't include an empty JQueryAjaxSettings interface as far as I can see.

It's expected to have both in order to use them. I hope this helps.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Enrico
Top achievements
Rank 1
answered on 24 Aug 2016, 08:19 AM

I found somehow an inconsistent behavior, because in kendo.all.d.ts you can find those JQuery empty interfaces (I guess just to make it compile):

interface JQueryXHR {
}

interface JQueryEventObject {
}

interface JQueryPromise<T> {
}

So I was wondering why not including also 

interface JQueryAjaxSettings {
}

0
T. Tsonev
Telerik team
answered on 26 Aug 2016, 06:17 AM
Hello,

Can you please check that you're using the latest version of the definitions? You can find them on nuget.org or in the distributions package.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Enrico
Top achievements
Rank 1
answered on 26 Aug 2016, 07:15 AM

Hi,

I'm using the one included into telerik.kendoui.professional.2016.2.714.commercial, downloaded few days ago. I tried also the one from nuget and I don't see a definition for it into kendo-ui.d.ts either.

Enrico

0
Accepted
Genady Sergeev
Telerik team
answered on 30 Aug 2016, 03:52 PM
Hi Enrico,

Thanks for the report. We will update the definitions so that they are consistent.

I've also updated your points as a token of gratitude for the report.

Regards,
Genady Sergeev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
General Discussions
Asked by
Enrico
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Enrico
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or