Merge pull request #17510 from leonard-thieu/angular

[angular][jquery] Fix merge issue with cssPropertySetter
This commit is contained in:
Paul van Brenk
2017-06-26 16:39:51 -07:00
committed by GitHub
4 changed files with 16 additions and 6 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
// Type definitions for Angular JS 1.6
// Project: http://angularjs.org
// Definitions by: Diego Vilar <http://github.com/diegovilar>, Georgii Dolzhykov <http://github.com/thorn0>, Caleb St-Denis <https://github.com/calebstdenis>
// Definitions by: Diego Vilar <http://github.com/diegovilar>
// Georgii Dolzhykov <http://github.com/thorn0>
// Caleb St-Denis <https://github.com/calebstdenis>
// Leonard Thieu <https://github.com/leonard-thieu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
+6 -3
View File
@@ -169,7 +169,7 @@ interface JQuery {
* @param properties An object of property-value pairs to set.
* @see {@link https://api.jquery.com/css/#css-properties}
*/
css(properties: JQueryCssProperties): JQuery;
css(properties: JQLiteCssProperties): JQuery;
/**
* Store arbitrary data associated with the matched elements.
@@ -796,7 +796,10 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObjec
/**
* The interface used to specify the properties parameter in css()
*/
type cssPropertySetter = (index: number, value?: string) => string | number;
interface JQueryCssProperties {
// tslint:disable-next-line:class-name
interface cssPropertySetter {
(index: number, value?: string): string | number;
}
interface JQLiteCssProperties {
[propertyName: string]: string | number | cssPropertySetter;
}
+3 -1
View File
@@ -702,7 +702,9 @@ interface JQueryCoordinates {
/**
* The interface used to specify the properties parameter in css()
*/
type cssPropertySetter = (index: number, value?: string) => string | number;
interface cssPropertySetter {
(index: number, value?: string): string | number;
}
interface JQueryCssProperties {
[propertyName: string]: string | number | cssPropertySetter;
}
+3 -1
View File
@@ -702,7 +702,9 @@ interface JQueryCoordinates {
/**
* The interface used to specify the properties parameter in css()
*/
type cssPropertySetter = (index: number, value?: string) => string | number;
interface cssPropertySetter {
(index: number, value?: string): string | number;
}
interface JQueryCssProperties {
[propertyName: string]: string | number | cssPropertySetter;
}