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

TypeScript definition file incorrect for kendo.mobile.Application

3 Answers 86 Views
Application
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Apr 2013, 02:25 AM
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

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Apr 2013, 08:08 AM
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!
0
David
Top achievements
Rank 1
answered on 15 Apr 2013, 11:45 PM
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
0
Atanas Korchev
Telerik team
answered on 16 Apr 2013, 08:52 AM
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!
Tags
Application
Asked by
David
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
David
Top achievements
Rank 1
Share this question
or