7 Answers, 1 is accepted
Hello Ben,
Indeed this is a mistake. The type of the parameter is always Number. We will fix the documentation.
Thank you for bringing this to our attention.
Regards,
Nikolay Rusev
Telerik
Thanks :)
I have submitted a fix for the typescript typings, awaiting review. https://github.com/DefinitelyTyped/DefinitelyTyped/pull/6685
Hello Ben,
That particular part of the TypeScript type definition is automatically generated from the docs and updating the docs will update the type definition file as well, which we already did. There is Q3 2015 SP1 coming this week which will include updated TypeScript definitions.
Regards,
Nikolay Rusev
Telerik
Okay Thanks Nikolay
I have had another typings issue and figure I will mention it here.
http://docs.telerik.com/kendo-ui/api/javascript/ui/contextmenu#methods-open
This method accepts either (number, number), (JQuery) or (Element). Unfortunatly the typings are defined as follows:
open(x: number, y: number): kendo.ui.ContextMenu;
open(x: Element, y: number): kendo.ui.ContextMenu;
open(x: JQuery, y: number): kendo.ui.ContextMenu;
For my typescript to compile while passing a JQuery object I am having to pass undefined as the second parameter.
Hello Ben,
Thanks for the report. I've marked the second paramter as optional which will result in correct TypeScript definition for the method.
Regards,
Nikolay Rusev
Telerik
Hello Alexander,
Indeed you are right. We will address this.
Regards,
Nikolay Rusev
Telerik