alpacahq / alpaca-ts

A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
ISC License
154 stars 42 forks source link

Wrong typings #21

Closed yovanoc closed 3 years ago

yovanoc commented 3 years ago
image

For the getBars method, this is not a Map, because TS won't let us doing a bars[symbol] thing, he wants to use the Map .get method... so we have to force TS with a as like that otherwise we have an any type:

image
117 commented 3 years ago

Thanks for reporting this issue, fixed in this commit. 🙂