DefinitelyTyped/react-datepicker/index.d.ts
Andy 8841dfc744 Use index.d.ts only (not foo/foo.d.ts) (#12834)
* Use index.d.ts only (not foo/foo.d.ts)

* Convert more packages

* Remove unnecessary references
2016-11-21 12:58:06 -08:00

57 lines
1.8 KiB
TypeScript

// Type definitions for react-datepicker v0.28.1
// Project: https://github.com/Hacker0x01/react-datepicker
// Definitions by: Rajab Shakirov <https://github.com/radziksh>, Andrey Balokha <https://github.com/andrewBalekha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react"/>
declare module "react-datepicker" {
interface ReactDatePickerProps {
autoComplete?: string;
autoFocus?: boolean;
className?: string;
customInput?: React.ReactNode;
dateFormat?: string;
dateFormatCalendar?: string;
disabled?: boolean;
endDate?: {};
excludeDates?: any[];
filterDate?():any;
fixedHeight?: boolean;
id?: string;
includeDates?: any[];
isClearable?: boolean;
locale?: string;
maxDate?: {};
minDate?: {};
name?: string;
onBlur?():any;
onChange():any;
onChange(date?:any):any;
onFocus?():any;
peekNextMonth?: boolean;
placeholderText?: string;
popoverAttachment?: string;
popoverTargetAttachment?: string;
popoverTargetOffset?: string;
readOnly?: boolean;
renderCalendarTo?: any;
required?: boolean;
scrollableYearDropdown?: boolean;
selected?: {};
selectsEnd?: boolean;
selectsStart?: boolean;
showMonthDropdown?: boolean;
showYearDropdown?: boolean;
showWeekNumbers?: boolean;
startDate?: {};
tabIndex?: number;
tetherConstraints?: any[];
title?: string;
todayButton?: string;
utcOffset?: number;
}
let ReactDatePicker: React.ClassicComponentClass<ReactDatePickerProps>;
export = ReactDatePicker;
}