kendo.all.d.ts errors on JQueryAjaxSettings

6 posts, 1 answers
  1. Enrico
    Enrico avatar
    54 posts
    Member since:
    Jun 2013

    Posted 21 Aug Link to this post

    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

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 24 Aug Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Enrico
    Enrico avatar
    54 posts
    Member since:
    Jun 2013

    Posted 24 Aug in reply to T. Tsonev Link to this post

    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 {
    }

  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 26 Aug Link to this post

    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.
     
  6. Enrico
    Enrico avatar
    54 posts
    Member since:
    Jun 2013

    Posted 26 Aug in reply to T. Tsonev Link to this post

    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

  7. Answer
    Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 30 Aug Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready