mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Use consistent date definitions
This commit is contained in:
parent
cff16e5d7d
commit
ccd96b45b2
4 changed files with 21 additions and 21 deletions
6
types/DatePicker/DatePicker.d.ts
vendored
6
types/DatePicker/DatePicker.d.ts
vendored
|
@ -13,7 +13,7 @@ export interface DatePickerProps
|
|||
* Specify the date picker input value
|
||||
* @default ""
|
||||
*/
|
||||
value?: number | string;
|
||||
value?: number | string | Date;
|
||||
|
||||
/**
|
||||
* Specify the element to append the calendar to
|
||||
|
@ -30,13 +30,13 @@ export interface DatePickerProps
|
|||
* Specify the maximum date
|
||||
* @default null
|
||||
*/
|
||||
maxDate?: null | string | Date;
|
||||
maxDate?: null | number | string | Date;
|
||||
|
||||
/**
|
||||
* Specify the minimum date
|
||||
* @default null
|
||||
*/
|
||||
minDate?: null | string | Date;
|
||||
minDate?: null | number | string | Date;
|
||||
|
||||
/**
|
||||
* Specify the locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue