Skip to content

Commit f899a47

Browse files
authored
Improve type for custom range value (#1218)
1 parent aef3b35 commit f899a47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nouislider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type SubRange = number | WrappedSubRange;
7070
interface Range {
7171
min: SubRange;
7272
max: SubRange;
73-
[key: string]: SubRange;
73+
[key: `${number}%`]: SubRange;
7474
}
7575

7676
//region Pips

0 commit comments

Comments
 (0)