fix(date-picker): type locale prop using flatpickr types

Fixes #855
This commit is contained in:
metonym 2021-11-12 14:32:11 -08:00
commit 0b931cafdb
5 changed files with 25 additions and 17 deletions

View file

@ -51,7 +51,9 @@ export interface DatePickerProps
* Specify the locale
* @default "en"
*/
locale?: string;
locale?:
| import("flatpickr/dist/types/locale").CustomLocale
| import("flatpickr/dist/types/locale").key;
/**
* Set to `true` to use the short variant