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

Type error, srandmember with count argument should return array of strings or array of unknown instead of string or array of unknowj #1621

Closed
joni7777 opened this issue Jul 14, 2022 · 1 comment · Fixed by #1620
Labels

Comments

@joni7777
Copy link
Contributor

Hey,

In the current type implementation of srandmember with count argument the return type is string | unknown[] instead of (string | unknown)[] for returning multiple values

This is the entire type:
srandmember(key: RedisKey, count: number | string, callback?: Callback<string | unknown[] | null>): Result<string | unknown[] | null, Context>;

it should be:

srandmember(key: RedisKey, count: number | string, callback?: Callback<(string | unknown)[] | null>): Result<(string | unknown)[] | null, Context>;

Opening a PR for a fix

@github-actions
Copy link

🎉 This issue has been resolved in version 5.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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