dygraphs: add missing getRowForX() definition (#41335)

* dygraphs: add missing getRowForX() definition

Documentation: http://dygraphs.com/jsdoc/symbols/Dygraph.html#getRowForX
Source code: https://github.com/danvk/dygraphs/blob/27cee3f7233fbbbeed31f0cf03ea81bf92555b18/src/dygraph.js#L3345-L3372

* dygraphs: Drop type annotations from .d.ts's JSDoc

danvk: "At best they are duplicative and at worst they disagree (as in this case)."
This commit is contained in:
Vlad-Shcherbina
2020-01-08 11:05:52 -08:00
committed by Armando Aguirre
parent 3d72e37827
commit 53c494183e
+10
View File
@@ -1284,6 +1284,16 @@ declare class Dygraph {
*/
indexFromSetName(name: string): number;
/**
* Find the row number corresponding to the given x-value.
* Returns null if there is no such x-value in the data.
* If there are multiple rows with the same x-value, this will return the
* first one.
* @param xVal The x-value to look for (e.g. millis since epoch).
* @return The row number, which you can pass to getValue(), or null.
*/
getRowForX(xVal: number): number | null;
/**
* Trigger a callback when the dygraph has drawn itself and is ready to be
* manipulated. This is primarily useful when dygraphs has to do an XHR for the