(p: OHLCDataPoint)
| 21 | |
| 22 | const getTimestamp = (p: OHLCDataPoint): number => (isTupleDataPoint(p) ? p[0] : p.timestamp); |
| 23 | const getOpen = (p: OHLCDataPoint): number => (isTupleDataPoint(p) ? p[1] : p.open); |
| 24 | const getClose = (p: OHLCDataPoint): number => (isTupleDataPoint(p) ? p[2] : p.close); |
| 25 | |
| 26 | const categoryStepCache = new WeakMap<ReadonlyArray<OHLCDataPoint>, number>(); |
no test coverage detected