Skip to content

Commit

Permalink
Accept only number for PropDesc.range
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Oct 6, 2023
1 parent 570e339 commit 136e535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tethr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type OperationResult<T = void> = T extends void

export type ConfigDescOption<T> =
| {type: 'enum'; values: T[]}
| {type: 'range'; min: T; max: T; step: T}
| {type: 'range'; min: number; max: number; step: number}

export type ConfigDesc<T> = {
value: T | null
Expand Down

0 comments on commit 136e535

Please sign in to comment.