DefinitelyTyped/react-datepicker/react-datepicker.d.ts
Rajab Shakirov 1e5bb9f454 add initial typing for react-datepicker (#9188)
* add initial typing for react-datepicker

* add any for props
2016-05-06 02:15:56 +09:00

45 lines
1.4 KiB
TypeScript

// Type definitions for react-datepicker v0.27.0
// 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 path="../react/react.d.ts"/>
declare module "react-datepicker" {
interface ReactDatePicker {
className?: string;
dateFormat?: string;
dateFormatCalendar?: string;
disabled?: boolean;
endDate?: {};
excludeDates?: any[];
filterDate?():any;
id?: string;
includeDates?: any[];
isClearable?: boolean;
locale?: string;
maxDate?: {};
minDate?: {};
name?: string;
onBlur?():any;
onChange():any;
onChange(date?:any):any;
onFocus?():any;
placeholderText?: string;
popoverAttachment?: string;
popoverTargetAttachment?: string;
popoverTargetOffset?: string;
readOnly?: boolean;
renderCalendarTo?: any;
required?: boolean;
selected?: {};
showYearDropdown?: boolean;
startDate?: {};
tabIndex?: number;
tetherConstraints?: any[];
title?: string;
todayButton?: string;
}
let ReactDatePicker: __React.ClassicComponentClass<ReactDatePicker>;
export = ReactDatePicker;
}