anandanand84 / technicalindicators

A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.18k stars 563 forks source link

publish more types #106

Open gemmell opened 6 years ago

gemmell commented 6 years ago

I'm using your library from typescript, I've installed it via npm and by default I can use quite a few definitions. But a lot of the inputs and outputs are not declared in index.d.ts - so for example const out: TI.MACDOutput = this.macd.getResult(); doesn't work because node_modules/technicalindicators/declarations/index.d.ts has no exported member MACDOutput

It would be nice if they were declared so we could simply use them if we're using typescript.

anandanand84 commented 6 years ago

@gemmell I'll add the missing types in the next release

anandanand84 commented 6 years ago

@gammell Would you mind contributing this. Thanks