TypeScript definition file error in ListViewOptions interface?

3 posts, 1 answers
  1. Answer
    David avatar
    13 posts
    Member since:
    Oct 2012

    Posted 10 Apr 2013 Link to this post


    we have just updated to Kendo Mobile build 2013.1.319 and are using the TypeScript definition file provided by it. We are converting our code from the very minimal definition file we had created up until now.

    We have a call to jQuery.kendoMobileListView() that looks like this:
            template: kendo.template($("#template-incident-list").html()),
            dataSource: this._dsIncidents,
            style: "inset"

    The template is defined using the pattern:

        <script id="template-incident-list" type="script/x-kendo-template">

    This generates a compiler error because the definition in kendo.mobile.d.ts reads as follows:

        interface ListViewOptions {
            template?: string;
        kendoMobileListView(options: kendo.mobile.ui.ListViewOptions): JQuery;

    Isn't this an error? Why can't I pass in a Kendo template in the template parameter? 

    The code above worked fine on the previous version. I will modify the .d.ts file to see if it still runs on the new version as well.

    David Sykes
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 12 Apr 2013 Link to this post

    Hi David,

    The fix is available in the project attached to your other forum thread.

    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. David
    David avatar
    13 posts
    Member since:
    Oct 2012

    Posted 15 Apr 2013 Link to this post

    Thanks, that did fix the error.
Back to Top