File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1451,7 +1451,7 @@ angular.$interpolateProvider.endSymbol;
1451
1451
* protocol: function():string,
1452
1452
* replace: function(),
1453
1453
* search: function((string|Object.<string, string>)=,
1454
- * ?(string|Array.<string>)=): (!Object|angular.$location),
1454
+ * ?(string|Array.<string>|boolean )=): (!Object|angular.$location),
1455
1455
* url: function(string=):string
1456
1456
* }}
1457
1457
*/
@@ -1496,7 +1496,7 @@ angular.$location.replace = function() {};
1496
1496
1497
1497
/**
1498
1498
* @param {(string|Object.<string, string>)= } opt_search
1499
- * @param {?(string|Array.<string>)= } opt_paramValue
1499
+ * @param {?(string|Array.<string>|boolean )= } opt_paramValue
1500
1500
* @return {(!Object|angular.$location) }
1501
1501
*/
1502
1502
angular . $location . search = function ( opt_search , opt_paramValue ) { } ;
@@ -1942,6 +1942,9 @@ angular.$route.Route.regexp;
1942
1942
* $routeParams Service
1943
1943
*****************************************************************************/
1944
1944
1945
+ // TODO: This should be !Object.<string|boolean> because valueless query params
1946
+ // (without even an equal sign) come through as boolean "true".
1947
+
1945
1948
/** @typedef {!Object.<string> } */
1946
1949
angular . $routeParams ;
1947
1950
Original file line number Diff line number Diff line change @@ -1433,7 +1433,7 @@ angular.$interpolateProvider.endSymbol;
1433
1433
* protocol: function():string,
1434
1434
* replace: function(),
1435
1435
* search: function((string|Object.<string, string>)=,
1436
- * ?(string|Array.<string>)=): (!Object|angular.$location),
1436
+ * ?(string|Array.<string>|boolean )=): (!Object|angular.$location),
1437
1437
* url: function(string=):string
1438
1438
* }}
1439
1439
*/
@@ -1478,7 +1478,7 @@ angular.$location.replace = function() {};
1478
1478
1479
1479
/**
1480
1480
* @param {(string|Object.<string, string>)= } opt_search
1481
- * @param {?(string|Array.<string>)= } opt_paramValue
1481
+ * @param {?(string|Array.<string>|boolean )= } opt_paramValue
1482
1482
* @return {(!Object|angular.$location) }
1483
1483
*/
1484
1484
angular . $location . search = function ( opt_search , opt_paramValue ) { } ;
@@ -1924,6 +1924,9 @@ angular.$route.Route.regexp;
1924
1924
* $routeParams Service
1925
1925
*****************************************************************************/
1926
1926
1927
+ // TODO: This should be !Object.<string|boolean> because valueless query params
1928
+ // (without even an equal sign) come through as boolean "true".
1929
+
1927
1930
/** @typedef {!Object.<string> } */
1928
1931
angular . $routeParams ;
1929
1932
You can’t perform that action at this time.
0 commit comments