Declined
Last Updated: 21 Jun 2022 06:04 by ADMIN
Michael D
Created on: 14 Jun 2022 09:19
Category: Kendo UI for jQuery
Type: Bug Report
0
TS wrong typing for "fillMode", "rounded" and "size" options

The problem described happens for multiple controls. For the sake of simplicity, I'll stick with the DropDownList.

As documented here, the DropDownList's "fillMode" option supports "null" as value. However, the corresponding TS typings file does not allow null. The same is true for the "rounded" and "size" options as you can see in the snippet below that was copied from "index.d.ts".

interface DropDownListOptions {
        fillMode?: string | undefined;
        rounded?: string | undefined;
        size?: string | undefined;
    }

Note: parts of the code were omitted for brevity's sake.

A (temporary) workaround is to trick the typing system by casting manually:

fillMode: null as unknown as string | undefined

1 comment
ADMIN
Martin
Posted on: 21 Jun 2022 06:04

Hello, Michael,

Thank you for reporting the behaviour.

In the next release ( which is in Wednesday ) we will be replacing null with "none" so that should resolve the problem. 

Let me know if you have any further questions.

Regards,
Martin
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/.