Skip to content

Commit

Permalink
Improve type for custom range value (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdomleo7 authored Aug 12, 2022
1 parent aef3b35 commit f899a47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/nouislider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type SubRange = number | WrappedSubRange;
interface Range {
min: SubRange;
max: SubRange;
[key: string]: SubRange;
[key: `${number}%`]: SubRange;
}

//region Pips
Expand Down

0 comments on commit f899a47

Please sign in to comment.