Last active
February 16, 2017 15:10
-
-
Save torryt/ccdaf6daf0d7df6252ac2a4539a00520 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-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