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

[REQUEST] - Add generics to all the query methods #9

Open
tenoriojuann opened this issue Feb 9, 2024 · 4 comments
Open

[REQUEST] - Add generics to all the query methods #9

tenoriojuann opened this issue Feb 9, 2024 · 4 comments

Comments

@tenoriojuann
Copy link
Contributor

Please add generics to all the query methods so that we can pass our interfaces.

export declare interface NodeSession extends Session {

@mibewh
Copy link
Contributor

mibewh commented Feb 12, 2024

Hi Juan,
Is this what you're after? I added an optional generic type to all of the node methods that is reflected in the return types.
26718f1

@tenoriojuann
Copy link
Contributor Author

Hi,

Yes please, that would be really helpful!

@mibewh
Copy link
Contributor

mibewh commented Feb 13, 2024

Hi Juan,
I've just pushed this and a bit more including some examples in the newly released 0.2.22 version. Let us know if it works for you

@tenoriojuann
Copy link
Contributor Author

thank you!

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

2 participants