@types/angular
Advanced tools
Comparing version 1.6.28 to 1.6.29
@@ -28,2 +28,6 @@ // Project: http://jquery.com/ | ||
interface JQLite extends JQuery { | ||
[index: number]: HTMLElement; | ||
} | ||
interface JQuery { | ||
@@ -36,3 +40,3 @@ /** | ||
*/ | ||
addClass(className: string): JQuery; | ||
addClass(className: string): this; | ||
@@ -46,3 +50,3 @@ /** | ||
*/ | ||
after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; | ||
after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): this; | ||
/** | ||
@@ -54,3 +58,3 @@ * Insert content, specified by the parameter, after each element in the set of matched elements. | ||
*/ | ||
after(func: (index: number, html: string) => string | Element | JQuery): JQuery; | ||
after(func: (index: number, html: string) => string | Element | JQuery): this; | ||
@@ -64,3 +68,3 @@ /** | ||
*/ | ||
append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; | ||
append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): this; | ||
/** | ||
@@ -72,3 +76,3 @@ * Insert content, specified by the parameter, to the end of each element in the set of matched elements. | ||
*/ | ||
append(func: (index: number, html: string) => string | Element | JQuery): JQuery; | ||
append(func: (index: number, html: string) => string | Element | JQuery): this; | ||
@@ -89,3 +93,3 @@ /** | ||
*/ | ||
attr(attributeName: string, value: string | number | null): JQuery; | ||
attr(attributeName: string, value: string | number | null): this; | ||
/** | ||
@@ -97,3 +101,3 @@ * Set one or more attributes for the set of matched elements. | ||
*/ | ||
attr(attributes: Object): JQuery; | ||
attr(attributes: Object): this; | ||
@@ -107,3 +111,3 @@ /** | ||
*/ | ||
bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery; | ||
bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -116,3 +120,3 @@ * Attach a handler to an event for the elements. | ||
*/ | ||
bind(eventType: string, preventBubble: boolean): JQuery; | ||
bind(eventType: string, preventBubble: boolean): this; | ||
/** | ||
@@ -124,3 +128,3 @@ * Attach a handler to an event for the elements. | ||
*/ | ||
bind(events: any): JQuery; | ||
bind(events: any): this; | ||
@@ -132,3 +136,3 @@ /** | ||
*/ | ||
children(): JQuery; | ||
children(): this; | ||
@@ -142,3 +146,3 @@ /** | ||
*/ | ||
clone(withDataAndEvents?: boolean, deepWithDataAndEvents?: boolean): JQuery; | ||
clone(withDataAndEvents?: boolean, deepWithDataAndEvents?: boolean): this; | ||
@@ -149,3 +153,3 @@ /** | ||
*/ | ||
contents(): JQuery; | ||
contents(): this; | ||
@@ -174,3 +178,3 @@ /** | ||
*/ | ||
css(propertyName: string, value: string | number): JQuery; | ||
css(propertyName: string, value: string | number): this; | ||
/** | ||
@@ -183,3 +187,3 @@ * Set one or more CSS properties for the set of matched elements. | ||
*/ | ||
css(propertyName: string, value: (index: number, value: string) => string | number): JQuery; | ||
css(propertyName: string, value: (index: number, value: string) => string | number): this; | ||
/** | ||
@@ -191,3 +195,3 @@ * Set one or more CSS properties for the set of matched elements. | ||
*/ | ||
css(properties: JQLiteCssProperties): JQuery; | ||
css(properties: JQLiteCssProperties): this; | ||
@@ -201,3 +205,3 @@ /** | ||
*/ | ||
data(key: string, value: any): JQuery; | ||
data(key: string, value: any): this; | ||
/** | ||
@@ -216,3 +220,3 @@ * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute. | ||
*/ | ||
data(obj: { [key: string]: any; }): JQuery; | ||
data(obj: { [key: string]: any; }): this; | ||
/** | ||
@@ -230,3 +234,3 @@ * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute. | ||
*/ | ||
detach(selector?: string): JQuery; | ||
detach(selector?: string): this; | ||
@@ -237,3 +241,3 @@ /** | ||
*/ | ||
empty(): JQuery; | ||
empty(): this; | ||
@@ -246,3 +250,3 @@ /** | ||
*/ | ||
eq(index: number): JQuery; | ||
eq(index: number): this; | ||
@@ -255,5 +259,5 @@ /** | ||
*/ | ||
find(selector: string): JQuery; | ||
find(element: any): JQuery; | ||
find(obj: JQuery): JQuery; | ||
find(selector: string): this; | ||
find(element: any): this; | ||
find(obj: JQuery): this; | ||
@@ -279,3 +283,3 @@ /** | ||
*/ | ||
html(htmlString: string): JQuery; | ||
html(htmlString: string): this; | ||
/** | ||
@@ -287,3 +291,3 @@ * Set the HTML contents of each element in the set of matched elements. | ||
*/ | ||
html(func: (index: number, oldhtml: string) => string): JQuery; | ||
html(func: (index: number, oldhtml: string) => string): this; | ||
@@ -295,3 +299,3 @@ /** | ||
*/ | ||
next(): JQuery; | ||
next(): this; | ||
@@ -305,3 +309,3 @@ /** | ||
*/ | ||
on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; | ||
on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): this; | ||
/** | ||
@@ -315,3 +319,3 @@ * Attach an event handler function for one or more events to the selected elements. | ||
*/ | ||
on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; | ||
on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): this; | ||
/** | ||
@@ -325,3 +329,3 @@ * Attach an event handler function for one or more events to the selected elements. | ||
*/ | ||
on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery; | ||
on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): this; | ||
/** | ||
@@ -336,3 +340,3 @@ * Attach an event handler function for one or more events to the selected elements. | ||
*/ | ||
on(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery; | ||
on(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): this; | ||
/** | ||
@@ -346,3 +350,3 @@ * Attach an event handler function for one or more events to the selected elements. | ||
*/ | ||
on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, selector?: string, data?: any): JQuery; | ||
on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, selector?: string, data?: any): this; | ||
/** | ||
@@ -355,3 +359,3 @@ * Attach an event handler function for one or more events to the selected elements. | ||
*/ | ||
on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, data?: any): JQuery; | ||
on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, data?: any): this; | ||
@@ -362,3 +366,3 @@ /** | ||
*/ | ||
off(): JQuery; | ||
off(): this; | ||
/** | ||
@@ -372,3 +376,3 @@ * Remove an event handler. | ||
*/ | ||
off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; | ||
off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -381,3 +385,3 @@ * Remove an event handler. | ||
*/ | ||
off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; | ||
off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): this; | ||
/** | ||
@@ -390,3 +394,3 @@ * Remove an event handler. | ||
*/ | ||
off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery; | ||
off(events: string, handler: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -399,3 +403,3 @@ * Remove an event handler. | ||
*/ | ||
off(events: { [key: string]: any; }, selector?: string): JQuery; | ||
off(events: { [key: string]: any; }, selector?: string): this; | ||
@@ -409,3 +413,3 @@ /** | ||
*/ | ||
one(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery; | ||
one(events: string, handler: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -419,3 +423,3 @@ * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. | ||
*/ | ||
one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; | ||
one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -429,3 +433,3 @@ * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. | ||
*/ | ||
one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): JQuery; | ||
one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -440,3 +444,3 @@ * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. | ||
*/ | ||
one(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject) => any): JQuery; | ||
one(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -450,3 +454,3 @@ * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. | ||
*/ | ||
one(events: { [key: string]: any; }, selector?: string, data?: any): JQuery; | ||
one(events: { [key: string]: any; }, selector?: string, data?: any): this; | ||
/** | ||
@@ -459,3 +463,3 @@ * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. | ||
*/ | ||
one(events: { [key: string]: any; }, data?: any): JQuery; | ||
one(events: { [key: string]: any; }, data?: any): this; | ||
@@ -467,3 +471,3 @@ /** | ||
*/ | ||
parent(): JQuery; | ||
parent(): this; | ||
@@ -477,3 +481,3 @@ /** | ||
*/ | ||
prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; | ||
prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): this; | ||
/** | ||
@@ -485,3 +489,3 @@ * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. | ||
*/ | ||
prepend(func: (index: number, html: string) => string | Element | JQuery): JQuery; | ||
prepend(func: (index: number, html: string) => string | Element | JQuery): this; | ||
@@ -502,3 +506,3 @@ /** | ||
*/ | ||
prop(propertyName: string, value: string | number | boolean): JQuery; | ||
prop(propertyName: string, value: string | number | boolean): this; | ||
/** | ||
@@ -510,3 +514,3 @@ * Set one or more properties for the set of matched elements. | ||
*/ | ||
prop(properties: Object): JQuery; | ||
prop(properties: Object): this; | ||
/** | ||
@@ -519,3 +523,3 @@ * Set one or more properties for the set of matched elements. | ||
*/ | ||
prop(propertyName: string, func: (index: number, oldPropertyValue: any) => any): JQuery; | ||
prop(propertyName: string, func: (index: number, oldPropertyValue: any) => any): this; | ||
@@ -528,3 +532,3 @@ /** | ||
*/ | ||
ready(handler: (jQueryAlias?: JQueryStatic) => any): JQuery; | ||
ready(handler: (jQueryAlias?: JQueryStatic) => any): this; | ||
@@ -537,3 +541,3 @@ /** | ||
*/ | ||
remove(selector?: string): JQuery; | ||
remove(selector?: string): this; | ||
@@ -546,3 +550,3 @@ /** | ||
*/ | ||
removeAttr(attributeName: string): JQuery; | ||
removeAttr(attributeName: string): this; | ||
@@ -555,3 +559,3 @@ /** | ||
*/ | ||
removeClass(className?: string): JQuery; | ||
removeClass(className?: string): this; | ||
@@ -564,3 +568,3 @@ /** | ||
*/ | ||
removeData(name: string): JQuery; | ||
removeData(name: string): this; | ||
/** | ||
@@ -572,3 +576,3 @@ * Remove a previously-stored piece of data. | ||
*/ | ||
removeData(list: string[]): JQuery; | ||
removeData(list: string[]): this; | ||
/** | ||
@@ -578,3 +582,3 @@ * Remove all previously-stored piece of data. | ||
*/ | ||
removeData(): JQuery; | ||
removeData(): this; | ||
@@ -587,3 +591,3 @@ /** | ||
*/ | ||
replaceWith(newContent: JQuery | any[] | Element | Text | string): JQuery; | ||
replaceWith(newContent: JQuery | any[] | Element | Text | string): this; | ||
/** | ||
@@ -595,3 +599,3 @@ * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. | ||
*/ | ||
replaceWith(func: () => Element | JQuery): JQuery; | ||
replaceWith(func: () => Element | JQuery): this; | ||
@@ -609,3 +613,3 @@ /** | ||
*/ | ||
text(text: string | number | boolean): JQuery; | ||
text(text: string | number | boolean): this; | ||
/** | ||
@@ -617,3 +621,3 @@ * Set the content of each element in the set of matched elements to the specified text. | ||
*/ | ||
text(func: (index: number, text: string) => string): JQuery; | ||
text(func: (index: number, text: string) => string): this; | ||
@@ -627,3 +631,3 @@ /** | ||
*/ | ||
toggleClass(className: string, swtch?: boolean): JQuery; | ||
toggleClass(className: string, swtch?: boolean): this; | ||
/** | ||
@@ -635,3 +639,3 @@ * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. | ||
*/ | ||
toggleClass(swtch?: boolean): JQuery; | ||
toggleClass(swtch?: boolean): this; | ||
@@ -662,3 +666,3 @@ /** | ||
*/ | ||
unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; | ||
unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): this; | ||
/** | ||
@@ -671,3 +675,3 @@ * Remove a previously-attached event handler from the elements. | ||
*/ | ||
unbind(eventType: string, fls: boolean): JQuery; | ||
unbind(eventType: string, fls: boolean): this; | ||
/** | ||
@@ -679,3 +683,3 @@ * Remove a previously-attached event handler from the elements. | ||
*/ | ||
unbind(evt: any): JQuery; | ||
unbind(evt: any): this; | ||
@@ -693,3 +697,3 @@ /** | ||
*/ | ||
val(value: string | string[] | number): JQuery; | ||
val(value: string | string[] | number): this; | ||
/** | ||
@@ -701,3 +705,3 @@ * Set the value of each element in the set of matched elements. | ||
*/ | ||
val(func: (index: number, value: string) => string): JQuery; | ||
val(func: (index: number, value: string) => string): this; | ||
@@ -710,3 +714,3 @@ /** | ||
*/ | ||
wrap(wrappingElement: JQuery | Element | string): JQuery; | ||
wrap(wrappingElement: JQuery | Element | string): this; | ||
/** | ||
@@ -718,3 +722,3 @@ * Wrap an HTML structure around each element in the set of matched elements. | ||
*/ | ||
wrap(func: (index: number) => string | JQuery): JQuery; | ||
wrap(func: (index: number) => string | JQuery): this; | ||
@@ -733,4 +737,4 @@ // Undocumented | ||
inheritedData(key: string, value: any): JQuery; | ||
inheritedData(obj: { [key: string]: any; }): JQuery; | ||
inheritedData(key: string, value: any): this; | ||
inheritedData(obj: { [key: string]: any; }): this; | ||
inheritedData(key?: string): any; | ||
@@ -740,3 +744,3 @@ } | ||
interface JQueryStatic { | ||
(element: string | Element | Document | JQuery | ArrayLike<Element>): JQuery; | ||
(element: string | Element | Document | JQuery | ArrayLike<Element>): JQLite; | ||
} | ||
@@ -743,0 +747,0 @@ |
{ | ||
"name": "@types/angular", | ||
"version": "1.6.28", | ||
"version": "1.6.29", | ||
"description": "TypeScript definitions for Angular JS", | ||
@@ -32,4 +32,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c7ff90a391813c5adc7ff02d7985e6ed7a6e40a1805a92f1e652429536b7f6b1", | ||
"typesPublisherContentHash": "f3442f28e9980cd3cd4ccdec8f417db849acb64d6f9a554bf6c77cf3055345b6", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 28 Jul 2017 19:49:07 GMT | ||
* Last updated: Mon, 14 Aug 2017 18:44:00 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: angular, ng |
Sorry, the diff of this file is too big to display
2688
147630