Skip to content

Instantly share code, notes, and snippets.

@torryt
Last active February 16, 2017 15:10
Show Gist options
  • Save torryt/ccdaf6daf0d7df6252ac2a4539a00520 to your computer and use it in GitHub Desktop.
Save torryt/ccdaf6daf0d7df6252ac2a4539a00520 to your computer and use it in GitHub Desktop.
declare module 'react-dates' {
import { Component } from 'react';
import { Moment } from 'moment';
interface MomentAction {
() : Moment;
}
export interface DateInterval {
startDate: Moment;
endDate: Moment;
}
interface DateRangePickerProps {
className: string;
startDate: Moment;
endDate: Moment;
initialVisibleMonth: MomentAction;
focusedInput?: string;
onDatesChange: (dates: DateInterval) => void;
onFocusChange: (input?: string) => void;
isOutsideRange: (day: Moment) => boolean;
}
export class DateRangePicker extends Component<DateRangePickerProps, {}> { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment