Skip to content

Commit

Permalink
[@type/react-infinite-calendar] Describe locale.locale in detail (Def…
Browse files Browse the repository at this point in the history
…initelyTyped#42703)

* update: locale.locale

* update: test case

* Update locale types in more detail
  • Loading branch information
amcasey authored Mar 5, 2020
1 parent 5f2ca8c commit 98f627d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/react-infinite-calendar/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export interface ReactInfiniteCalendarProps {
todayHelperRowOffset?: number;
};
locale?: {
locale?: {
distanceInWords: (token: any, count: any, options: any) => any,
format: () => any;
},
blank?: string;
headerFormat?: string;
todayLabel?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const test: React.SFC = () => (
todayHelperRowOffset: 4,
}}
locale={{
locale: {
distanceInWords: () => {},
format: () => {}
},
blank: 'Select a date...',
headerFormat: 'ddd, MMM Do',
todayLabel: {
Expand Down

0 comments on commit 98f627d

Please sign in to comment.