You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>;
Hey,
In the current type implementation of
srandmember
withcount
argument the return type isstring | unknown[]
instead of(string | unknown)[]
for returning multiple valuesThis 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
The text was updated successfully, but these errors were encountered: