passabilities / crypto-exchange

Pulls together list of crypto exchanges to interact with their API's in a uniform fashion.
MIT License
261 stars 78 forks source link

Add TypeScript typings #12

Closed niieani closed 7 years ago

passabilities commented 7 years ago

I've never used TypeScript before but everything looks correct. Have you tested this?

niieani commented 7 years ago

Hi @passabilities. Yes, I've tested it -- everything from the docs is typed, but I haven't tried every code path. You can have a play with the autocomplete that this offers here: https://codesandbox.io/s/54mjj4m584?module=%2Findex.ts&view=editor

E.g. changing the selected pairs in the ticker() should affect the types.