Typescript; Duplicate overload signature for 'data'.

2 posts, 0 answers
  1. Stacey
    Stacey avatar
    56 posts
    Member since:
    Aug 2013

    Posted 18 Jan 2014 Link to this post

    Adding the newest kendo.d.ts to my project along with the jquery.d.ts file gives me the following error ...

    'Duplicate overload signature for 'data''

    This occurs on line 9699 of the file, where the code reads ...

    data(key: string): any;
    Commenting it out works fine, but I do not like to have to mess with the vendor files like this. I am using the jQuery typescript definitions at Definitely Typed because the native jQuery one from the typescript website fails to even compile.

    I am absolutely in love with Typescript, and I am adoring how Kendo integrates with it, but is there any chance this can get updated?

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Jan 2014 Link to this post

    Hi Stacey,

    It seems this is caused by an updated version of the definitely typed jQuery definition. Updating that line in kendo.all.d.ts to:

    data(key: any): any;

    Seems to solve the compilation error. We will update that in our code and the fix will appear in the next internal build.

    Regards,
    Atanas Korchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top