Created
June 23, 2016 19:33
-
-
Save moritzuehling/5bd9bcf0aaeb1d366c634f99228f117d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'react-input-range' { | |
export = ReactInputRange.InputRange; | |
} | |
declare namespace ReactInputRange { | |
interface IRange { | |
min: number; | |
max: number; | |
} | |
interface IInputRangeProps { | |
classNames?: { | |
component?: string; | |
labelContainer?: string; | |
labelMax?: string; | |
labelMin?: string; | |
labelValue?: string; | |
slider?: string; | |
sliderContainer?: string; | |
trackActive?: string; | |
trackContainer?: string; | |
}; | |
ariaLabelledby?: string; | |
ariaControls?: string; | |
defaultValue?: number; | |
disabled?: boolean; | |
formatLabel?: | |
(labelValue: string, preSuffix: { labelPrefix: string, labelSuffix: string}) => string; | |
labelPrefix?: string; | |
labelSuffix?: string; | |
maxValue?: number; | |
minValue?: number; | |
name?: string; | |
onChange: (element: this, value: (number | IRange)) => any; | |
onChangeComplete?: () => any; | |
step?: number; | |
value: number | IRange; | |
} | |
export class InputRange extends __React.Component<IInputRangeProps, any> {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment