Permalink
Browse files

fix type warnings

R=chrishenry
DELTA=6  (0 added, 0 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4517


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1733 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
1 parent 8a88cc4 commit 18f77f62ad07ce341c2406a239c143ef89ffddb6 nicksantos@google.com committed Apr 11, 2012
@@ -1229,7 +1229,7 @@ goog.array.bucket = function(array, sorter) {
*
* @param {*} value The value to repeat.
* @param {number} n The repeat count.
- * @return {!Array.<*>} An array with the repeated value.
+ * @return {!Array} An array with the repeated value.
*/
goog.array.repeat = function(value, n) {
var array = [];
@@ -79,7 +79,7 @@ goog.labs.async.combine.onSuccess = function(var_args) {
goog.labs.async.combine.apply(goog.labs.async.combine, arguments),
// The combined result never ERRORs
function(res) {
- var results = res.getValue();
+ var results = /** @type {Array} */ (res.getValue());
if (goog.array.every(results, resolvedSuccessfully)) {
combinedResult.setValue(results);
} else {
@@ -115,7 +115,7 @@ goog.proto2.TextFormatSerializer.prototype.serializeMessage_ =
switch (goog.typeOf(value)) {
case 'string':
- value = goog.string.quote(value);
+ value = goog.string.quote(/** @type {string} */ (value));
printer.append(value);
break;
@@ -211,7 +211,7 @@ goog.structs.QuadTree.prototype.clone = function() {
/**
* Traverses the tree and calls a function on each node.
- * @param {function(Object, goog.math.Coordinate, goog.structs.QuadTree)} fn
+ * @param {function(?, goog.math.Coordinate, goog.structs.QuadTree)} fn
* The function to call for every value. This function takes 3 arguments
* (the value, the coordinate, and the tree itself) and the return value is
* irrelevant.
@@ -845,8 +845,8 @@ goog.testing.MultiTestRunner.prototype.drawTimeHistogram_ = function() {
* Draws a stats histogram.
* @param {string} statsField Field of the stats object to graph.
* @param {number} bucketSize The size for the histogram's buckets.
- * @param {function(*, ...[*]): *} valueTransformFn Function for transforming
- * the x-labels value for display.
+ * @param {function(number, ...[*]): *} valueTransformFn Function for
+ * transforming the x-labels value for display.
* @param {number} width The width in pixels of the graph.
* @param {string} title The graph's title.
* @private

0 comments on commit 18f77f6

Please sign in to comment.