Skip to content

Commit

Permalink
Merge pull request #33 from JenWa/fix/formatter-return-numbers
Browse files Browse the repository at this point in the history
fix(#32): Fix types of formatter functions
  • Loading branch information
mmarkelov committed Oct 13, 2020
2 parents 3fb5666 + 19617be commit b6c1409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -9,8 +9,8 @@ interface Callback {
}

interface Formatter {
to(val: number): string;
from(val: string): number;
to(val: number): string | number;
from(val: string | number): number;
}

export interface NouisliderProps {
Expand Down

0 comments on commit b6c1409

Please sign in to comment.