123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- // tslint:disable:no-irregular-whitespace
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQueryCallback extends JQuery.Callbacks {}
- interface JQueryDeferred<T> extends JQuery.Deferred<T> {}
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQueryEventConstructor extends JQuery.EventStatic {}
- interface JQueryDeferred<T> extends JQuery.Deferred<T> {}
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQueryAjaxSettings extends JQuery.AjaxSettings {}
- interface JQueryAnimationOptions extends JQuery.EffectsOptions<Element> {}
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQueryCoordinates extends JQuery.Coordinates {}
- interface JQueryGenericPromise<T> extends JQuery.Thenable<T> {}
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQueryXHR extends JQuery.jqXHR {}
- interface JQueryPromise<T> extends JQuery.Promise<T> {}
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQuerySerializeArrayElement extends JQuery.NameValuePair {}
- /**
- * @deprecated Deprecated since 1.9. See \`{@link https://api.jquery.com/jQuery.support/ }\`.
- */
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- interface JQuerySupport extends JQuery.PlainObject {}
- // Legacy types that are not represented in the current type definitions are marked deprecated.
- /**
- * @deprecated Deprecated. Use \`{@link JQuery.Deferred.Callback }\` or \`{@link JQuery.Deferred.CallbackBase }\`.
- */
- interface JQueryPromiseCallback<T> {
- (value?: T, ...args: any[]): void;
- }
- /**
- * @deprecated Deprecated. Use \`{@link JQueryStatic.param JQueryStatic['param']}\`.
- */
- interface JQueryParam {
- /**
- * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
- * @param obj An array or object to serialize.
- * @param traditional A Boolean indicating whether to perform a traditional "shallow" serialization.
- */
- (obj: any, traditional?: boolean): string;
- }
- /**
- * @deprecated Deprecated. Use \`{@link JQuery.Event }\`.
- */
- interface BaseJQueryEventObject extends Event {
- /**
- * The current DOM element within the event bubbling phase.
- * @see \`{@link https://api.jquery.com/event.currentTarget/ }\`
- */
- currentTarget: Element;
- /**
- * An optional object of data passed to an event method when the current executing handler is bound.
- * @see \`{@link https://api.jquery.com/event.data/ }\`
- */
- data: any;
- /**
- * The element where the currently-called jQuery event handler was attached.
- * @see \`{@link https://api.jquery.com/event.delegateTarget/ }\`
- */
- delegateTarget: Element;
- /**
- * Returns whether event.preventDefault() was ever called on this event object.
- * @see \`{@link https://api.jquery.com/event.isDefaultPrevented/ }\`
- */
- isDefaultPrevented(): boolean;
- /**
- * Returns whether event.stopImmediatePropagation() was ever called on this event object.
- * @see \`{@link https://api.jquery.com/event.isImmediatePropagationStopped/ }\`
- */
- isImmediatePropagationStopped(): boolean;
- /**
- * Returns whether event.stopPropagation() was ever called on this event object.
- * @see \`{@link https://api.jquery.com/event.isPropagationStopped/ }\`
- */
- isPropagationStopped(): boolean;
- /**
- * The namespace specified when the event was triggered.
- * @see \`{@link https://api.jquery.com/event.namespace/ }\`
- */
- namespace: string;
- /**
- * The browser's original Event object.
- * @see \`{@link https://api.jquery.com/category/events/event-object/ }\`
- */
- originalEvent: Event;
- /**
- * If this method is called, the default action of the event will not be triggered.
- * @see \`{@link https://api.jquery.com/event.preventDefault/ }\`
- */
- preventDefault(): any;
- /**
- * The other DOM element involved in the event, if any.
- * @see \`{@link https://api.jquery.com/event.relatedTarget/ }\`
- */
- relatedTarget: Element;
- /**
- * The last value returned by an event handler that was triggered by this event, unless the value was undefined.
- * @see \`{@link https://api.jquery.com/event.result/ }\`
- */
- result: any;
- /**
- * Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.
- * @see \`{@link https://api.jquery.com/event.stopImmediatePropagation/ }\`
- */
- stopImmediatePropagation(): void;
- /**
- * Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.
- * @see \`{@link https://api.jquery.com/event.stopPropagation/ }\`
- */
- stopPropagation(): void;
- /**
- * The DOM element that initiated the event.
- * @see \`{@link https://api.jquery.com/event.target/ }\`
- */
- target: Element;
- /**
- * The mouse position relative to the left edge of the document.
- * @see \`{@link https://api.jquery.com/event.pageX/ }\`
- */
- pageX: number;
- /**
- * The mouse position relative to the top edge of the document.
- * @see \`{@link https://api.jquery.com/event.pageY/ }\`
- */
- pageY: number;
- /**
- * For key or mouse events, this property indicates the specific key or button that was pressed.
- * @see \`{@link https://api.jquery.com/event.which/ }\`
- */
- which: number;
- /**
- * Indicates whether the META key was pressed when the event fired.
- * @see \`{@link https://api.jquery.com/event.metaKey/ }\`
- */
- metaKey: boolean;
- }
- /**
- * @deprecated Deprecated. Use \`{@link JQuery.Event }\`.
- */
- interface JQueryInputEventObject extends BaseJQueryEventObject {
- altKey: boolean;
- ctrlKey: boolean;
- metaKey: boolean;
- shiftKey: boolean;
- }
- /**
- * @deprecated Deprecated. Use \`{@link JQuery.Event }\`.
- */
- interface JQueryMouseEventObject extends JQueryInputEventObject {
- button: number;
- clientX: number;
- clientY: number;
- offsetX: number;
- offsetY: number;
- pageX: number;
- pageY: number;
- screenX: number;
- screenY: number;
- }
- /**
- * @deprecated Deprecated. Use \`{@link JQuery.Event }\`.
- */
- interface JQueryKeyEventObject extends JQueryInputEventObject {
- /** @deprecated */
- char: string;
- /** @deprecated */
- charCode: number;
- key: string;
- /** @deprecated */
- keyCode: number;
- }
- /**
- * @deprecated Deprecated. Use \`{@link JQuery.Event }\`.
- */
- interface JQueryEventObject
- extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject
- {}
- /**
- * @deprecated Deprecated.
- */
- interface JQueryPromiseOperator<T, U> {
- (
- callback1: JQuery.TypeOrArray<JQueryPromiseCallback<T>>,
- ...callbacksN: Array<JQuery.TypeOrArray<JQueryPromiseCallback<any>>>
- ): JQueryPromise<U>;
- }
- /**
- * @deprecated Deprecated. Internal. See \`{@link https://github.com/jquery/api.jquery.com/issues/912 }\`.
- */
- interface JQueryEasingFunction {
- (percent: number): number;
- }
- /**
- * @deprecated Deprecated. Internal. See \`{@link https://github.com/jquery/api.jquery.com/issues/912 }\`.
- */
- interface JQueryEasingFunctions {
- [name: string]: JQueryEasingFunction;
- linear: JQueryEasingFunction;
- swing: JQueryEasingFunction;
- }
|