mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Updated typings for version 0.1.19.
This commit is contained in:
+15
-7
@@ -32,13 +32,17 @@ declare module reactInputCalendar {
|
||||
*/
|
||||
computableFormat?: string;
|
||||
/**
|
||||
* Set an function that will be triggered whenever there is a change in the selected date. It will return the date in the props.computableFormat format.
|
||||
* Set a function that will be triggered whenever there is a change in the selected date. It will return the date in the props.computableFormat format.
|
||||
*/
|
||||
onChange?:(selectedDate: string)=>any;
|
||||
onChange?: (computableDate: string) => void;
|
||||
/**
|
||||
* Set a function that will be triggered the when input field is blurred. It will return the event and the date in the props.computableFormat format.
|
||||
*/
|
||||
onBlur?: (event: __React.SyntheticEvent, computableDate: string) => void;
|
||||
/**
|
||||
* Define state when date picker would close once the user has clicked on a date.
|
||||
*/
|
||||
closeOnSelect?:boolean;
|
||||
closeOnSelect?: boolean;
|
||||
/**
|
||||
* Setting this value to true makes the calendar widget open when the iput field is focused.
|
||||
*/
|
||||
@@ -46,14 +50,18 @@ declare module reactInputCalendar {
|
||||
/**
|
||||
* Value to show in the input text box if no date is set.
|
||||
*/
|
||||
placeholder?:string
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Id that should be applied to the input field. Useful when using it with a label element.
|
||||
*/
|
||||
inputFieldId?: string;
|
||||
}
|
||||
interface ReactInputCalendarState { }
|
||||
export class ReactInputCalendar extends __React.Component<ReactInputCalendarProps, ReactInputCalendarState>{
|
||||
render(): __React.DOMElement<any>
|
||||
export class ReactInputCalendar extends __React.Component<ReactInputCalendarProps, ReactInputCalendarState> {
|
||||
render(): __React.DOMElement<any>;
|
||||
}
|
||||
}
|
||||
declare var ReactInputCalendar: typeof reactInputCalendar.ReactInputCalendar
|
||||
declare module "react-input-calendar" {
|
||||
export = ReactInputCalendar
|
||||
export = ReactInputCalendar;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user