Open
Description
Description
The RedisClientType type appears to be missing the on method. This causes a type-checking error when using .on
to handle events. Below is an example that triggers the error:
import { createClient } from "redis";
const redis = createClient().on("error", (err) => {});
// ~~ Property 'on' does not exist on type 'RedisClientType...
Node.js Version
v22.9.0
Redis Server Version
not relevant
Node Redis Version
Platform
not relevant
Logs
No response
Activity