From 0cd88e4394004f75ebfa70aa8de06c40b9f1327e Mon Sep 17 00:00:00 2001 From: Gregor Wassmann Date: Thu, 30 Dec 2021 22:00:12 +0100 Subject: [PATCH] Any instead of string --- COMPONENT_INDEX.md | 2 +- docs/src/COMPONENT_API.json | 2 +- src/Checkbox/Checkbox.svelte | 2 +- types/Checkbox/Checkbox.svelte.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 17414bea..02a5ae5e 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -464,7 +464,7 @@ None. | ref | let | Yes | null | HTMLInputElement | null | Obtain a reference to the input HTML element | | group | let | Yes | any[] | [] | Specify the bound group | | checked | let | Yes | boolean | false | Specify whether the checkbox is checked | -| value | let | No | string | any | "" | Specify the value of the checkbox | +| value | let | No | any | "" | Specify the value of the checkbox | | indeterminate | let | No | boolean | false | Specify whether the checkbox is indeterminate | | skeleton | let | No | boolean | false | Set to `true` to display the skeleton state | | readonly | let | No | boolean | false | Set to `true` for the checkbox to be read-only | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 87e2c010..243d55ac 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -712,7 +712,7 @@ "name": "value", "kind": "let", "description": "Specify the value of the checkbox", - "type": "string | any", + "type": "any", "value": "\"\"", "isFunction": false, "isFunctionDeclaration": false, diff --git a/src/Checkbox/Checkbox.svelte b/src/Checkbox/Checkbox.svelte index 000d2dff..c4da0153 100644 --- a/src/Checkbox/Checkbox.svelte +++ b/src/Checkbox/Checkbox.svelte @@ -5,7 +5,7 @@ /** * Specify the value of the checkbox - * @type {string | any} + * @type {any} */ export let value = ""; diff --git a/types/Checkbox/Checkbox.svelte.d.ts b/types/Checkbox/Checkbox.svelte.d.ts index 2f1ff011..4f75a69f 100644 --- a/types/Checkbox/Checkbox.svelte.d.ts +++ b/types/Checkbox/Checkbox.svelte.d.ts @@ -6,7 +6,7 @@ export interface CheckboxProps { * Specify the value of the checkbox * @default "" */ - value?: string | any; + value?: any; /** * Specify whether the checkbox is checked