mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #17585 from evil-shrike/bootstrap.v3.datetimepicker
[bootstrap.v3.datetimepicker] fixed JQuery plugin declaration
This commit is contained in:
+13
-1
@@ -328,6 +328,18 @@ export interface Datetimepicker {
|
||||
* Usually you should not override those options unless you have a special need in your layout.
|
||||
*/
|
||||
widgetPositioning(value: WidgetPositioningOptions): void;
|
||||
|
||||
/**
|
||||
* JQuery plugin function.
|
||||
* @param {DatetimepickerOptions} options
|
||||
*/
|
||||
(options?: DatetimepickerOptions): JQuery;
|
||||
|
||||
/**
|
||||
* Default options that will be used for all instances.
|
||||
* To change: `$.fn.datetimepicker.defaults`
|
||||
*/
|
||||
defaults: DatetimepickerOptions;
|
||||
}
|
||||
|
||||
export interface DatetimepickerOptions {
|
||||
@@ -581,7 +593,7 @@ export type EventName = "dp.show" | "dp.hide" | "dp.error";
|
||||
|
||||
declare global {
|
||||
interface JQuery {
|
||||
datetimepicker(options?: DatetimepickerOptions): JQuery;
|
||||
datetimepicker: Datetimepicker;
|
||||
|
||||
data(key: "DateTimePicker"): Datetimepicker;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user