Skip to content

[v5]spop and sPopCount types are incorrect #3004

Closed
@throrin19

Description

@throrin19

Description

Hi, I think the type returned by functions spop and spopCount are invalid. Actually the type return :

Promise<string | null>

But this functions return an array of string. The return type should be Promise<string[]> instead.

Node.js Version

22.16.0

Redis Server Version

No response

Node Redis Version

5.5.6

Platform

macOS

Logs

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions