Closed stewSquared closed 9 years ago
Thank you, I have fixed the documentation and accepted your PR on paths-scala-js
Thanks! I'm loving this library, by the way. The level of control I have over the final output is great, yet my code remains small and clean.
So, according to the documentation,
Stock.curves
returns a collection of curves, "each having the propertiesline
,area
,item
andindex
. [...] Under item one finds the original element in the data."The problem is that this implies that each curve is associated with a singular item, despite the fact that the curve is dependent on a series of items. This is formalized in the explicitly typed scala.js documentation. Where the type of
StockCurve[A].item
isA
rather thanArray[A]
This is inspite of the fact the
.item
actually returns an array, leading to a runtime error when treating item like an A.