Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

observePairs issue #47

Open
aadito123 opened this issue Aug 20, 2021 · 0 comments
Open

observePairs issue #47

aadito123 opened this issue Aug 20, 2021 · 0 comments

Comments

@aadito123
Copy link

Subscribing to the the observePairs observable in typings/exchange.d.ts gives the "next" function a Pair[] as the argument but it is typed as just Pair. When consoling logging the output, it shows up properly but it doesn't let you individually access and filter the data. Changing it to Pair[] fixes that issue.

export function observePairs(): { subscribe({ next, error, complete }: { next(data: Pair): any; error?(error: any): any; complete?: Function; }): any; };

is basically changed to

export function observePairs(): { subscribe({ next, error, complete }: { next(data: Pair[]): any; error?(error: any): any; complete?: Function; }): any; };

This makes it much easier to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant