From 93f0a11eb6600566c6f663e111f7415f4f4cb36c Mon Sep 17 00:00:00 2001 From: "Omid K. Rad" Date: Thu, 26 Jun 2014 19:38:07 -0700 Subject: [PATCH] Added comments about options of Date type and fixed the build --- bootstrap.datepicker/bootstrap.datepicker.d.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bootstrap.datepicker/bootstrap.datepicker.d.ts b/bootstrap.datepicker/bootstrap.datepicker.d.ts index 8c128234ce..da0ec1ab3d 100644 --- a/bootstrap.datepicker/bootstrap.datepicker.d.ts +++ b/bootstrap.datepicker/bootstrap.datepicker.d.ts @@ -6,20 +6,26 @@ /// /** - * See online docs: http://bootstrap-datepicker.readthedocs.org/ + * All options that take a “Date” can handle a Date object; a String + * formatted according to the given format; or a timedelta relative + * to today, eg “-1d”, “+6m +1y”, etc, where valid units are “d” (day), + * “w” (week), “m” (month), and “y” (year). + * + * See online docs for more info: + * http://bootstrap-datepicker.readthedocs.org/en/release/options.html */ interface DatepickerOptions { format?: string; weekStart?: number; - startDate?: Date; - endDate?: Date; + startDate?: any; + endDate?: any; autoclose?: boolean; startView?: number; todayBtn?: any; todayHighlight?: boolean; keyboardNavigation?: boolean; language?: string; - beforeShowDay?: (Date) => any; + beforeShowDay?: (date: any) => any; calendarWeeks?: boolean; clearBtn?: boolean; daysOfWeekDisabled?: number[];