We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f8dbec commit 3a4fcadCopy full SHA for 3a4fcad
packages/client/lib/client/index.ts
@@ -426,11 +426,11 @@ export default class RedisClient<
426
});
427
}
428
429
- async connect(): Promise<RedisClientType<M, F, S>> {
+ async connect() {
430
// see comment in constructor
431
this.#isolationPool ??= this.#initiateIsolationPool();
432
await this.#socket.connect();
433
- return this;
+ return this as unknown as RedisClientType<M, F, S>;
434
435
436
async commandsExecutor<C extends RedisCommand>(
0 commit comments