tedis icon indicating copy to clipboard operation
tedis copied to clipboard

tedis.get has invalid return type?

Open aerze opened this issue 3 years ago • 0 comments

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?

aerze avatar Dec 13 '21 21:12 aerze