Skip to content

Commit 42fd830

Browse files
authored
Merge pull request #4786 from beckysiegel/master
Update closure annotation for all paths
2 parents 6a25fb7 + 42ce5a8 commit 42fd830

File tree

3 files changed

+8720
-20
lines changed

3 files changed

+8720
-20
lines changed

externs/closure-types.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -594,25 +594,25 @@ Polymer_PropertyEffects.prototype.set = function(path, value, root){};
594594
*/
595595
Polymer_PropertyEffects.prototype.push = function(path, items){};
596596
/**
597-
* @param {string} path Path to array.
597+
* @param {(string|!Array.<(string|number)>)} path Path to array.
598598
* @return {*}
599599
*/
600600
Polymer_PropertyEffects.prototype.pop = function(path){};
601601
/**
602-
* @param {string} path Path to array.
602+
* @param {(string|!Array.<(string|number)>)} path Path to array.
603603
* @param {number} start Index from which to start removing/inserting.
604604
* @param {number} deleteCount Number of items to remove.
605605
* @param {...*} items
606606
* @return {Array}
607607
*/
608608
Polymer_PropertyEffects.prototype.splice = function(path, start, deleteCount, items){};
609609
/**
610-
* @param {string} path Path to array.
610+
* @param {(string|!Array.<(string|number)>)} path Path to array.
611611
* @return {*}
612612
*/
613613
Polymer_PropertyEffects.prototype.shift = function(path){};
614614
/**
615-
* @param {string} path Path to array.
615+
* @param {(string|!Array.<(string|number)>)} path Path to array.
616616
* @param {...*} items
617617
* @return {number}
618618
*/
@@ -1102,25 +1102,25 @@ Polymer_ElementMixin.prototype.set = function(path, value, root){};
11021102
*/
11031103
Polymer_ElementMixin.prototype.push = function(path, items){};
11041104
/**
1105-
* @param {string} path Path to array.
1105+
* @param {(string|!Array.<(string|number)>)} path Path to array.
11061106
* @return {*}
11071107
*/
11081108
Polymer_ElementMixin.prototype.pop = function(path){};
11091109
/**
1110-
* @param {string} path Path to array.
1110+
* @param {(string|!Array.<(string|number)>)} path Path to array.
11111111
* @param {number} start Index from which to start removing/inserting.
11121112
* @param {number} deleteCount Number of items to remove.
11131113
* @param {...*} items
11141114
* @return {Array}
11151115
*/
11161116
Polymer_ElementMixin.prototype.splice = function(path, start, deleteCount, items){};
11171117
/**
1118-
* @param {string} path Path to array.
1118+
* @param {(string|!Array.<(string|number)>)} path Path to array.
11191119
* @return {*}
11201120
*/
11211121
Polymer_ElementMixin.prototype.shift = function(path){};
11221122
/**
1123-
* @param {string} path Path to array.
1123+
* @param {(string|!Array.<(string|number)>)} path Path to array.
11241124
* @param {...*} items
11251125
* @return {number}
11261126
*/
@@ -1644,25 +1644,25 @@ Polymer_LegacyElementMixin.prototype.set = function(path, value, root){};
16441644
*/
16451645
Polymer_LegacyElementMixin.prototype.push = function(path, items){};
16461646
/**
1647-
* @param {string} path Path to array.
1647+
* @param {(string|!Array.<(string|number)>)} path Path to array.
16481648
* @return {*}
16491649
*/
16501650
Polymer_LegacyElementMixin.prototype.pop = function(path){};
16511651
/**
1652-
* @param {string} path Path to array.
1652+
* @param {(string|!Array.<(string|number)>)} path Path to array.
16531653
* @param {number} start Index from which to start removing/inserting.
16541654
* @param {number} deleteCount Number of items to remove.
16551655
* @param {...*} items
16561656
* @return {Array}
16571657
*/
16581658
Polymer_LegacyElementMixin.prototype.splice = function(path, start, deleteCount, items){};
16591659
/**
1660-
* @param {string} path Path to array.
1660+
* @param {(string|!Array.<(string|number)>)} path Path to array.
16611661
* @return {*}
16621662
*/
16631663
Polymer_LegacyElementMixin.prototype.shift = function(path){};
16641664
/**
1665-
* @param {string} path Path to array.
1665+
* @param {(string|!Array.<(string|number)>)} path Path to array.
16661666
* @param {...*} items
16671667
* @return {number}
16681668
*/
@@ -2493,25 +2493,25 @@ Polymer_ArraySelectorMixin.prototype.set = function(path, value, root){};
24932493
*/
24942494
Polymer_ArraySelectorMixin.prototype.push = function(path, items){};
24952495
/**
2496-
* @param {string} path Path to array.
2496+
* @param {(string|!Array.<(string|number)>)} path Path to array.
24972497
* @return {*}
24982498
*/
24992499
Polymer_ArraySelectorMixin.prototype.pop = function(path){};
25002500
/**
2501-
* @param {string} path Path to array.
2501+
* @param {(string|!Array.<(string|number)>)} path Path to array.
25022502
* @param {number} start Index from which to start removing/inserting.
25032503
* @param {number} deleteCount Number of items to remove.
25042504
* @param {...*} items
25052505
* @return {Array}
25062506
*/
25072507
Polymer_ArraySelectorMixin.prototype.splice = function(path, start, deleteCount, items){};
25082508
/**
2509-
* @param {string} path Path to array.
2509+
* @param {(string|!Array.<(string|number)>)} path Path to array.
25102510
* @return {*}
25112511
*/
25122512
Polymer_ArraySelectorMixin.prototype.shift = function(path){};
25132513
/**
2514-
* @param {string} path Path to array.
2514+
* @param {(string|!Array.<(string|number)>)} path Path to array.
25152515
* @param {...*} items
25162516
* @return {number}
25172517
*/

lib/mixins/property-effects.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@
18341834
* This method notifies other paths to the same array that a
18351835
* splice occurred to the array.
18361836
*
1837-
* @param {string} path Path to array.
1837+
* @param {string | !Array<string|number>} path Path to array.
18381838
* @return {*} Item that was removed.
18391839
* @public
18401840
*/
@@ -1859,7 +1859,7 @@
18591859
* This method notifies other paths to the same array that a
18601860
* splice occurred to the array.
18611861
*
1862-
* @param {string} path Path to array.
1862+
* @param {string | !Array<string|number>} path Path to array.
18631863
* @param {number} start Index from which to start removing/inserting.
18641864
* @param {number} deleteCount Number of items to remove.
18651865
* @param {...*} items Items to insert into array.
@@ -1894,7 +1894,7 @@
18941894
* This method notifies other paths to the same array that a
18951895
* splice occurred to the array.
18961896
*
1897-
* @param {string} path Path to array.
1897+
* @param {string | !Array<string|number>} path Path to array.
18981898
* @return {*} Item that was removed.
18991899
* @public
19001900
*/
@@ -1918,7 +1918,7 @@
19181918
* This method notifies other paths to the same array that a
19191919
* splice occurred to the array.
19201920
*
1921-
* @param {string} path Path to array.
1921+
* @param {string | !Array<string|number>} path Path to array.
19221922
* @param {...*} items Items to insert info array
19231923
* @return {number} New length of the array.
19241924
* @public

0 commit comments

Comments
 (0)