From 9c2035e2d123d989f6bff555581b21824b174b12 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 28 Jan 2023 20:58:37 +1000 Subject: [PATCH] Make SpinBox types more specific, and add default max value. --- ts/deck-options/SpinBoxFloatRow.svelte | 6 +++--- ts/deck-options/SpinBoxRow.svelte | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ts/deck-options/SpinBoxFloatRow.svelte b/ts/deck-options/SpinBoxFloatRow.svelte index 3de3fd868..33d772b5b 100644 --- a/ts/deck-options/SpinBoxFloatRow.svelte +++ b/ts/deck-options/SpinBoxFloatRow.svelte @@ -9,10 +9,10 @@ import ConfigInput from "./ConfigInput.svelte"; import RevertButton from "./RevertButton.svelte"; - export let value: any; - export let defaultValue: any; + export let value: number; + export let defaultValue: number; export let min = 0; - export let max: number | undefined = undefined; + export let max = 9999; diff --git a/ts/deck-options/SpinBoxRow.svelte b/ts/deck-options/SpinBoxRow.svelte index 50e0311c5..2ccbf62e8 100644 --- a/ts/deck-options/SpinBoxRow.svelte +++ b/ts/deck-options/SpinBoxRow.svelte @@ -9,10 +9,10 @@ import ConfigInput from "./ConfigInput.svelte"; import RevertButton from "./RevertButton.svelte"; - export let value: any; - export let defaultValue: any; + export let value: number; + export let defaultValue: number; export let min = 0; - export let max: number | undefined = undefined; + export let max = 9999;