fix(radio-button): allow value type to be a number (#1868)

This commit is contained in:
metonym 2023-12-17 09:42:28 -08:00 committed by GitHub
commit 479225711a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 18 deletions

View file

@ -1,5 +1,8 @@
<script>
/** Specify the value of the radio button */
/**
* Specify the value of the radio button
* @type {string | number}
*/
export let value = "";
/** Set to `true` to check the radio button */

View file

@ -1,11 +1,11 @@
<script>
/**
* @event {string} change
* @event {string | number} change
*/
/**
* Set the selected radio button value
* @type {string}
* @type {string | number}
*/
export let selected = undefined;