Completed
Last Updated: 10 Jan 2022 16:04 by ADMIN
Michael D
Created on: 29 Nov 2021 10:25
Category: Diagram
Type: Bug Report
0
kendo.dataviz.diagram.Shape typing wrong

The Typescript definitions for Kendo UI define the connections() method which is part of the kendo.dataviz.diagram.Shape interface as follows:

connections(type: string): void;

The documentation (https://docs.telerik.com/kendo-ui/api/javascript/dataviz/diagram/shape/methods/connections) however, specifies:

Returns the connections attached to the shape. You can optionally specify to return only the incoming or outgoing connections.

 

Therefore, connections() should not be of type void and the type parameter should be optional.

 

To solve this issue, we currently cast both the parameter and the result.

1 comment
ADMIN
Georgi Denchev
Posted on: 06 Dec 2021 11:05

Hi, Michael,

Thank you for the provided details!

We'll review the reported typescript definition and update it accordingly.

Best Regards,
Georgi Denchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.