From 77aeb27dcfd41a6855619e71eaffd7c7a54ab283 Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 3 Oct 2016 14:11:05 -0500 Subject: [PATCH 1/6] Adding union type for offset --- bootstrap-notify/bootstrap-notify.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bootstrap-notify/bootstrap-notify.d.ts b/bootstrap-notify/bootstrap-notify.d.ts index acdb83b9fd..77d249694e 100644 --- a/bootstrap-notify/bootstrap-notify.d.ts +++ b/bootstrap-notify/bootstrap-notify.d.ts @@ -36,7 +36,10 @@ interface NotifySettings { from?: string; align?: string; }; - offset?: number; + offset?: number | { + x?: number; + y?: number; + }; spacing?: number; z_index?: number; delay?: number; @@ -59,4 +62,4 @@ interface NotifyReturn { $ele: JQueryStatic; close: () => void; update: (command: string, update: any) => void; -} \ No newline at end of file +} From 098e19424d67b6817bd5e4bbe6fc3a51cda7a3c2 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 10 Nov 2016 09:14:52 -0600 Subject: [PATCH 2/6] Fixing typo and adding properties See http://jdewit.github.io/bootstrap-timepicker/ for more information --- .../bootstrap.timepicker.d.ts | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/bootstrap.timepicker/bootstrap.timepicker.d.ts b/bootstrap.timepicker/bootstrap.timepicker.d.ts index 70a48184e6..4d2c0d8433 100644 --- a/bootstrap.timepicker/bootstrap.timepicker.d.ts +++ b/bootstrap.timepicker/bootstrap.timepicker.d.ts @@ -5,9 +5,12 @@ /// -interface TimeickerOptions { - defaultTime?: string; +interface TimepickerOptions { + defaultTime?: string|boolean; disableFocus?: boolean; + disableMousewheel?: boolean; + explicitMode?: boolean; + icons?: TimepickerIconOptions; isOpen?: boolean; minuteStep?: number; modalBackdrop?: boolean; @@ -15,13 +18,32 @@ interface TimeickerOptions { showSeconds?: boolean; showInputs?: boolean; showMeridian?: boolean; - template?: string; + template?: string|boolean; appendWidgetTo?: string; + maxHours?: number; + snapToStep?: boolean; +} + +interface TimepickerIconOptions { + up?: string; + down?: string; +} + +interface TimepickerTime { + value?: string; + hours?: number; + minutes?: number; + seconds?: number; + meridian?: string; } interface JQuery { timepicker(): JQuery; timepicker(methodName: string): JQuery; timepicker(methodName: string, params: any): JQuery; - timepicker(options: TimeickerOptions): JQuery; + timepicker(options: TimepickerOptions): JQuery; +} + +interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject { + time?: TimepickerTime; } From 867b7c605270f3497babb71678ee8e1cae908cff Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 10 Nov 2016 09:22:13 -0600 Subject: [PATCH 3/6] Update bootstrap-notify.d.ts --- bootstrap-notify/bootstrap-notify.d.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bootstrap-notify/bootstrap-notify.d.ts b/bootstrap-notify/bootstrap-notify.d.ts index 77d249694e..0686e5ef13 100644 --- a/bootstrap-notify/bootstrap-notify.d.ts +++ b/bootstrap-notify/bootstrap-notify.d.ts @@ -36,10 +36,7 @@ interface NotifySettings { from?: string; align?: string; }; - offset?: number | { - x?: number; - y?: number; - }; + offset?: number; spacing?: number; z_index?: number; delay?: number; From 3c49b984860fc743492503a589d31e3a497ef077 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 10 Nov 2016 09:23:04 -0600 Subject: [PATCH 4/6] Update bootstrap-notify.d.ts --- bootstrap-notify/bootstrap-notify.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bootstrap-notify/bootstrap-notify.d.ts b/bootstrap-notify/bootstrap-notify.d.ts index 0686e5ef13..85e2843569 100644 --- a/bootstrap-notify/bootstrap-notify.d.ts +++ b/bootstrap-notify/bootstrap-notify.d.ts @@ -58,5 +58,4 @@ interface NotifySettings { interface NotifyReturn { $ele: JQueryStatic; close: () => void; - update: (command: string, update: any) => void; -} + update: (command: string, update: any) => void;} From feacf3715a8372f303321d10be01012d1294b586 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 10 Nov 2016 09:23:55 -0600 Subject: [PATCH 5/6] Update bootstrap-notify.d.ts --- bootstrap-notify/bootstrap-notify.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap-notify/bootstrap-notify.d.ts b/bootstrap-notify/bootstrap-notify.d.ts index 85e2843569..0686e5ef13 100644 --- a/bootstrap-notify/bootstrap-notify.d.ts +++ b/bootstrap-notify/bootstrap-notify.d.ts @@ -58,4 +58,5 @@ interface NotifySettings { interface NotifyReturn { $ele: JQueryStatic; close: () => void; - update: (command: string, update: any) => void;} + update: (command: string, update: any) => void; +} From 91a42a52bf37d8fbb8db6535a048273104ee6964 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 10 Nov 2016 09:24:20 -0600 Subject: [PATCH 6/6] Update bootstrap-notify.d.ts