Skip to content

Instantly share code, notes, and snippets.

@moritzuehling
Created June 23, 2016 19:33
Show Gist options
  • Save moritzuehling/5bd9bcf0aaeb1d366c634f99228f117d to your computer and use it in GitHub Desktop.
Save moritzuehling/5bd9bcf0aaeb1d366c634f99228f117d to your computer and use it in GitHub Desktop.
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