Wrong Typescript definition in kendo.all.d.ts

2 posts, 0 answers
  1. Jan
    Jan avatar
    38 posts
    Member since:
    Apr 2017

    Posted 30 May 2017 Link to this post


    I just used the TreeView widget and inserted items with the API method 'insertAfter' and 'insertBefore'. Unfortunately the typescript definition of these methods says, it returns void, but actually it returns the new inserted item (which I need at this point). I updated my kendo.all.d.ts file now, but if I will update kendo in the future, it would overwrite these lines. It would be great if you could fix this for the next release.

    insertAfter(nodeData: any, referenceNode: JQuery): void;
    insertBefore(nodeData: any, referenceNode: JQuery): void;
    // to
    insertAfter(nodeData: any, referenceNode: JQuery): JQuery;
    insertBefore(nodeData: any, referenceNode: JQuery): JQuery;
  2. Ianko
    Ianko avatar
    1755 posts

    Posted 02 Jun 2017 Link to this post

    Hello Jan,


    Thank you for reporting that. I have logged it and you can monitor the status of the task here: https://github.com/telerik/kendo-ui-core/issues/3283. Eventually, the update should be included in the next Service Pack. 


    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top