Add missing props to react-datepicker

Used the following doc as reference:
https://github.com/Hacker0x01/react-datepicker/blob/v0.40.0/docs/datepicker.md
This commit is contained in:
slozier
2017-04-06 10:25:56 -04:00
committed by GitHub
parent e2f264c1b3
commit 528386483d

View File

@@ -16,21 +16,28 @@ declare module "react-datepicker" {
dateFormat?: string;
dateFormatCalendar?: string;
disabled?: boolean;
dropdownMode?: string;
endDate?: moment.Moment;
excludeDates?: any[];
filterDate?(): any;
fixedHeight?: boolean;
forceShowMonthNavigation?: boolean;
highlightDates?: any[];
id?: string;
includeDates?: any[];
inline?: boolean;
isClearable?: boolean;
locale?: string;
maxDate?: moment.Moment;
minDate?: moment.Moment;
monthsShown?: number;
name?: string;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
onChange(date: moment.Moment | null, event: React.SyntheticEvent<any> | undefined): any;
onChangeRaw?(event: React.FocusEvent<HTMLInputElement>): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onMonthChange?(date: moment.Moment): void;
openToDate?: moment.Moment;
peekNextMonth?: boolean;
placeholderText?: string;
popoverAttachment?: string;