From: Drew Inglis Date: Tue, 2 May 2017 21:10:40 +0000 (-0400) Subject: Fix two inconsistencies in dygraph-externs.js (#859) X-Git-Tag: v2.1.0~6 X-Git-Url: https://adrianiainlam.tk/git/?p=dygraphs.git;a=commitdiff_plain;h=f160e4ac8166f74d1f0e5604061564fbca5ba5a5 Fix two inconsistencies in dygraph-externs.js (#859) 1. The second argument of getOption should be marked as optional per jsdoc at: http://dygraphs.com/jsdoc/symbols/Dygraph.html#getOption 2. 'boolean' is typo'd as 'Boolean' in updateOptions. --- diff --git a/dygraph-externs.js b/dygraph-externs.js index 9cf9568..02330f8 100644 --- a/dygraph-externs.js +++ b/dygraph-externs.js @@ -40,7 +40,7 @@ Dygraph.prototype.isZoomed; /** @type {function(): string} */ Dygraph.prototype.toString; -/** @type {function(string, string)} */ +/** @type {function(string, string=)} */ Dygraph.prototype.getOption; /** @type {function(): number} */ @@ -127,7 +127,7 @@ Dygraph.prototype.isSeriesLocked; /** @type {function(): number} */ Dygraph.prototype.numAxes; -/** @type {function(Object, Boolean=)} */ +/** @type {function(Object, boolean=)} */ Dygraph.prototype.updateOptions; /** @type {function(number, number)} */