Skip to content

Commit

Permalink
Convert start/finish focus const to enum for TS (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
illusional authored Aug 22, 2020
1 parent 554ba70 commit 16d249b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ declare module "react-nice-dates" {
format?: string;
}

type DateRangeFocus = 'startDate' | 'endDate';
export enum DateRangeFocus {
startDate = 'startDate',
endDate = 'endDate'
}

interface DateRangePickerChildrenProps {
startDateInputProps: InputProps;
Expand Down

0 comments on commit 16d249b

Please sign in to comment.