Currently, the RadioButton value is typed to only allow strings. This was inadvertence since the type definitions for the library are auto-generated. If no explicit type is annotated, the type generator will use its default type.
This PR fixes loosens the value type to allow strings and numbers. I'd prefer not to make this an any type as I believe there is value in strictness.
Without this change, the following code would run fine but produce type errors.
Fixes #1867
Currently, the RadioButton
value
is typed to only allow strings. This was inadvertence since the type definitions for the library are auto-generated. If no explicit type is annotated, the type generator will use its default type.This PR fixes loosens the
value
type to allow strings and numbers. I'd prefer not to make this anany
type as I believe there is value in strictness.Without this change, the following code would run fine but produce type errors.