I am starting a new project using the Kendo Mobile controls (release 2016 Q1 SP2), and I am using TypeScript. When I attempt to instantiate my kendo.mobile.application, I am getting errors from TypeScript and the issue appears to be that the type definition file does not contain the correct definition.
Here is my simple TypeScript code:
8 Answers, 1 is accepted
a typescript with Kendo UI mobile application is not something we have seen very often, yet not unheard of. My guess is that people are editing the d.ts file and don't contact us about the missing pieces - we will add them on our side.
This being said, Kendo UI itself is not written in TypeScript, which leads to two problems people commonly face: incomplete or wrong definitions, or APIs which are a bit inconvenient and do not feel right when utilized in TypeScript. To give you an example, many widget configuration options accept string, number, object and a function, which is, well, most of the types one can come up with. This somewhat defeats the purpose of the language features.
Thanks for the reply Petyo. Manually editing the .d.ts file myself is not a viable solution, because then every time I upgrade to a newer version of the Kendo controls I would have to make those edits again. I am glad to hear that the TypeDefinitions will be updated, when can I expect that to be included (just looking for a general timeframe)?
As for your second point of "which leads to two problems people commonly face: incomplete or wrong definitions". This is a big problem to me and the other developers at my organization. Telerik touts that they integrate with TypeScript, but it sounds like there is a ways to go with this. This is not the first time I have experienced issues with the Type Definitions. Are there any plans to improve the TypeDefinitions files? It seems unacceptable that there are frequently "incomplete or wrong definitions" (which I have experienced firsthand). My company has invested a lot of development resources into TypeScript and we want to be able to leverage that with the Kendo controls as well, but problems like this make it difficult to implement. I think the Kendo controls are great, but I just wanted to voice my concerns and hopefully this will improve in the future.
the typescript definitions will be updated in our next maintenance release, which will be probably in a week or two.
The thing we have done so far is to automatically generate the d.ts definitions based on our documentation - however, there are parts which can't be done, due to some non-standard part. The mobile application is one of those.
A thing which may be worth mentioning, as typescript and angular go hand in hand these days - our upcoming Angular 2 effort will be authored in typescript, which should eliminate such mismatches and provide smoother TypeScript experience from the consumer perspective.
How did you end up going with your app? Im about to start to and my client doesn't want to wait for angular 2
in case you are interested in building mobile apps with Angular 2, you should definitely check NativeScript - it features significant advantages over Hybrid.
Telerik by Progress
No. We suggest using NativeScript instead.
Telerik by Progress