From 136e5356b8facbfc9ab9336927cbbfc5ab650e2e Mon Sep 17 00:00:00 2001 From: Baku Hashimoto Date: Fri, 6 Oct 2023 14:48:49 +0900 Subject: [PATCH] Accept only number for PropDesc.range --- src/Tethr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tethr.ts b/src/Tethr.ts index c9c8027..81dc994 100644 --- a/src/Tethr.ts +++ b/src/Tethr.ts @@ -40,7 +40,7 @@ export type OperationResult = T extends void export type ConfigDescOption = | {type: 'enum'; values: T[]} - | {type: 'range'; min: T; max: T; step: T} + | {type: 'range'; min: number; max: number; step: number} export type ConfigDesc = { value: T | null