Hello
I think there are some incorrect typescript typings for kendo.ui.window.title(). The description of the logic on the API reference implies it can either:
- Be passed a new title and return the window
- Be passed nothing and return the current title
In the typings file it is listed as follows:
title(): kendo.ui.Window;
title(text?: string): void;
I think the correct typings should be:
title(): string;
title(text?: string): kendo.ui.Window;
12 Answers, 1 is accepted
Hello Ben,
Thank you for the feedback. Indeed, this is the correct method signature, and it has been logged for fixing in upcoming versions of the typescript definitions.
Regards,Alex Gyoshev
Telerik
Another typescript definition issue:
kendo.ui.multiselect.toggle() requires a Boolean parameter however I think that parameter should be optional.
Hello Ben,
Thank you for reporting this, it has been fixed for the next internal build.
Regards,Alex Gyoshev
Telerik
Another typescript definition issue:
kendo.ui.dataviz.allValues requires an Array parameter however i think that parameter should be optional
Hello Ben,
Thank you for reporting this, it has been addressed for the next internal build.
Regards,Alex Gyoshev
Telerik by Progress
Thank you for reporting this!
Best regards,
Rumen
Telerik by Progress
Kendo.ChartCategoryAxisItem.axisCrossingValues and Kendo.ChartValueAxisItem.axisCrossingValues have duplicate "any" in their typings:
any|Date|any
Hello Ben,
This is a side effect of the TypeScript definition generation script utilized. The described behavior does not lead to wrong intellisense hints or failures with the TypeScript compilation.
Regards,
Ianko
Telerik by Progress
Another one: kendo.ui.multiselect.tagTemplate is listed as string when it can also be a template function:
http://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect#configuration-tagTemplate
Hello Ben,
We just fixed that. Thanks for noticing. The tagTemplate options will be updated in the ts.def file with the next release.
Regards,Ianko
Progress Telerik