Skip to content

Commit

Permalink
fix(#32): Fix types of formatter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Walocha committed Oct 12, 2020
1 parent 3fb5666 commit 19617be
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 19617be

Please sign in to comment.