TypeScript definition file incorrect for kendo.mobile.Application

4 posts, 0 answers
  1. David
    David avatar
    13 posts
    Member since:
    Oct 2012

    Posted 09 Apr 2013 Link to this post

    We have just updated to Kendo Mobile build 2013.1.319, and we are very glad to see the TypeScript definition file there.

    However, it appears to be incorrect. The definition for the kendo.mobile.Application class constructor reads as:

        class Application extends Observable {
            constructor(options?: ApplicationOptions);

    but the constructor actually takes two parameters. And should read something like:

        class Application extends Observable {
            constructor(element: any, options?: ApplicationOptions);

    At least according to any documentation or example I can find.

    Do you have a running Kendo Mobile example in TypeScript?

    Thanks,
    David Sykes
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 12 Apr 2013 Link to this post

    Hello David,

     You are right that the kendo.mobile.Application TypeScript constructor is not right. Find attached a sample TypeScript application which contains a fixed kendo.all.min.d.ts file and shows how to use Kendo UI Mobile from TypeScript.

    Regards,
    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. Kendo UI is VS 2017 Ready
  4. David
    David avatar
    13 posts
    Member since:
    Oct 2012

    Posted 15 Apr 2013 Link to this post

    Thanks very much for that. The new file is much better.

    I did find further error though. The method navigate() on the Application class. The "transition" parameter is required in the TypeScript definition, but is actually optional according to all of the samples in the documentation, and in our usage.

    Thanks,
    Dave
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 16 Apr 2013 Link to this post

    Hello David,

     I just made the transition optional. You can modify the attached kendo.all.min.d.ts file. The fix will be available with the next internal build which is due by the end of this week.

    Greetings,
    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!
Back to Top
Kendo UI is VS 2017 Ready