Simon Egersand
2018-02-11 d4bf16e299f8ea25477ed9c15a336bce36affe4b
react-datetime.d.ts
@@ -23,6 +23,11 @@
     */
    defaultValue?: Date;
    /*
     Represents the month which is viewed on opening the calendar when there is no selected date.
     This prop is parsed by Moment.js, so it is possible to use a date `string` or a `moment` object.
     */
    viewDate?: Date;
    /*
     Defines the format for the date. It accepts any moment.js date format.
     If true the date will be displayed using the defaults for the current locale.
     If false the datepicker is disabled and the component can be used as timepicker.
@@ -87,6 +92,12 @@
     */
    inputProps?: Object;
    /*
     Replace the rendering of the input element. The accepted function has openCalendar
     (a function which opens the calendar) and the default calculated props for the input.
     Must return a React component or null.
     */
    renderInput?: (props: Object, openCalendar: Function) => React.Component<any, any>;
    /*
     Define the dates that can be selected. The function receives (currentDate, selectedDate)
     and should return a true or false whether the currentDate is valid or not. See selectable dates.
     */