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

Strange Typescript error.

1 Answer 8 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 06 Apr 2015, 05:40 PM

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


1 Answer, 1 is accepted

Sort by
0
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
answered on 06 Apr 2015, 06:21 PM
Sorry guys but I think it is just Resharper having issues with Typescript 1.4
Tags
AutoComplete
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Share this question
or