You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Radio Button Props in the API references describes onChange as having the type of:
onChange?
(event: RadioButtonChangeEvent) => void
But in the actual library, this is not the case. We are using "@progress/kendo-vue-inputs": "^6.0.1",.
Here are the actual type definitions in node_modules > @progress > kendo-vue-inputs > index.d.mts > RadioButton
onChange?: (...args: any[]|unknown[])=>any;
This is causing TypeScript errors when I try to use the component how the documentation suggests:
Type '(event: RadioButtonChangeEvent) => void' is not assignable to type '(...args: any[] | unknown[]) => any'.
Types of parameters 'event' and 'args' are incompatible.
Type 'any[] | unknown[]' is not assignable to type '[event: RadioButtonChangeEvent]'.
Type 'any[]' is not assignable to type '[event: RadioButtonChangeEvent]'.
Target requires 1 element(s) but source may have fewer.ts-plugin(2322)
index.d.mts(2721, 1): The expected type comes from property 'onChange' which is declared here on type '__VLS_NormalizeComponentEvent<NonNullable<Partial<{ size: string; valid: boolean; tag: string; }> & Omit<{ readonly tag: string; readonly size: string; readonly id?: string | undefined; readonly ariaDescribedBy?: string | undefined; ... 17 more ...; readonly onFocus?: ((...args: any[] | unknown[]) => any) | undefine...'
(property) onChange?: ((...args: any[] | unknown[]) => any) | undefined
This isn't only limited to Radio Buttons or just this library, but other libraries as well. Take this one for example:
Screenshots
Browser
OS: N/A
Browser N/A
Version N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the issue
https://www.telerik.com/kendo-vue-ui/components/inputs/api/RadioButtonProps/#toc-onchange
Radio Button Props in the API references describes onChange as having the type of:
But in the actual library, this is not the case. We are using
"@progress/kendo-vue-inputs": "^6.0.1",
.Here are the actual type definitions in
node_modules > @progress > kendo-vue-inputs > index.d.mts > RadioButton
This is causing TypeScript errors when I try to use the component how the documentation suggests:
This isn't only limited to Radio Buttons or just this library, but other libraries as well. Take this one for example:
Screenshots
Browser
Additional context
N/A
The text was updated successfully, but these errors were encountered: