fix(datepicker): date now accepts Date, string, or number (#428)

closes #354
This commit is contained in:
Ibrahim Hadeed 2016-08-15 03:58:06 -04:00 committed by GitHub
parent c9b76c4a9a
commit aaddd9eea2

View File

@ -13,7 +13,7 @@ export interface DatePickerOptions {
* Platforms: iOS, Android, Windows * Platforms: iOS, Android, Windows
* Selected date * Selected date
*/ */
date: Date; date: Date | string | number;
/** /**
* Platforms: iOS, Android, Windows * Platforms: iOS, Android, Windows
@ -21,7 +21,7 @@ export interface DatePickerOptions {
* Type: Date | empty String * Type: Date | empty String
* Default: empty String * Default: empty String
*/ */
minDate?: Date; minDate?: Date | string | number;
/** /**
* Platforms?: iOS, Android, Windows * Platforms?: iOS, Android, Windows
@ -29,7 +29,7 @@ export interface DatePickerOptions {
* Type?: Date | empty String * Type?: Date | empty String
* Default?: empty String * Default?: empty String
*/ */
maxDate?: Date; maxDate?: Date | string | number;
/** /**
* Platforms?: Android * Platforms?: Android