Skip to content

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
kseniya57 committed Jan 18, 2021
1 parent c37b452 commit 1f5dfa9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idui/react-date-components",
"version": "1.1.0",
"version": "1.1.1",
"description": "React Calendar Component",
"author": "kaprisa57@gmail.com",
"license": "MIT",
Expand Down
25 changes: 25 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,38 @@ export interface DateRangeInputProps extends DateRangePickerProps, CommonDateInp
export class DateRangeInput extends React.Component<DateRangeInputProps> {}

export interface TimeOptionProps {
/**
* React key
*/
key: string;
/**
* is option selected
*/
isSelected: boolean;
/**
* onClick event handler
*/
onClick?: React.EventHandler<void>;
/**
* option
*/
data: object;
/**
* option value key
*/
valueKey: string;
/**
* option label key
*/
labelKey: string;
/**
* divider between hours and minutes
*/
divider: React.ReactNode;
/**
* whether option leads to another option or not
*/
withRedirect?: boolean;
}

export interface TimePickerProps {
Expand Down

0 comments on commit 1f5dfa9

Please sign in to comment.