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

Typescript typing on window.title return value

12 Answers 114 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 2
Ben asked on 24 Feb 2016, 02:09 PM

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

Sort by
0
Alex Gyoshev
Telerik team
answered on 29 Feb 2016, 09:11 AM

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
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ben
Top achievements
Rank 2
answered on 10 Jun 2016, 09:59 AM

Another typescript definition issue:

kendo.ui.multiselect.toggle() requires a Boolean parameter however I think that parameter should be optional.

0
Alex Gyoshev
Telerik team
answered on 14 Jun 2016, 07:28 AM

Hello Ben,

Thank you for reporting this, it has been fixed for the next internal build.

Regards,
Alex Gyoshev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ben
Top achievements
Rank 2
answered on 19 Aug 2016, 03:38 PM

Another typescript definition issue:

kendo.ui.dataviz.allValues requires an Array parameter however i think that parameter should be optional

0
Ben
Top achievements
Rank 2
answered on 19 Aug 2016, 03:39 PM
*kendo.ui.dataviz.radialgauge.allValues
0
Alex Gyoshev
Telerik team
answered on 23 Aug 2016, 07:54 AM

Hello Ben,

Thank you for reporting this, it has been addressed for the next internal build.

Regards,
Alex Gyoshev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ben
Top achievements
Rank 2
answered on 31 Aug 2016, 03:36 PM
Another one: kendo.support.browser is missing edge as an option
0
Rumen
Telerik team
answered on 05 Sep 2016, 12:32 PM
Hi,

Thank you for reporting this!

Best regards,
Rumen
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ben
Top achievements
Rank 2
answered on 06 Apr 2017, 10:04 AM

Kendo.ChartCategoryAxisItem.axisCrossingValues and Kendo.ChartValueAxisItem.axisCrossingValues have duplicate "any" in their typings:

any|Date|any

0
Ianko
Telerik team
answered on 10 Apr 2017, 06:40 AM

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ben
Top achievements
Rank 2
answered on 26 Jun 2017, 02:04 PM

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

0
Ianko
Telerik team
answered on 27 Jun 2017, 08:56 AM

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Window
Asked by
Ben
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
Ben
Top achievements
Rank 2
Rumen
Telerik team
Ianko
Telerik team
Share this question
or