[@type/react-infinite-calendar] Describe locale.locale in detail (#42703)

* update: locale.locale

* update: test case

* Update locale types in more detail
This commit is contained in:
Andrew Casey
2020-03-05 14:08:17 -08:00
committed by GitHub
parent 5f2ca8c55a
commit 98f627db4a
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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?: {
@@ -32,6 +32,10 @@ const test: React.SFC = () => (
todayHelperRowOffset: 4,
}}
locale={{
locale: {
distanceInWords: () => {},
format: () => {}
},
blank: 'Select a date...',
headerFormat: 'ddd, MMM Do',
todayLabel: {