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

tedis.get has invalid return type? #59

Open
aerze opened this issue Dec 13, 2021 · 0 comments
Open

tedis.get has invalid return type? #59

aerze opened this issue Dec 13, 2021 · 0 comments

Comments

@aerze
Copy link

aerze commented Dec 13, 2021

I'm sure there's a reason for this, but I can't find it anywhere in the docs or code.
As far as I know redis can only return strings (at least for GET) but the return types in the docs and and in the code (see screenshot) both show number as well. This is causing us to have to add normalization functions or overwrite the types using as string | null neither of which is ideal.

image

I don't mind updating this, is this something you would accept a pull request for?

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