Strange Typescript error.

2 posts, 0 answers
  1. Wayne Hiller
    Wayne Hiller avatar
    37 posts
    Member since:
    Sep 2005

    Posted 06 Apr 2015 Link to this post

    In kendo.all.d.ts there is an interface for the AutoComplete select event args:

        interface AutoCompleteSelectEvent extends AutoCompleteEvent {
            item?: JQuery;
        }

    In my code this will generate a Typescript error about not matching the AutoCompleteOptions interface:

    $("#Data_Part_Description").kendoAutoComplete({
                    select: (e) => { }

    }

     What is weird is that if I rename item in AutoCompleteSelectEvent to anything other than item it works.

        interface AutoCompleteSelectEvent extends AutoCompleteEvent {
            i?: JQuery;
        }


  2. Wayne Hiller
    Wayne Hiller avatar
    37 posts
    Member since:
    Sep 2005

    Posted 06 Apr 2015 in reply to Wayne Hiller Link to this post

    Sorry guys but I think it is just Resharper having issues with Typescript 1.4
  3. Kendo UI is VS 2017 Ready
Back to Top